Open spagh-eddie opened 2 years ago
I think it's because the dockerfile uses the Sphinx 2.4.4 container, which is out of date.
Does that mean there is no Deploying a Sphinx project online?
@flywire I ended up just building my own project manually:
- name: directly build sphinx
run: |
pip install -r requirements.txt
sphinx-build -D todo_include_todos=0 docs ./docs/_build/html/
Way easier than figuring out how to config this action overall.
Found an alternative solution: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-static-site-generators-with-python
He codes the html generation also manually and deploys the created webpage with his github action
I got this to work if you specify the sphinx version when specifying the action, as shown in the readme: https://github.com/ammaraskar/sphinx-action?tab=readme-ov-file#how-to-use
My yaml, see the : uses: ammaraskar/sphinx-action@8.0.2
name: "Sphinx: Render docs"
on: push
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Build HTML
uses: ammaraskar/sphinx-action@8.0.2
with:
pre-build-command: |
apt-get update -y -qq
apt-get install --no-install-recommends -y build-essential
apt-get install --no-install-recommends -y libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers git-lfs
# remove pygfx from install_requires, we install using pygfx@main
sed -i "/pygfx/d" ./setup.py
pip install git+https://github.com/pygfx/pygfx.git@main
pip install -e ".[notebook,docs,tests]"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
This syntax is causing the action to fail. The syntax is for python3.10.
error message:
our action file: