Skip to content

Commit

Permalink
fixed path (jborchma#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
jborchma authored Feb 25, 2023
1 parent 4087a83 commit 2bd0453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
# fixes also need to propagate to other themes):
# https://github.com/sphinx-doc/sphinx/pull/8524
# https://github.com/readthedocs/sphinx_rtd_theme/pull/1025
sed -i 's/url_root="#"/url_root=""/' dirhtml/index.html || true
sed -i 's/url_root="#"/url_root=""/' dirhtml/html/index.html || true
# The following supports building all branches and combining on
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
# _gh-pages/branch-* paths, and not including
# _gh-pages itself.
find _gh-pages/ -mindepth 1 ! -path '_gh-pages/branch*' -delete
rsync -a dirhtml/ _gh-pages/
rsync -a dirhtml/html/ _gh-pages/
# If a push and not on default branch, then copy the build to
# _gh-pages/branch/$brname (transforming '/' into '--')
- name: Copy new build (branch)
Expand All @@ -106,7 +106,7 @@ jobs:
brname="${brname##refs/heads/}"
brdir=${brname//\//--} # replace '/' with '--'
rm -rf _gh-pages/branch/${brdir}
rsync -a dirhtml/ _gh-pages/branch/${brdir}
rsync -a dirhtml/html/ _gh-pages/branch/${brdir}
# Go through each branch in _gh-pages/branch/, if it's not a
# ref, then delete it.
- name: Delete old feature branches
Expand Down

0 comments on commit 2bd0453

Please sign in to comment.