From 1d9365e74fd976619316ff450c53f76eac6ac6e6 Mon Sep 17 00:00:00 2001 From: patrick96 Date: Fri, 12 Jun 2020 22:38:35 +0200 Subject: [PATCH] doc: Allow using rtd theme locally --- doc/conf.py | 2 +- doc/index.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 9b85ded9..a68eaa55 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -99,7 +99,7 @@ smartquotes = False # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -if on_rtd: +if on_rtd or os.environ.get('USE_RTD_THEME', '0') == '1': html_theme = 'sphinx_rtd_theme' else: html_theme = 'alabaster' diff --git a/doc/index.rst b/doc/index.rst index 89a8ada8..a6bcc4e3 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -9,7 +9,7 @@ Polybar Documentation Welcome to the official polybar documentation. .. toctree:: - :maxdepth: 2 + :maxdepth: 1 :caption: Contents: user/actions