diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 4254a3f..10e4fac 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -6,6 +6,7 @@ on: - main paths: - 'docs/**' + workflow_dispatch: jobs: build: @@ -19,22 +20,26 @@ jobs: with: python-version: '3.11' + - name: Cache Python packages + uses: actions/cache@v4.0.2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install Dependencies run: | python -m pip install --upgrade pip pip install -r docs/requirements.txt - - name: List directory structure - run: | - ls -R docs/ - - name: Build Documentation with Sphinx run: | - cd docs - make html + sphinx-build -M html docs/source/ docs/build/ env: READTHEDOCS: 'True' + # Uncomment below to upload artifacts if needed # - name: Upload Artifacts # uses: actions/upload-artifact@v4 # with: