curtin-dev team mailing list archive
-
curtin-dev team
-
Mailing list archive
-
Message #02775
[Merge] ~virtuous-sloth/curtin:fix-theme-and-toc into curtin:master
Bruce Elrick has proposed merging ~virtuous-sloth/curtin:fix-theme-and-toc into curtin:master.
Commit message:
Fix for [LP #2017041](https://bugs.launchpad.net/curtin/+bug/2017041)
Requested reviews:
curtin developers (curtin-dev)
For more details, see:
https://code.launchpad.net/~virtuous-sloth/curtin/+git/curtin/+merge/441502
Make theme configuration not contingent on not being on readthedocs.io.
--
Your team curtin developers is requested to review the proposed merge of ~virtuous-sloth/curtin:fix-theme-and-toc into curtin:master.
diff --git a/doc/conf.py b/doc/conf.py
index d7a38ff..fc0cd34 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -96,19 +96,15 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'classic'
+#html_theme = 'classic'
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from
# docs.readthedocs.org
-on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+#on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
-if not on_rtd: # only import and set the theme if we're building docs locally
- import sphinx_rtd_theme
- html_theme = 'sphinx_rtd_theme'
- html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
-
-# otherwise, readthedocs.org uses their theme by default, so no need to specify
-# it
+import sphinx_rtd_theme
+html_theme = 'sphinx_rtd_theme'
+html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Follow ups