Use Furo theme for documentation

This commit is contained in:
Guillaume Ayoub
2025-01-14 17:16:51 +01:00
parent ccbfac5bb0
commit 93f44d4ec8
3 changed files with 21 additions and 6 deletions
+18 -3
View File
@@ -40,10 +40,25 @@ pygments_style = 'monokai'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'sphinx_rtd_theme'
html_theme = 'furo'
html_theme_options = {
'collapse_navigation': False,
'light_css_variables': {
'color-brand-primary': 'var(--red)',
'color-brand-content': 'var(--red)',
'color-brand-visited': 'var(--red)',
'font-stack': 'ClarityCity, sans-serif',
'font-stack--monospace': 'Inconsolata, monospace',
'font-stack--headings': 'Inconsolata, monospace',
},
'dark_css_variables': {
'color-brand-primary': 'var(--red)',
'color-brand-content': 'var(--red)',
'color-brand-visited': 'var(--red)',
},
'top_of_page_buttons': ['edit'],
'source_edit_link':
'https://github.com/CourtBouillon/pydyf/edit/main/docs/{filename}',
}
# Favicon URL
@@ -57,7 +72,7 @@ html_static_path = []
# These paths are either relative to html_static_path
# or fully qualified paths (eg. https://...)
html_css_files = [
'https://www.courtbouillon.org/static/docs.css',
'https://www.courtbouillon.org/static/docs-furo.css',
]
# Output file base name for HTML help builder.
+2 -2
View File
@@ -7,7 +7,7 @@ WeasyPrint
.. toctree::
:caption: Documentation
:maxdepth: 3
:maxdepth: 2
first_steps
common_use_cases
@@ -16,7 +16,7 @@ WeasyPrint
.. toctree::
:caption: Extra Information
:maxdepth: 3
:maxdepth: 2
changelog
contribute
+1 -1
View File
@@ -52,7 +52,7 @@ Changelog = 'https://github.com/Kozea/WeasyPrint/releases'
Donation = 'https://opencollective.com/courtbouillon'
[project.optional-dependencies]
doc = ['sphinx', 'sphinx_rtd_theme']
doc = ['sphinx', 'furo']
test = ['pytest', 'ruff']
[project.scripts]