From 2193765eeae6f73d2f2a604b40cfb3cfa934edce Mon Sep 17 00:00:00 2001 From: root Date: Sun, 15 Feb 2026 14:51:07 +0000 Subject: [PATCH] Add Doxla documentation workflow --- .github/workflows/doxla.yml | 33 +++++++++++++++++++++++++++++++++ package.json | 6 ++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/workflows/doxla.yml diff --git a/.github/workflows/doxla.yml b/.github/workflows/doxla.yml new file mode 100644 index 0000000..2f0d442 --- /dev/null +++ b/.github/workflows/doxla.yml @@ -0,0 +1,33 @@ +name: Deploy Doxla Docs + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + - run: npx doxla@latest build --base-path "/${{ github.event.repository.name }}" + - uses: actions/upload-pages-artifact@v3 + with: + path: ./doxla-dist + - id: deployment + uses: actions/deploy-pages@v4 diff --git a/package.json b/package.json index 1928167..6e6362d 100644 --- a/package.json +++ b/package.json @@ -70,5 +70,11 @@ "commit-msg": "yarn cm:lint -E HUSKY_GIT_PARAMS", "prepare-commit-msg": "exec < /dev/tty && git cz --hook || true" } + }, + "doxla": { + "components": { + "dir": "docs/components" + }, + "dependencies": {} } }