docs: fix configuration

This commit is contained in:
Anna “CyberTailor” 2023-11-25 13:31:01 +05:00
parent 9a2b8badb4
commit dc4f35239e
Signed by: CyberTaIlor
GPG Key ID: E7B76EDC50864BB1
1 changed files with 13 additions and 3 deletions

View File

@ -18,14 +18,14 @@ release = '1.1.3'
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
'sphinx-prompt',
'sphinx_prompt',
]
try:
import notfound.extension
extensions.append('notfound.extension')
notfound_no_urls_prefix = True
notfound_urls_prefix = None
except ModuleNotFoundError:
pass
@ -47,7 +47,17 @@ manpages_url = 'https://docs.sysrq.in/{path}'
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'insipid'
html_permalinks_icon = '#'
html_theme_options = {
'globaltoc_maxdepth': 3,
'right_buttons': [],
}
html_sidebars = {
'**': [
'globaltoc.html',
]
}
html_static_path = ['_static']
html_title = f'{project} {release}'
html_show_sourcelink = False
html_baseurl = 'https://nimbus.sysrq.in/'