| 1 |
# Configuration file for the Sphinx documentation builder. |
| 2 |
# |
| 3 |
# For the full list of built-in configuration values, see the documentation: |
| 4 |
# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 5 |
|
| 6 |
# -- Project information ----------------------------------------------------- |
| 7 |
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 8 |
|
| 9 |
import subprocess |
| 10 |
|
| 11 |
project = 'coreboot' |
| 12 |
copyright = 'CC-by 4.0 the coreboot project' |
| 13 |
author = 'the coreboot project' |
| 14 |
|
| 15 |
release = subprocess.check_output(('git', 'describe')).decode("utf-8") |
| 16 |
# The short X.Y version. |
| 17 |
version = release.split("-")[0] |
| 18 |
|
| 19 |
|
| 20 |
# -- General configuration --------------------------------------------------- |
| 21 |
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 22 |
|
| 23 |
extensions = ["myst_parser"] |
| 24 |
|
| 25 |
myst_heading_anchors = 5 |
| 26 |
myst_url_schemes = ["http", "https", "mailto", "ftp", "ircs"] |
| 27 |
|
| 28 |
templates_path = ['_templates'] |
| 29 |
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 30 |
|
| 31 |
# The name of the Pygments (syntax highlighting) style to use. |
| 32 |
pygments_style = 'sphinx' |
| 33 |
|
| 34 |
# The language for content autogenerated by Sphinx. Refer to documentation |
| 35 |
# for a list of supported languages. |
| 36 |
# |
| 37 |
# This is also used if you do content translation via gettext catalogs. |
| 38 |
# Usually you set "language" from the command line for these cases. |
| 39 |
language = 'en' |
| 40 |
|
| 41 |
# -- Options for HTML output ------------------------------------------------- |
| 42 |
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
| 43 |
|
| 44 |
html_theme = 'sphinx_rtd_theme' |
| 45 |
html_static_path = ['_static'] |
| 46 |
html_css_files = [ |
| 47 |
'theme_overrides.css', # override wide tables in RTD theme |
| 48 |
] |