Skip to content

Commit d65dc13

Browse files
sneakers-the-ratlwasser
authored andcommitted
separate lang selector baseurl from sphinx config baseurl
1 parent b930842 commit d65dc13

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@
9595
{"href": "https://www.pyopensci.org/images/favicon.ico"},
9696
]
9797

98-
html_baseurl = "/python-package-guide/"
98+
html_baseurl = "https://www.pyopensci.org/python-package-guide/"
99+
lang_selector_baseurl = "/python-package-guide/"
99100
if not sphinx_env == "production":
100101
# for links in language selector when developing locally
101-
html_baseurl = "/"
102+
lang_selector_baseurl = "/"
102103

103104
html_theme_options = {
104105
"announcement": "<p><a href='https://www.pyopensci.org/about-peer-review/index.html'>We run peer review of scientific Python software. Learn more.</a></p>",
@@ -148,7 +149,7 @@
148149
"github_version": "main",
149150
"language": language,
150151
"languages": build_languages,
151-
"baseurl": html_baseurl,
152+
"baseurl": lang_selector_baseurl,
152153
}
153154

154155
# Add any paths that contain templates here, relative to this directory.

0 commit comments

Comments
 (0)