File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change 1818 with :
1919 python-version : ' 3.12'
2020 - run : pip install sphinx sphinx_rtd_theme sphinx-reredirects
21- - run : make gh-pages
21+ - run : make html
2222 - name : Upload artifact
2323 uses : actions/upload-pages-artifact@v3
2424 with :
Original file line number Diff line number Diff line change 1616livehtml :
1717 sphinx-autobuild -b html $(ALLSPHINXOPTS ) $(SOURCEDIR ) $(BUILDDIR ) /html
1818
19- gh-pages :
20- @$(SPHINXBUILD ) -b html " $( SOURCEDIR) " $(BUILDDIR ) /html/en/latest $(SPHINXOPTS )
21- # Ensure Jekyll is enabled with correct YAML formatting
22- printf -- " plugins:\n - jekyll-redirect-from\n" > $(BUILDDIR ) /html/_config.yml
23- # Create redirect for root to /en/latest/
24- printf -- " ---\nredirect_to: /en/latest/\n---\n" > $(BUILDDIR ) /html/index.md
25- # Create redirect for /en/ to /en/latest/
26- printf -- " ---\nredirect_to: /en/latest/\n---\n" > $(BUILDDIR ) /html/en/index.md
27- # Ensure GitHub Pages does NOT treat this as a Jekyll site
28- touch $(BUILDDIR ) /html/.nojekyll
29-
3019# Catch-all target: route all unknown targets to Sphinx using the new
3120# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
3221% : Makefile
You can’t perform that action at this time.
0 commit comments