-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.py
88 lines (80 loc) · 2.31 KB
/
conf.py
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python3
"""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
"""
# pylint: disable=invalid-name,redefined-builtin
from pathlib import Path
import version_query
def get_release():
"""Query the current release for the project."""
repo_path = Path('.')
ret_value = version_query.git_query.query_git_repo(repo_path).to_str()
return ret_value
author = 'Xander Harris'
autoyaml_root = "."
autoyaml_doc_delimiter = "###"
autoyaml_comment = "#"
autoyaml_level = 10
autoyaml_safe_loader = True
copyright = '2024, Xander Harris'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
exclude_patterns = [
'_build',
'Thumbs.db',
'.DS_Store',
'.venv/*',
'.tmp/*',
'.pytest_cache/*',
'resources/templates/NOTES.txt',
]
extensions = [
'myst_parser',
'sphinx_design',
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.githubpages',
'sphinx.ext.intersphinx',
'sphinxcontrib.autoyaml',
]
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_logo = '_static/img/logo/helm.png'
html_favicon = '_static/img/logo/helm.png'
html_static_path = ['_static']
html_theme = 'sphinx_book_theme'
myst_dmath_double_inline=True
myst_enable_extensions = [
"amsmath",
"attrs_block",
"attrs_inline",
"colon_fence",
"deflist",
"dollarmath",
"fieldlist",
"html_admonition",
"html_image",
"linkify",
"replacements",
"smartquotes",
"strikethrough",
"substitution",
"tasklist",
]
myst_title_to_header = True
project = 'Template Helm Chart'
rst_epilog = """
.. sectionauthor:: Xander Harris <[email protected]>
"""
release = get_release()
show_authors=True
source_suffix = {
'.md': 'markdown',
'.rst': 'restructuredtext',
'.txt': 'markdown',
}
templates_path = ['_templates']