-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconf.py
More file actions
64 lines (50 loc) · 2 KB
/
Copy pathconf.py
File metadata and controls
64 lines (50 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from sphinx.application import Sphinx
# 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 = "Garden Linux Python Library"
copyright = "2024, Garden Linux Maintainers"
author = "Garden Linux Maintainers"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.coverage",
"sphinx_rtd_theme",
"sphinx.ext.napoleon",
"sphinx_click",
"sphinxcontrib.autoprogram",
"sphinx_markdown_builder",
]
# Markdown builder configuration (GitHub-Flavored Markdown for VitePress)
# We can enable this after https://github.com/liran-funaro/sphinx-markdown-builder/pull/53 is merged
# markdown_flavor = "github"
markdown_anchor_sections = True
markdown_anchor_signatures = True
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
autodoc_mock_imports = ["networkx"]
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]
# Logo configuration
html_logo = "_static/gardenlinux-logo.svg"
html_theme_options = {
"logo_only": False,
"prev_next_buttons_location": "bottom",
"style_external_links": True,
"vcs_pageview_mode": "",
"style_nav_header_background": "#027154", # Primary green
"collapse_navigation": True,
"sticky_navigation": True,
"navigation_depth": 4,
"includehidden": True,
"titles_only": False,
}
# Add custom CSS
def setup(app: Sphinx) -> None:
app.add_css_file("custom.css")