blob: b0f2975dc70cf1c34c41de20688e050f67283242 [file] [log] [blame]
Nicholas Chin35599f92023-02-21 19:41:06 -07001# Configuration file for the Sphinx documentation builder.
Jonathan Neuschäfer5e48c752018-04-19 16:23:56 +02002#
Nicholas Chin35599f92023-02-21 19:41:06 -07003# 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
9import subprocess
10
11project = 'coreboot'
12copyright = 'CC-by 4.0 the coreboot project'
13author = 'the coreboot project'
14
Arthur Heymans5eb21152018-07-25 11:45:52 +020015release = subprocess.check_output(('git', 'describe')).decode("utf-8")
Patrick Georgi5ce40012018-06-06 17:03:21 +020016# The short X.Y version.
17version = release.split("-")[0]
Jonathan Neuschäfer5e48c752018-04-19 16:23:56 +020018
Nicholas Chin35599f92023-02-21 19:41:06 -070019
20# -- General configuration ---------------------------------------------------
21# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
22
23extensions = ["myst_parser"]
24
25myst_heading_anchors = 5
26
27templates_path = ['_templates']
28exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
29
30# The name of the Pygments (syntax highlighting) style to use.
31pygments_style = 'sphinx'
Patrick Rudolphf6643212020-05-17 20:04:12 +020032
33# Try to load DITAA
34try:
35 import sphinxcontrib.ditaa
36except ImportError:
37 print("Error: Please install sphinxcontrib.ditaa for ASCII art conversion\n")
38else:
Patrick Georgi20245aa2020-08-03 13:04:50 +020039 extensions += ['sphinxcontrib.ditaa']
Patrick Georgia73317e2019-12-10 20:27:38 +010040
Jonathan Neuschäfer5e48c752018-04-19 16:23:56 +020041# The language for content autogenerated by Sphinx. Refer to documentation
42# for a list of supported languages.
43#
44# This is also used if you do content translation via gettext catalogs.
45# Usually you set "language" from the command line for these cases.
Nicholas Chinb61ee162023-05-27 16:20:50 -060046language = 'en'
Jonathan Neuschäfer5e48c752018-04-19 16:23:56 +020047
Nicholas Chin35599f92023-02-21 19:41:06 -070048# -- Options for HTML output -------------------------------------------------
49# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Jonathan Neuschäfer5e48c752018-04-19 16:23:56 +020050
Jonathan Neuschäfer5e48c752018-04-19 16:23:56 +020051html_theme = 'sphinx_rtd_theme'
Patrick Rudolpha78e66e52018-05-13 16:06:51 +020052html_static_path = ['_static']
Nicholas Chinb61ee162023-05-27 16:20:50 -060053html_css_files = [
54 'theme_overrides.css', # override wide tables in RTD theme
55]