2022-07-06 23:56:41 +02:00
|
|
|
import os
|
|
|
|
# Configuration file for the Sphinx documentation builder.
|
|
|
|
|
|
|
|
# -- Project information
|
|
|
|
|
|
|
|
project = 'PGPainless'
|
|
|
|
copyright = '2022, Paul Schaub'
|
|
|
|
author = 'Paul Schaub'
|
|
|
|
|
2022-07-07 00:44:28 +02:00
|
|
|
master_doc = 'index'
|
|
|
|
|
2022-07-06 23:56:41 +02:00
|
|
|
# https://protips.readthedocs.io/git-tag-version.html
|
|
|
|
latest_tag = os.popen('git describe --abbrev=0').read().strip()
|
|
|
|
release = latest_tag
|
|
|
|
version = release
|
|
|
|
|
|
|
|
myst_substitutions = {
|
2022-07-07 00:13:50 +02:00
|
|
|
"repo_host" : "codeberg.org" # or 'github.com'
|
2022-07-06 23:56:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# -- General configuration
|
|
|
|
|
|
|
|
extensions = [
|
|
|
|
'myst_parser',
|
|
|
|
'sphinxcontrib.mermaid',
|
|
|
|
'sphinx.ext.duration',
|
|
|
|
'sphinx.ext.doctest',
|
|
|
|
'sphinx.ext.autodoc',
|
|
|
|
'sphinx.ext.autosummary',
|
|
|
|
]
|
|
|
|
|
|
|
|
source_suffix = ['.rst', '.md']
|
|
|
|
|
|
|
|
myst_enable_extensions = [
|
|
|
|
'colon_fence',
|
|
|
|
'substitution',
|
|
|
|
]
|
|
|
|
|
|
|
|
myst_heading_anchors = 3
|
|
|
|
|
|
|
|
templates_path = ['_templates']
|
|
|
|
|
|
|
|
# -- Options for HTML output
|
|
|
|
|
|
|
|
html_theme = 'sphinx_rtd_theme'
|
|
|
|
|
2022-07-07 00:13:50 +02:00
|
|
|
# Show URLs as footnotes
|
2022-07-06 23:56:41 +02:00
|
|
|
#epub_show_urls = 'footnote'
|
2022-07-07 00:13:50 +02:00
|
|
|
latex_show_urls = 'footnote'
|
2022-07-06 23:56:41 +02:00
|
|
|
|
2022-07-07 00:13:50 +02:00
|
|
|
# 'raw' does not work for epub and pdf, neither does 'svg'
|
2022-07-06 23:56:41 +02:00
|
|
|
mermaid_output_format = 'png'
|
2022-07-08 00:21:40 +02:00
|
|
|
mermaid_params = ['--theme', 'default', '--width', '1600', '--backgroundColor', 'transparent']
|