nimbus/docs/conf.py

67 lines
1.8 KiB
Python
Raw Normal View History

2022-11-13 14:27:41 +00:00
# SPDX-FileCopyrightText: 2022 Anna <cyber@sysrq.in>
# SPDX-License-Identifier: CC0-1.0
#
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'nimbus'
author = 'Anna (cybertailor) Vyalkova & Nimble Authors'
2023-11-25 07:38:59 +00:00
copyright = f'2022-2023, {author}'
2023-06-17 07:52:30 +00:00
release = '1.1.3'
2022-11-13 14:27:41 +00:00
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
2023-11-25 08:31:01 +00:00
'sphinx_prompt',
2022-11-13 14:27:41 +00:00
]
2023-05-06 17:48:11 +00:00
try:
import notfound.extension
extensions.append('notfound.extension')
2023-11-25 08:31:01 +00:00
notfound_urls_prefix = None
2023-05-06 17:48:11 +00:00
except ModuleNotFoundError:
pass
try:
import sphinx_sitemap
extensions.append('sphinx_sitemap')
sitemap_locales = [None]
sitemap_url_scheme = '{link}'
except ModuleNotFoundError:
pass
2022-11-13 14:27:41 +00:00
root_doc = 'toc'
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
manpages_url = 'https://docs.sysrq.in/{path}'
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'insipid'
2023-11-25 08:31:01 +00:00
html_permalinks_icon = '#'
html_theme_options = {
'globaltoc_maxdepth': 3,
2024-01-04 03:55:56 +00:00
'right_buttons': ['git-button.html'],
2023-11-25 08:31:01 +00:00
}
html_sidebars = {
'**': [
'globaltoc.html',
]
}
2024-01-04 03:55:56 +00:00
html_context = {
'git_repo_url': 'https://git.sysrq.in/nimbus/about/',
}
2023-11-25 08:31:01 +00:00
2022-11-13 14:27:41 +00:00
html_static_path = ['_static']
html_title = f'{project} {release}'
2022-11-13 14:48:43 +00:00
html_baseurl = 'https://nimbus.sysrq.in/'