From e712c5e4bc88d770551b89c7e6ea41f01d65562d Mon Sep 17 00:00:00 2001 From: Wang Siyuan Date: Wed, 12 Nov 2025 14:15:31 +0800 Subject: [PATCH] Add docs build workflow --- .github/workflows/docs.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..6f6c84e5 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,29 @@ +name: docs + +on: + pull_request: + push: + branches: [main, master] + +jobs: + build-docs: + name: Build documentation + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install . + pip install -r docs/requirements.txt + + - name: Build site + run: mkdocs build --strict