doc: Allow using rtd theme locally

This commit is contained in:
patrick96 2020-06-12 22:38:35 +02:00 committed by Patrick Ziegler
parent 3e4f8d402e
commit 1d9365e74f
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ smartquotes = False
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # 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' html_theme = 'sphinx_rtd_theme'
else: else:
html_theme = 'alabaster' html_theme = 'alabaster'

View File

@ -9,7 +9,7 @@ Polybar Documentation
Welcome to the official polybar documentation. Welcome to the official polybar documentation.
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 1
:caption: Contents: :caption: Contents:
user/actions user/actions