]>
git.proxmox.com Git - ovs.git/blob - Documentation/conf.py
1 # -*- coding: utf-8 -*-
3 # Open vSwitch documentation build configuration file, created by
4 # sphinx-quickstart on Fri Sep 30 09:57:36 2016.
6 # This file is execfile()d with the current directory set to its
9 # Note that not all possible configuration values are present in this
12 # All configuration values have a default; values that are commented out
13 # serve to show the default.
19 import ovs_sphinx_theme
22 print("Cannot find 'ovs-sphinx-theme' package. "
23 "Falling back to default theme.")
26 # -- General configuration ------------------------------------------------
28 # If your documentation needs a minimal Sphinx version, state it here.
32 # Add any Sphinx extension module names here, as strings. They can be
33 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
37 # Add any paths that contain templates here, relative to this directory.
38 templates_path
= ['_templates']
40 # The suffix(es) of source filenames.
41 # You can specify multiple suffix as a list of string:
43 # source_suffix = ['.rst', '.md']
44 source_suffix
= '.rst'
46 # The master toctree document.
47 master_doc
= 'contents'
49 # General information about the project.
50 project
= u
'Open vSwitch'
51 copyright
= u
'2016, The Open vSwitch Development Community'
52 author
= u
'The Open vSwitch Development Community'
54 # The version info for the project you're documenting, acts as replacement for
55 # |version| and |release|, also used in various other places throughout the
58 # The full version, including alpha/beta/rc tags.
60 filename
= "../configure.ac"
61 with
open(filename
, 'rU') as f
:
64 # Parse "AC_INIT(openvswitch, 2.7.90, bugs@openvswitch.org)":
65 release
= line
.split(',')[1].strip(string
.whitespace
+ '[]')
68 sys
.stderr
.write('%s: failed to determine Open vSwitch version\n'
72 # The short X.Y version.
74 # However, it's important to know the difference between, e.g., 2.7
75 # and 2.7.90, which can be very different versions (2.7.90 may be much
76 # closer to 2.8 than to 2.7), so check for that.
77 version
= release
if '.90' in release
else '.'.join(release
.split('.')[0:2])
79 # List of patterns, relative to source directory, that match files and
80 # directories to ignore when looking for source files.
81 # This patterns also effect to html_static_path and html_extra_path
82 exclude_patterns
= ['_build', 'Thumbs.db', '.DS_Store']
84 # If true, check the validity of #anchors in links.
85 linkcheck_anchors
= False
87 # -- Options for HTML output ----------------------------------------------
89 # The theme to use for HTML and HTML Help pages. See the documentation for
90 # a list of builtin themes.
95 # Add any paths that contain custom themes here, relative to this directory.
97 html_theme_path
= [ovs_sphinx_theme
.get_theme_dir()]
101 # The name of an image file (relative to this directory) to place at the top
104 html_logo
= '_static/logo.png'
106 # Add any paths that contain custom static files (such as style sheets) here,
107 # relative to this directory. They are copied after the builtin static files,
108 # so a file named "default.css" will overwrite the builtin "default.css".
109 html_static_path
= ['_static']
112 # -- Options for manual page output ---------------------------------------
114 # One entry per manual page. List of tuples
115 # (source start file, name, description, authors, manual section).
118 u
'Check Linux drivers for performance, vlan and L3 tunneling problems'),
120 u
'Check Linux drivers for problems with vlan traffic'),
123 # Generate list of (path, name, description, [author, ...], section)
125 ('ref/%s' % file_name
, file_name
.split('.', 1)[0],
126 description
, [author
], file_name
.split('.', 1)[1])
127 for file_name
, description
in _man_pages
]