mb/google/poppy/variants/atlas: Do not override icc_max
[coreboot.git] / Documentation / conf.py
blobff1ad9d8e25ac5df0dc3e4f69e8be04391ddee0c
1 # -*- coding: utf-8 -*-
2 import subprocess
4 # Add any paths that contain templates here, relative to this directory.
5 templates_path = ['_templates']
7 # The suffix(es) of source filenames.
8 source_suffix = ['.md']
10 # The master toctree document.
11 master_doc = 'index'
13 # General information about the project.
14 project = u'coreboot'
15 copyright = u'CC-by 4.0 the coreboot project'
16 author = u'the coreboot project'
18 # The version info for the project you're documenting, acts as replacement for
19 # |version| and |release|, also used in various other places throughout the
20 # built documents.
22 # The full version, including alpha/beta/rc tags.
23 release = subprocess.check_output(('git', 'describe')).decode("utf-8")
24 # The short X.Y version.
25 version = release.split("-")[0]
27 # The language for content autogenerated by Sphinx. Refer to documentation
28 # for a list of supported languages.
30 # This is also used if you do content translation via gettext catalogs.
31 # Usually you set "language" from the command line for these cases.
32 language = None
34 # List of patterns, relative to source directory, that match files and
35 # directories to ignore when looking for source files.
36 # This patterns also effect to html_static_path and html_extra_path
37 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
39 # The name of the Pygments (syntax highlighting) style to use.
40 pygments_style = 'sphinx'
42 # A list of ignored prefixes for module index sorting.
43 # modindex_common_prefix = []
45 # If true, keep warnings as "system message" paragraphs in the built documents.
46 # keep_warnings = False
48 # If true, `todo` and `todoList` produce output, else they produce nothing.
49 todo_include_todos = False
52 # -- Options for HTML output ----------------------------------------------
54 # The theme to use for HTML and HTML Help pages. See the documentation for
55 # a list of builtin themes.
57 html_theme = 'sphinx_rtd_theme'
59 # Add any paths that contain custom static files (such as style sheets) here,
60 # relative to this directory. They are copied after the builtin static files,
61 # so a file named "default.css" will overwrite the builtin "default.css".
62 html_static_path = ['_static']
64 html_context = {
65 'css_files': [
66 '_static/theme_overrides.css', # override wide tables in RTD theme
70 # Output file base name for HTML help builder.
71 htmlhelp_basename = 'corebootdoc'
73 # -- Options for LaTeX output ---------------------------------------------
75 latex_elements = {
76 # The paper size ('letterpaper' or 'a4paper').
78 # 'papersize': 'letterpaper',
80 # The font size ('10pt', '11pt' or '12pt').
82 # 'pointsize': '10pt',
84 # Additional stuff for the LaTeX preamble.
86 # 'preamble': '',
88 # Latex figure (float) alignment
90 # 'figure_align': 'htbp',
93 # Grouping the document tree into LaTeX files. List of tuples
94 # (source start file, target name, title,
95 # author, documentclass [howto, manual, or own class]).
96 latex_documents = [
97 (master_doc, 'coreboot.tex', u'coreboot Documentation',
98 u'the coreboot project', 'manual'),
101 # The name of an image file (relative to this directory) to place at the top of
102 # the title page.
104 # latex_logo = None
106 # For "manual" documents, if this is true, then toplevel headings are parts,
107 # not chapters.
109 # latex_use_parts = False
111 # If true, show page references after internal links.
113 # latex_show_pagerefs = False
115 # If true, show URL addresses after external links.
117 # latex_show_urls = False
119 # Documents to append as an appendix to all manuals.
121 # latex_appendices = []
123 # If false, will not define \strong, \code, itleref, \crossref ... but only
124 # \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
125 # packages.
127 # latex_keep_old_macro_names = True
129 # If false, no module index is generated.
131 # latex_domain_indices = True
134 # -- Options for manual page output ---------------------------------------
136 # One entry per manual page. List of tuples
137 # (source start file, name, description, authors, manual section).
138 man_pages = [
139 (master_doc, 'coreboot', u'coreboot Documentation',
140 [author], 1)
143 # If true, show URL addresses after external links.
145 # man_show_urls = False
148 # -- Options for Texinfo output -------------------------------------------
150 # Grouping the document tree into Texinfo files. List of tuples
151 # (source start file, target name, title, author,
152 # dir menu entry, description, category)
153 texinfo_documents = [
154 (master_doc, 'coreboot', u'coreboot Documentation',
155 author, 'coreboot', 'One line description of project.',
156 'Miscellaneous'),
159 source_parsers = {
160 '.md': 'recommonmark.parser.CommonMarkParser',
163 # Documents to append as an appendix to all manuals.
165 # texinfo_appendices = []
167 # If false, no module index is generated.
169 # texinfo_domain_indices = True
171 # How to display URL addresses: 'footnote', 'no', or 'inline'.
173 # texinfo_show_urls = 'footnote'
175 # If true, do not generate a @detailmenu in the "Top" node's menu.
177 # texinfo_no_detailmenu = False
179 enable_auto_toc_tree = True
182 def setup(app):
183 from recommonmark.transform import AutoStructify
184 app.add_config_value('recommonmark_config', {
185 'enable_auto_toc_tree': True,
186 'enable_auto_doc_ref': True,
187 'enable_eval_rst': True,
188 'url_resolver': lambda url: '/' + url
189 }, True)
190 app.add_transform(AutoStructify)