mb/starlabs/{lite_adl,byte_adl}: Don't select MAINBOARD_HAS_TPM2
[coreboot2.git] / Documentation / conf.py
blob6284fca73cf5ed0ac6876b5cb9d502ffc7983753
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
9 import subprocess
11 project = 'coreboot'
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'
34 # Try to load DITAA
35 try:
36 import sphinxcontrib.ditaa
37 except ImportError:
38 print("Error: Please install sphinxcontrib.ditaa for ASCII art conversion\n")
39 else:
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.
47 language = 'en'
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']
54 html_css_files = [
55 'theme_overrides.css', # override wide tables in RTD theme