Skip to content

Commit

Permalink
Fix sphinx 7.2.5 ci build (#625)
Browse files Browse the repository at this point in the history
* Fix sphinx 7.2.5 ci build

* Use newer sphinx docker image and upgrade pip
  • Loading branch information
JamesGibo authored Sep 7, 2023
1 parent bc85259 commit 51091b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/check-sphinx-and-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/[email protected]
with:
python-version: 3.9

- name: "Install prerequisites"
run: |
pip3 install -r docs/requirements.txt

- uses: ammaraskar/sphinx-action@master
# - uses: ammaraskar/sphinx-action@master
# Using fork of sphinx-action to support python version > 3.9
# As sphinx-action not updated the sphinx docker image it uses
- uses: erpcya/sphinx-action@feature/#update-sphinx-base-image
with:
docs-folder: "docs/"
pre-build-command: |
pip3 install --upgrade pip
sphinx-apidoc -f grafanalib -o docs/api
python setup.py install --user
python3 setup.py install --user
build-command: "make html"

- name: Link Checker
Expand Down
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sphinx == 6.1.3
sphinx_rtd_theme == 1.3.0
sphinx == 7.2.5
sphinx_rtd_theme == 1.3.0

0 comments on commit 51091b0

Please sign in to comment.