Skip to content

Commit 5861f79

Browse files
committed
ci(docs): update Sphinx workflow to use sphinx-notes/pages action
Replaced `uncch-rdmc/sphinx-action` with `sphinx-notes/pages` for better compatibility and flexibility (Python & Sphinx versions!!!). Added dynamic Sphinx version lookup and updated paths and options to align with the new action requirements.
1 parent bb0262a commit 5861f79

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/guides_build_sphinx.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: uncch-rdmc/sphinx-action@master
14+
- id: lookup
15+
run: |
16+
echo "sphinx_version=$(grep Sphinx== ./doc/sphinx-guides/requirements.txt | tr -s "=" | cut -f 2 -d=)" | tee -a "${GITHUB_OUTPUT}"
17+
- uses: sphinx-notes/pages@v3
1518
with:
16-
docs-folder: "doc/sphinx-guides/"
19+
documentation_path: ./doc/sphinx-guides/source
20+
requirements_path: ./doc/sphinx-guides/requirements.txt
21+
sphinx_version: ${{ steps.lookup.outputs.sphinx_version }}
22+
sphinx_build_options: "-W"
23+
cache: false
24+
publish: false
25+

0 commit comments

Comments
 (0)