File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363 - name : Add .nojekyll file and create index.html
6464 run : |
6565 touch _build/html/.nojekyll
66- # Create index.html from the main index file for GitHub Pages
67- if [ -f "_build/html/index" ]; then
68- cp _build/html/index _build/html/index.html
69- fi
66+ # Create index.html files for all directories
67+ find _build/html -name "index" -type f -exec sh -c 'cp "$1" "${1%index}index.html"' _ {} \;
7068
7169 - name : Verify build output
7270 run : |
Original file line number Diff line number Diff line change 3838html-github :
3939 . $(VENV ) ; export GITHUB_ACTIONS=true; $(SPHINXBUILD ) -c . -b dirhtml " $( SOURCEDIR) " " $( BUILDDIR) " -w .sphinx/warnings.txt --keep-going
4040 touch " $( BUILDDIR) /.nojekyll"
41- if [ -f " $( BUILDDIR) /index" ]; then cp " $( BUILDDIR) /index" " $( BUILDDIR) /index.html" ; fi
41+ # Create index.html files for all directories
42+ find " $( BUILDDIR) " -name " index" -type f -exec sh -c ' cp "$$1" "$${1%index}index.html"' _ {} \;
4243
4344epub :
4445 . $(VENV ) ; $(SPHINXBUILD ) -c . -b epub " $( SOURCEDIR) " " $( BUILDDIR) " -w .sphinx/warnings.txt
You can’t perform that action at this time.
0 commit comments