source: rtems-docs/common/conf.py @ 19af6b4

5
Last change on this file since 19af6b4 was 19af6b4, checked in by Chris Johns <chrisj@…>, on 03/12/20 at 05:34:16

waf: Get the version numbers from the version file.

  • Property mode set to 100644
File size: 6.7 KB
Line 
1import version as rtems_version
2
3extensions = [
4        "sphinx.ext.autodoc",
5        "sphinx.ext.coverage",
6        "sphinx.ext.doctest",
7        "sphinx.ext.extlinks",
8        "sphinx.ext.graphviz",
9        "sphinx.ext.intersphinx",
10        "sphinx.ext.mathjax",
11        "sphinxcontrib.bibtex",
12        "rtemsdomain",
13]
14
15extlinks = {'release_path': ('https://ftp.rtems.org/pub/rtems/releases', None) }
16
17# Add any paths that contain templates here, relative to this directory.
18#templates_path = ['build/_templates']
19
20# The suffix of source filenames.
21source_suffix = '.rst'
22
23# The encoding of source files.
24#source_encoding = 'utf-8-sig'
25
26# The master toctree document.
27master_doc = 'index'
28
29# General information about the project.
30project = u'RTEMS Documentation Project'
31copyright = u'1988, 2020 RTEMS Project and contributors'
32
33# The version info for the project you're documenting, acts as replacement for
34# |version| and |release|, also used in various other places throughout the
35# built documents.
36#
37# The short X.Y version.
38version = rtems_version.version()
39
40# The full version, including alpha/beta/rc tags.
41release = rtems_version.string()
42
43major = rtems_version.major()
44minor = rtems_version.minor()
45revision = rtems_version.revision()
46
47# The language for content autogenerated by Sphinx. Refer to documentation
48# for a list of supported languages.
49#language = None
50
51# There are two options for replacing |today|: either, you set today to some
52# non-false value, then it is used:
53#today = ''
54# Else, today_fmt is used as the format for a strftime call.
55#today_fmt = '%B %d, %Y'
56
57# List of patterns, relative to source directory, that match files and
58# directories to ignore when looking for source files.
59exclude_patterns = []
60
61# The reST default role (used for this markup: `text`) to use for all documents.
62#default_role = None
63
64# If true, '()' will be appended to :func: etc. cross-reference text.
65#add_function_parentheses = True
66
67# If true, the current module name will be prepended to all description
68# unit titles (such as .. function::).
69#add_module_names = True
70
71# If true, sectionauthor and moduleauthor directives will be shown in the
72# output. They are ignored by default.
73#show_authors = False
74
75# The name of the Pygments (syntax highlighting) style to use.
76pygments_style = 'sphinx'
77
78# A list of ignored prefixes for module index sorting.
79#modindex_common_prefix = []
80
81# -- Options for HTML output ---------------------------------------------------
82
83# The theme to use for HTML and HTML Help pages.  See the documentation for
84# a list of builtin themes.
85
86import sphinx_rtd_theme_rtems
87html_theme = "sphinx_rtd_theme_rtems"
88html_theme_path = [sphinx_rtd_theme_rtems.get_html_theme_path()]
89
90# Theme options are theme-specific and customize the look and feel of a theme
91# further.  For a list of options available for each theme, see the
92# documentation.
93html_theme_options = {
94    'collapse_navigation': False,
95    'display_version': True,
96    'sticky_navigation': True,
97    'genindex': True,
98}
99
100# Add any paths that contain custom themes here, relative to this directory.
101#html_theme_path = []
102
103# The name for this set of Sphinx documents.  If None, it defaults to
104# "<project> v<release> documentation".
105#html_title = None
106
107# A shorter title for the navigation bar.  Default is the same as html_title.
108#html_short_title = None
109
110# The name of an image file (relative to this directory) to place at the top
111# of the sidebar.
112#html_logo = None
113
114# The name of an image file (within the static path) to use as favicon of the
115# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
116# pixels large.
117#html_favicon = None
118
119# Add any paths that contain custom static files (such as style sheets) here,
120# relative to this directory. They are copied after the builtin static files,
121# so a file named "default.css" will overwrite the builtin "default.css".
122html_static_path = ['build/_static']
123
124# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
125# using the given strftime format.
126#html_last_updated_fmt = '%b %d, %Y'
127
128# If true, SmartyPants will be used to convert quotes and dashes to
129# typographically correct entities.
130#html_use_smartypants = True
131
132# Custom sidebar templates, maps document names to template names.
133#html_sidebars = {}
134
135html_sidebars = {
136#       'index':    ['sidebarlogo.html', 'sidebarintro.html', 'sourcelink.html','searchbox.html'],
137#       '**':       ['sidebarlogo.html', 'localtoc.html', 'relations.html', 'sourcelink.html', 'searchbox.html']
138}
139
140
141# Additional templates that should be rendered to pages, maps page names to
142# template names.
143#html_additional_pages = {}
144
145# If false, no module index is generated.
146#html_domain_indices = True
147
148# If false, no index is generated.
149#html_use_index = True
150
151# If true, the index is split into individual pages for each letter.
152#html_split_index = False
153
154# If true, links to the reST sources are added to the pages.
155html_show_sourcelink = False
156
157# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
158#html_show_sphinx = True
159
160# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
161#html_show_copyright = True
162
163# If true, an OpenSearch description file will be output, and all pages will
164# contain a <link> tag referring to it.  The value of this option must be the
165# base URL from which the finished HTML is served.
166#html_use_opensearch = ''
167
168# This is the file name suffix for HTML files (e.g. ".xhtml").
169#html_file_suffix = None
170
171# Output file base name for HTML help builder.
172htmlhelp_basename = 'rtemsdoc'
173
174
175# -- Options for LaTeX output --------------------------------------------------
176latex_engine = 'pdflatex'
177
178latex_use_xindy = False
179
180latex_paper_size = 'a4'
181
182# Grouping the document tree into LaTeX files. List of tuples
183# (source start file, target name, title, author, documentclass [howto/manual]).
184latex_documents = [] # must be overridden in local conf.py
185
186# Additional stuff for LaTeX
187#    'fontpkg':      r'\usepackage{mathpazo}',
188latex_elements = {
189    'papersize':    'a4paper',
190    'pointsize':    '11pt',
191    'releasename':  '',
192    'preamble':     r'''
193\newcommand{\rtemscopyright}{%s}
194\usepackage{rtemsstyle}
195''' % (copyright),
196    'parsedliteralwraps': True,
197}
198
199latex_additional_files = ['../common/rtemsstyle.sty', '../common/logo.pdf']
200latex_use_modindex = False
201
202# The name of an image file (relative to this directory) to place at the top of
203# the title page.
204#latex_logo = None
205
206# If true, show page references after internal links.
207latex_show_pagerefs = True
208
209# If true, show URL addresses after external links.
210#latex_show_urls=True
211
212# Documents to append as an appendix to all manuals.
213#latex_appendices = []
214
215# If false, no module index is generated.
216#latex_domain_indices = True
217
218# Example configuration for intersphinx: refer to the Python standard library.
219#intersphinx_mapping = {'http://docs.python.org/': None}
220
221highlight_language = "c"
Note: See TracBrowser for help on using the repository browser.