2023-10-23 19:04:58 +02:00
|
|
|
# SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
#
|
2023-09-14 21:30:43 +02:00
|
|
|
# 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
|
|
|
|
|
2023-10-01 10:45:09 +02:00
|
|
|
project = 'OpenPGP for application developers'
|
2023-10-23 19:04:58 +02:00
|
|
|
copyright = '2023, The "Notes on OpenPGP" project, CC-BY-SA-4.0'
|
2023-10-01 15:08:31 +02:00
|
|
|
version = "0.01"
|
2023-09-14 21:30:43 +02:00
|
|
|
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
|
|
|
|
|
|
extensions = [
|
|
|
|
'myst_parser',
|
|
|
|
]
|
|
|
|
source_suffix = ['.md', '.rst']
|
|
|
|
|
|
|
|
templates_path = ['_templates']
|
|
|
|
exclude_patterns = []
|
|
|
|
|
2023-11-22 22:32:53 +01:00
|
|
|
# -- Options for EPUB output -------------------------------------------------
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-epub-output
|
2023-09-14 21:30:43 +02:00
|
|
|
|
2023-11-22 22:32:53 +01:00
|
|
|
epub_css_files = [
|
|
|
|
'epub/css/custom.css'
|
|
|
|
]
|
2023-09-14 21:30:43 +02:00
|
|
|
|
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
|
|
|
|
|
|
html_theme = 'alabaster'
|
|
|
|
html_static_path = ['_static']
|
2023-10-02 15:38:17 +02:00
|
|
|
|
2023-10-09 12:48:25 +02:00
|
|
|
html_show_sphinx = False
|
|
|
|
html_show_copyright = False
|
|
|
|
html_show_sourcelink = False
|
|
|
|
|
2023-10-02 15:38:17 +02:00
|
|
|
# https://github.com/sphinx-doc/alabaster/blob/0.x/alabaster/theme.conf
|
|
|
|
html_theme_options = {
|
|
|
|
'code_font_size': '9pt',
|
2023-10-04 14:01:37 +02:00
|
|
|
'show_relbars': 'yes',
|
2023-10-09 12:48:25 +02:00
|
|
|
'show_powered_by': False,
|
2023-10-02 15:38:17 +02:00
|
|
|
}
|
2023-11-02 16:30:06 +01:00
|
|
|
|
|
|
|
# we want to circumvent obscure warnings about footnotes following a heading:
|
|
|
|
# https://github.com/executablebooks/MyST-Parser/issues/352
|
|
|
|
myst_footnote_transition = False
|
2023-11-20 16:21:57 +01:00
|
|
|
|
|
|
|
# number code-blocks, figures and tables, if they have a caption
|
|
|
|
numfig = True
|
|
|
|
# number figures in flat hierarchy
|
|
|
|
numfig_secnum_depth = 0
|