Skip to content

Commit 6eca42b

Browse files
authored
Always use sphinx-rtd-theme plugin (#240)
1 parent bd2dec6 commit 6eca42b

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

doc/source/conf.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import os
1616
import time
1717

18+
import sphinx_rtd_theme
19+
1820
# If extensions (or modules to document with autodoc) are in another directory,
1921
# add these directories to sys.path here. If the directory is relative to the
2022
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -117,12 +119,8 @@
117119

118120
# The theme to use for HTML and HTML Help pages. See the documentation for
119121
# a list of builtin themes.
120-
if not os.environ.get("READTHEDOCS", None) == "True":
121-
with contextlib.suppress(ImportError):
122-
import sphinx_rtd_theme
123-
124-
html_theme = "sphinx_rtd_theme"
125-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
122+
html_theme = "sphinx_rtd_theme"
123+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
126124

127125
# Theme options are theme-specific and customize the look and feel of a theme
128126
# further. For a list of options available for each theme, see the

doc/source/examples/fp/vasp.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A first-principles calculation with VASP
44
========================================
55

6-
.. warning:
6+
.. warning::
77

88
The Z2Pack to VASP interface is unsupported. Since VASP is a proprietary program that the Z2Pack developers do not have access to, any problems regarding this interface should be directed at VASP support.
99

0 commit comments

Comments
 (0)