1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-27 05:17:59 +01:00
pgpainless/docs/source/conf.py

57 lines
1.3 KiB
Python
Raw Normal View History

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 = {
"repo_host" : "codeberg.org",
2022-07-08 15:57:43 +02:00
# "repo_host" : "github.com",
"repo_pgpainless_src" : "codeberg.org/pgpainless/pgpainless/src/branch",
# "repo_pgpainless_src" : "github.com/pgpainless/pgpainless/tree",
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'
# Show URLs as footnotes
2022-07-06 23:56:41 +02:00
#epub_show_urls = 'footnote'
latex_show_urls = 'footnote'
2022-07-06 23:56:41 +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']