Skip to content

Commit

Permalink
Always use sphinx-rtd-theme plugin (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
greschd authored Aug 25, 2024
1 parent bd2dec6 commit 6eca42b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import os
import time

import sphinx_rtd_theme

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down Expand Up @@ -117,12 +119,8 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
if not os.environ.get("READTHEDOCS", None) == "True":
with contextlib.suppress(ImportError):
import sphinx_rtd_theme

html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
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
Expand Down
2 changes: 1 addition & 1 deletion doc/source/examples/fp/vasp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
A first-principles calculation with VASP
========================================

.. warning:
.. warning::

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.

Expand Down

0 comments on commit 6eca42b

Please sign in to comment.