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