]> git.proxmox.com Git - mirror_frr.git/blame - doc/manpages/conf.py
doc: overhaul manpages
[mirror_frr.git] / doc / manpages / conf.py
CommitLineData
a1e276e1
QY
1# -*- coding: utf-8 -*-
2#
3# FRR documentation build configuration file, created by
4# sphinx-quickstart on Tue Jan 31 16:00:52 2017.
5#
6# This file is execfile()d with the current directory set to its
7# containing dir.
8#
9# Note that not all possible configuration values are present in this
10# autogenerated file.
11#
12# All configuration values have a default; values that are commented out
13# serve to show the default.
14
15import sys
16import os
17import re
18
19# If extensions (or modules to document with autodoc) are in another directory,
20# add these directories to sys.path here. If the directory is relative to the
21# documentation root, use os.path.abspath to make it absolute, like shown here.
22#sys.path.insert(0, os.path.abspath('.'))
23
24# -- General configuration ------------------------------------------------
25
26# If your documentation needs a minimal Sphinx version, state it here.
27needs_sphinx = '1.0'
28
29# prolog for various variable substitutions
30rst_prolog = ''
31
32# Add any Sphinx extension module names here, as strings. They can be
33# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
34# ones.
35extensions = ['sphinx.ext.todo']
36
37# Add any paths that contain templates here, relative to this directory.
38templates_path = ['_templates']
39
40# The suffix(es) of source filenames.
41# You can specify multiple suffix as a list of string:
42# source_suffix = ['.rst']
43source_suffix = '.rst'
44
45# The encoding of source files.
46#source_encoding = 'utf-8-sig'
47
48# The master toctree document.
49master_doc = 'index'
50
51# General information about the project.
52project = u'FRR'
53copyright = u'2017, FRR'
54author = u'Kunihiro Ishiguro, et al.'
55
56# The version info for the project you're documenting, acts as replacement for
57# |version| and |release|, also used in various other places throughout the
58# built documents.
59
60# The short X.Y version.
61version = u'?.?'
62# The full version, including alpha/beta/rc tags.
63release = u'?.?-?'
64
65
66# -----------------------------------------------------------------------------
67# Extract values from codebase for substitution into docs.
68# -----------------------------------------------------------------------------
69
70# Various installation prefixes. Reasonable defaults are set where possible.
71# Values are overridden by logic below.
72replace_vars = {
73 'AUTHORS': author,
74 'COPYRIGHT_YEAR': '1999-2005',
75 'COPYRIGHT_STR': None,
76 'PACKAGE_NAME': project.lower(),
77 'PACKAGE_TARNAME': project.lower(),
78 'PACKAGE_STRING': None,
79 'PACKAGE_URL': 'https://frrouting.org/',
80 'PACKAGE_VERSION': None,
81 'INSTALL_PREFIX_ETC': None,
82 'INSTALL_PREFIX_SBIN': None,
83 'INSTALL_PREFIX_STATE': None,
84 'INSTALL_PREFIX_MODULES': None,
85 'INSTALL_USER': None,
86 'INSTALL_GROUP': None,
87 'INSTALL_VTY_GROUP': None,
88 'GROUP': 'frr',
89 'USER': 'frr',
90}
91
92# extract version information, installation location, other stuff we need to
93# use when building final documents
94val = re.compile('^S\["([^"]+)"\]="(.*)"$')
95with open('../../config.status', 'r') as cfgstatus:
96 for ln in cfgstatus.readlines():
97 m = val.match(ln)
98 if not m or m.group(1) not in replace_vars.keys(): continue
99 replace_vars[m.group(1)] = m.group(2)
100
101# manually fill out some of these we can't get from config.status
102replace_vars['COPYRIGHT_STR'] = "Copyright (c)"
103replace_vars['COPYRIGHT_STR'] += ' {}'.format(replace_vars['COPYRIGHT_YEAR'])
104replace_vars['COPYRIGHT_STR'] += ' {}'.format(replace_vars['AUTHORS'])
105release = replace_vars['PACKAGE_VERSION']
106version = release.split('-')[0]
107
108# add substitutions to prolog
109for key, value in replace_vars.items():
110 rst_prolog += '.. |{0}| replace:: {1}\n'.format(key, value)
111
112
113# The language for content autogenerated by Sphinx. Refer to documentation
114# for a list of supported languages.
115#
116# This is also used if you do content translation via gettext catalogs.
117# Usually you set "language" from the command line for these cases.
118language = None
119
120# There are two options for replacing |today|: either, you set today to some
121# non-false value, then it is used:
122#today = ''
123# Else, today_fmt is used as the format for a strftime call.
124#today_fmt = '%B %d, %Y'
125
126# List of patterns, relative to source directory, that match files and
127# directories to ignore when looking for source files.
128exclude_patterns = ['_build']
129
130# The reST default role (used for this markup: `text`) to use for all
131# documents.
132#default_role = None
133
134# If true, '()' will be appended to :func: etc. cross-reference text.
135#add_function_parentheses = True
136
137# If true, the current module name will be prepended to all description
138# unit titles (such as .. function::).
139#add_module_names = True
140
141# If true, sectionauthor and moduleauthor directives will be shown in the
142# output. They are ignored by default.
143#show_authors = False
144
145# The name of the Pygments (syntax highlighting) style to use.
146pygments_style = 'sphinx'
147
148# A list of ignored prefixes for module index sorting.
149#modindex_common_prefix = []
150
151# If true, keep warnings as "system message" paragraphs in the built documents.
152#keep_warnings = False
153
154# If true, `todo` and `todoList` produce output, else they produce nothing.
155todo_include_todos = True
156
157
158# -- Options for HTML output ----------------------------------------------
159
160# The theme to use for HTML and HTML Help pages. See the documentation for
161# a list of builtin themes.
162html_theme = 'sphinx_rtd_theme'
163
164# Theme options are theme-specific and customize the look and feel of a theme
165# further. For a list of options available for each theme, see the
166# documentation.
167#html_theme_options = {}
168
169# Add any paths that contain custom themes here, relative to this directory.
170#html_theme_path = []
171
172# The name for this set of Sphinx documents. If None, it defaults to
173# "<project> v<release> documentation".
174#html_title = None
175
176# A shorter title for the navigation bar. Default is the same as html_title.
177#html_short_title = None
178
179# The name of an image file (relative to this directory) to place at the top
180# of the sidebar.
181#html_logo = None
182
183# The name of an image file (within the static path) to use as favicon of the
184# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
185# pixels large.
186#html_favicon = None
187
188# Add any paths that contain custom static files (such as style sheets) here,
189# relative to this directory. They are copied after the builtin static files,
190# so a file named "default.css" will overwrite the builtin "default.css".
191html_static_path = ['_static']
192
193# Add any extra paths that contain custom files (such as robots.txt or
194# .htaccess) here, relative to this directory. These files are copied
195# directly to the root of the documentation.
196#html_extra_path = []
197
198# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
199# using the given strftime format.
200#html_last_updated_fmt = '%b %d, %Y'
201
202# If true, SmartyPants will be used to convert quotes and dashes to
203# typographically correct entities.
204#html_use_smartypants = True
205
206# Custom sidebar templates, maps document names to template names.
207#html_sidebars = {}
208
209# Additional templates that should be rendered to pages, maps page names to
210# template names.
211#html_additional_pages = {}
212
213# If false, no module index is generated.
214#html_domain_indices = True
215
216# If false, no index is generated.
217#html_use_index = True
218
219# If true, the index is split into individual pages for each letter.
220#html_split_index = False
221
222# If true, links to the reST sources are added to the pages.
223#html_show_sourcelink = True
224
225# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
226#html_show_sphinx = True
227
228# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
229#html_show_copyright = True
230
231# If true, an OpenSearch description file will be output, and all pages will
232# contain a <link> tag referring to it. The value of this option must be the
233# base URL from which the finished HTML is served.
234#html_use_opensearch = ''
235
236# This is the file name suffix for HTML files (e.g. ".xhtml").
237#html_file_suffix = None
238
239# Language to be used for generating the HTML full-text search index.
240# Sphinx supports the following languages:
241# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
242# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
243#html_search_language = 'en'
244
245# A dictionary with options for the search language support, empty by default.
246# Now only 'ja' uses this config value
247#html_search_options = {'type': 'default'}
248
249# The name of a javascript file (relative to the configuration directory) that
250# implements a search results scorer. If empty, the default will be used.
251#html_search_scorer = 'scorer.js'
252
253# Output file base name for HTML help builder.
254htmlhelp_basename = 'FRRdoc'
255
256# -- Options for LaTeX output ---------------------------------------------
257
258latex_elements = {
259# The paper size ('letterpaper' or 'a4paper').
260#'papersize': 'letterpaper',
261
262# The font size ('10pt', '11pt' or '12pt').
263#'pointsize': '10pt',
264
265# Additional stuff for the LaTeX preamble.
266#'preamble': '',
267
268# Latex figure (float) alignment
269#'figure_align': 'htbp',
270}
271
272# Grouping the document tree into LaTeX files. List of tuples
273# (source start file, target name, title,
274# author, documentclass [howto, manual, or own class]).
275latex_documents = [
276 (master_doc, 'FRR.tex', u'FRR User Manual',
277 u'FRR', 'manual'),
278]
279
280# The name of an image file (relative to this directory) to place at the top of
281# the title page.
282#latex_logo = None
283
284# For "manual" documents, if this is true, then toplevel headings are parts,
285# not chapters.
286#latex_use_parts = False
287
288# If true, show page references after internal links.
289#latex_show_pagerefs = False
290
291# If true, show URL addresses after external links.
292#latex_show_urls = False
293
294# Documents to append as an appendix to all manuals.
295#latex_appendices = []
296
297# If false, no module index is generated.
298#latex_domain_indices = True
299
300
301# -- Options for manual page output ---------------------------------------
302
303# One entry per manual page. List of tuples
304# (source start file, name, description, authors, manual section).
305
306# If true, show URL addresses after external links.
307#man_show_urls = False
308
309fwfrr = "{} routing engine for use with FRRouting."
310
311man_pages = [
312 ('bgpd', 'bgpd', fwfrr.format("a BGPv4, BGPv4+, BGPv4- "), [], 8),
313 ('eigrpd', 'eigrpd', fwfrr.format("an EIGRP "), [], 8),
314 ('ospf6d', 'ospf6d', fwfrr.format("an OSPFv3 "), [], 8),
315 ('ospfd', 'ospfd', fwfrr.format("an OSPFv2 "), [], 8),
316 ('isisd', 'isisd', fwfrr.format("an IS-IS "), [], 8),
317 ('ospfclient', 'ospfclient', 'an example ospf-api client', [], 8),
318 ('ldpd', 'ldpd', fwfrr.format("an LDP "), [], 8),
319 ('nhrpd', 'nhrpd', fwfrr.format("a Next Hop Routing Protocol "), [], 8),
320 ('pimd', 'pimd', fwfrr.format("a PIM "), [], 8),
321 ('ripd', 'ripd', fwfrr.format("a RIP "), [], 8),
322 ('ripngd', 'ripngd', fwfrr.format("a RIPNG "), [], 8),
323 ('zebra', 'zebra', 'a routing manager for use with associated FRRouting components.', [], 8),
324 ('watchfrr', 'watchfrr', 'a program to monitor the status of FRRouting daemons', [], 8),
325 ('vtysh', 'vtysh', 'an integrated shell for FRRouting.', [], 1),
326 ('frr', 'frr', 'a systemd interaction script', [], 1),
327]
328
329# -- Options for Texinfo output -------------------------------------------
330
331# Grouping the document tree into Texinfo files. List of tuples
332# (source start file, target name, title, author,
333# dir menu entry, description, category)
334
335# Documents to append as an appendix to all manuals.
336#texinfo_appendices = []
337
338# If false, no module index is generated.
339#texinfo_domain_indices = True
340
341# How to display URL addresses: 'footnote', 'no', or 'inline'.
342#texinfo_show_urls = 'footnote'
343
344# If true, do not generate a @detailmenu in the "Top" node's menu.
345#texinfo_no_detailmenu = False
346
347# custom extensions here