Skip to content

Commit f6c4fb3

Browse files
CopilotK20shores
andauthored
Fix docs version switcher missing on gh-pages branch documentation (#140)
* Initial plan * Fix version switcher missing on gh-pages branch docs Add switcher.json copy to branch documentation deployment to ensure version switcher is available on all documentation pages, not just the default branch deployment. Co-authored-by: K20shores <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: K20shores <[email protected]>
1 parent 8516db9 commit f6c4fb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ jobs:
8888
id=$(docker create tuvx)
8989
docker cp $id:/build/docs/sphinx tmpdocs
9090
docker rm -v $id
91+
# Copy switcher.json to enable version switcher on branch docs
92+
cp docs/switcher.json tmpdocs/
9193
brname="${{github.ref}}"
9294
brname="${brname##refs/heads/}"
9395
brdir=${brname//\//--} # replace '/' with '--'

0 commit comments

Comments
 (0)