source: rtems-docs/common/conf.py @ 3605600

5
Last change on this file since 3605600 was 5d7921b, checked in by Sebastian Huber <sebastian.huber@…>, on 08/13/19 at 05:18:59

common: Show page references after internal links

The custom RTEMS extension produced quite verbose references like
"Chapter 3 - Section 7 - Bla blub". This may distract the reading flow.
Use a standard Sphinx option to show page references instead, e.g. "Bla
blub (page 11)". This has some value for printed out documents.

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