-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work with python3.10 #43
Comments
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? |
Version 0.4 of sphinx-action contains a problem investigated and documented here: ammaraskar/sphinx-action#5. The action throws an error claiming it can't write the log file. The problem is fixed in master and since this is a tutorial, it is more or less expected that it should work off the bat, so I thinking pinning the master version for now and the next release when it comes out, might be the best way to help newbies.
@flywire I ended up just building my own project manually:
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 |
ammaraskar/sphinx-action#43 ammaraskar/sphinx-action#49 Build is working okay, it is the github-action not compatible with poetry.
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 : 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:
The text was updated successfully, but these errors were encountered: