1 # Configuration file for the Sphinx documentation builder.
3 # For the full list of built-in configuration values, see the documentation:
4 # https://www.sphinx-doc.org/en/master/usage/configuration.html
6 # -- Project information -----------------------------------------------------
7 # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
12 copyright
= 'CC-by 4.0 the coreboot project'
13 author
= 'the coreboot project'
15 release
= subprocess
.check_output(('git', 'describe')).decode("utf-8")
16 # The short X.Y version.
17 version
= release
.split("-")[0]
20 # -- General configuration ---------------------------------------------------
21 # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
23 extensions
= ["myst_parser"]
25 myst_heading_anchors
= 5
26 myst_url_schemes
= ["http", "https", "mailto", "ftp", "ircs"]
28 templates_path
= ['_templates']
29 exclude_patterns
= ['_build', 'Thumbs.db', '.DS_Store']
31 # The name of the Pygments (syntax highlighting) style to use.
32 pygments_style
= 'sphinx'
36 import sphinxcontrib
.ditaa
38 print("Error: Please install sphinxcontrib.ditaa for ASCII art conversion\n")
40 extensions
+= ['sphinxcontrib.ditaa']
42 # The language for content autogenerated by Sphinx. Refer to documentation
43 # for a list of supported languages.
45 # This is also used if you do content translation via gettext catalogs.
46 # Usually you set "language" from the command line for these cases.
49 # -- Options for HTML output -------------------------------------------------
50 # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
52 html_theme
= 'sphinx_rtd_theme'
53 html_static_path
= ['_static']
55 'theme_overrides.css', # override wide tables in RTD theme