From ee6fb5dbcf575d331a719a43a47caf9d125fdf59 Mon Sep 17 00:00:00 2001 From: Dominik Gresch Date: Mon, 26 Aug 2024 00:00:52 +0200 Subject: [PATCH] Always use sphinx-rtd-theme plugin --- doc/source/conf.py | 10 ++++------ doc/source/examples/fp/vasp.rst | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 6b8e4d32..e9039165 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -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. @@ -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 diff --git a/doc/source/examples/fp/vasp.rst b/doc/source/examples/fp/vasp.rst index 2bf157e5..fca82d18 100644 --- a/doc/source/examples/fp/vasp.rst +++ b/doc/source/examples/fp/vasp.rst @@ -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.