Skip to content

Commit 757e109

Browse files
authored
Fix issues with multi-version docs (#700)
* trigger sphinx docs deployment also upon merges to main * add theme switcher to end of navbar * move theme switcher to its original position in the navbar
1 parent bc523ee commit 757e109

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/docs_build_and_deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
contents: write
5454
if: |
5555
(github.event_name == 'push' && github.ref_type == 'tag') ||
56+
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
5657
(github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
5758
runs-on: ubuntu-latest
5859
steps:

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
"logo": {
160160
"text": f"{project} v{release}",
161161
},
162-
"navbar_end": ["version-switcher", "navbar-icon-links"],
162+
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
163163
"footer_start": ["footer_start"],
164164
"footer_end": ["footer_end"],
165165
"external_links": [],

0 commit comments

Comments
 (0)