Skip to content

Commit 04abf48

Browse files
authored
Merge pull request #1021 from xylar/fix-sphinx-multiversion
Update sphinx-multiversion config options
2 parents 2a12199 + 325d7c9 commit 04abf48

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

docs/conf.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,7 @@
113113
# a list of builtin themes.
114114
#
115115

116-
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from
117-
# docs.readthedocs.org
118-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
119-
120-
if not on_rtd: # only import and set the theme if we're building docs locally
121-
import sphinx_rtd_theme
122-
html_theme = 'sphinx_rtd_theme'
123-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
116+
html_theme = 'sphinx_rtd_theme'
124117

125118
# Theme options are theme-specific and customize the look and feel of a theme
126119
# further. For a list of options available for each theme, see the
@@ -225,3 +218,9 @@
225218
outFile.write(output)
226219

227220
github_doc_root = 'https://github.com/rtfd/recommonmark/tree/master/doc/'
221+
222+
# -- Options sphinx-multiversion -------------------------------------------
223+
# Include tags like "tags/1.0.0" -- 1.7.2 doesn't build
224+
smv_tag_whitelist = r'^(?!1.7.2)\d+\.\d+.\d+$'
225+
smv_branch_whitelist = r'^(develop|main)$'
226+
smv_remote_whitelist = 'origin'

0 commit comments

Comments
 (0)