docs: theme fixes

- register theme as extension
- add sphinxcontrib.jquery

The html generated uses jquery ($(...)),
but sphinx does not include it anymore since a while.
This commit is contained in:
Thomas Waldmann 2025-04-10 18:56:25 +02:00
parent 46c44b9d9d
commit 11ac0cdc65
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01
2 changed files with 4 additions and 0 deletions

View file

@ -113,6 +113,7 @@ def set_rst_settings(app):
def setup(app):
app.setup_extension('sphinxcontrib.jquery')
app.add_css_file('css/borg.css')
app.connect('builder-inited', set_rst_settings)
@ -258,6 +259,8 @@ extensions = [
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.viewcode',
'sphinxcontrib.jquery', # jquery is not included anymore by default
'guzzle_sphinx_theme', # register the theme as an extension to generate a sitemap.xml
]
extlinks = {

View file

@ -1,2 +1,3 @@
sphinx
sphinxcontrib-jquery
guzzle_sphinx_theme