From 96540e14ff6611d9486c0262c5e6e9b4b7695be5 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Thu, 21 Oct 2021 20:12:56 +0200 Subject: [PATCH] add(README) # Documentation --- .github/workflows/doc.yaml | 18 ++++++++---------- README.md | 15 +++++++++++++++ 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/doc.yaml b/.github/workflows/doc.yaml index 36646b8..dfc738c 100644 --- a/.github/workflows/doc.yaml +++ b/.github/workflows/doc.yaml @@ -2,7 +2,8 @@ name: Build doc on: push: - branches: [$default-branch] + branches: + - $default-branch workflow_dispatch: permissions: @@ -10,7 +11,8 @@ permissions: pages: write id-token: write -# Cancel the previous run if it's still in progress +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" cancel-in-progress: false @@ -19,13 +21,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Generate docs with LDoc - uses: lunarmodules/ldoc@v1.5.0 - - name: Upload static files as artifact + - uses: actions/checkout@v4 + - uses: lunarmodules/ldoc@v1.5.0 + - uses: actions/upload-pages-artifact@v3 id: deployment - uses: actions/upload-pages-artifact@v3 with: path: doc/ deploy: @@ -35,6 +34,5 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - - name: Deploy to GitHub Pages + - uses: actions/deploy-pages@v4 id: deployment - uses: actions/deploy-pages@v4 diff --git a/README.md b/README.md index 3a29472..62243fd 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,18 @@ A declarative API to connect signals for the AwesomeWM. It completes the native `gears.signal` module to make signal connection easier to manage. + +## Documentation + +API references for the latest release are available at . + +It is also possible to manually build the documentation locally using ldoc. The +documentation content is part of the source code, and all configurations needed +are provided by the `config.ld` file. To generate documentation, you need to +run : + +```sh +ldoc . +``` + +The documentation site will be generated in the `doc` directory.