diff --git a/docs/_static/pelican-logo.svg b/docs/_static/pelican-logo.svg new file mode 100644 index 00000000..95b947bf --- /dev/null +++ b/docs/_static/pelican-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index fc49975a..0ec2a70d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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'{project} {release}' 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' diff --git a/pyproject.toml b/pyproject.toml index afcae0fb..6b1f9054 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ lxml = "^4.3" markdown = "~3.3.4" typogrify = "^2.0" sphinx = "<4.4.0" -sphinx_rtd_theme = "^0.5" +furo = "^2022.1.2" livereload = "^2.6" psutil = {version = "^5.7", optional = true} pygments = "~2.8"