Merge pull request #1001 from sphinx-contrib/doc-maintenance #266
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Action which validates the ability to build this extension's documentation. | |
name: Documentation | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/docs.yml' | |
- 'doc/**' | |
- 'CHANGES.rst' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/docs.yml' | |
- 'doc/**' | |
- 'CHANGES.rst' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
container: ghcr.io/sphinx-contrib/confluencebuilder/doctest:main | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
run: | | |
python -m venv venv | |
. venv/bin/activate | |
pip install -e . | |
- name: HTML | |
run: | | |
. venv/bin/activate | |
cd doc | |
make html | |
- name: PDF | |
run: | | |
. venv/bin/activate | |
cd doc | |
make latexpdf | |
- name: Archive generated PDF | |
uses: actions/upload-artifact@v4 | |
with: | |
name: sphinxcontrib-confluencebuilder.pdf | |
path: doc/_build/latex/sphinxconfluencebuilder.pdf | |
retention-days: 10 |