Use Furo as Sphinx documentation theme

This commit is contained in:
Paolo Melchiorre 2022-01-04 18:34:35 +01:00 committed by Justin Mayer
commit 494b418dda
3 changed files with 9 additions and 15 deletions

View file

@ -3,8 +3,6 @@ import sys
from pelican import __version__
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
sys.path.append(os.path.abspath(os.pardir))
# -- General configuration ----------------------------------------------------
@ -24,25 +22,20 @@ rst_prolog = '''
.. |last_stable| replace:: :pelican-doc:`{}`
'''.format(last_stable)
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
extlinks = {
'pelican-doc': ('https://docs.getpelican.com/%s/', '')
}
# -- Options for HTML output --------------------------------------------------
html_theme = 'default'
if not on_rtd:
try:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except ImportError:
pass
html_theme = 'furo'
html_title = f'<strong>{project}</strong> <i>{release}</i>'
html_static_path = ['_static']
html_theme_options = {
'light_logo': 'pelican-logo.svg',
'dark_logo': 'pelican-logo.svg',
'navigation_with_keys': True,
}
# Output file base name for HTML help builder.
htmlhelp_basename = 'Pelicandoc'