Skip to content

Commit

Permalink
Run make html directly in CI for building docs
Browse files Browse the repository at this point in the history
Avoid using the - quite outdated - ammaraskar/sphinx-action GitHub
Action. It was forcefully using Python 3.8 due to using a very old
version of the underlying docker image sphinx-doc/sphinx.
  • Loading branch information
CasperWA committed Mar 19, 2024
1 parent 4fce637 commit 63fec27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -U setuptools wheel
pip install -r requirements_docs.txt
pip install -r requirements_docs.txt -r sphinx/requirements.txt
- name: Render documentation from ttl
run: python sphinx/ttl_to_rst.py

- name: Build HTML
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "sphinx/"
pre-build-command: "apt-get update -y; apt-get install -y pandoc"
run: |
apt-get update && apt-get install -y pandoc
make html
working-directory: sphinx

# Still upload built documentation as an artifact if not deploying
# This is to provide the opportunity to download the built documentation
Expand Down

0 comments on commit 63fec27

Please sign in to comment.