• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# -*- coding: utf-8 -*-
2#
3# Configuration file for the Sphinx documentation builder.
4#
5# This file does only contain a selection of the most common options. For a
6# full list see the documentation:
7# http://www.sphinx-doc.org/en/master/config
8
9# -- Path setup --------------------------------------------------------------
10
11# If extensions (or modules to document with autodoc) are in another directory,
12# add these directories to sys.path here. If the directory is relative to the
13# documentation root, use os.path.abspath to make it absolute, like shown here.
14#
15import os
16import sys
17import sphinx
18
19sys.path.append(os.path.abspath('sphinxext'))
20
21# -- Project information -----------------------------------------------------
22
23project = u'weston'
24copyright = u'2019, Weston community'
25author = u'Weston community '
26
27
28# The short X.Y version
29version = u''
30# The full version, including alpha/beta/rc tags
31release = u'@VERSION@'
32
33
34# -- General configuration ---------------------------------------------------
35
36# If your documentation needs a minimal Sphinx version, state it here.
37#
38needs_sphinx = '2.1.0'
39
40# Add any Sphinx extension module names here, as strings. They can be
41# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
42# ones.
43extensions = [
44    'sphinx.ext.autodoc',
45    'sphinx.ext.intersphinx',
46    'sphinx.ext.autosectionlabel',
47    'sphinx.ext.todo',
48    'sphinx.ext.coverage',
49    'sphinx.ext.mathjax',
50    'sphinx.ext.ifconfig',
51    'sphinx.ext.viewcode',
52    'breathe',
53]
54
55breathe_projects = { "weston": "@BUILD_ROOT@/xml/" }
56breathe_default_members = ('members', 'undoc-members')
57breathe_default_project = "weston"
58
59# Add any paths that contain templates here, relative to this directory.
60templates_path = ['_templates']
61
62# The suffix(es) of source filenames.
63# You can specify multiple suffix as a list of string:
64source_suffix = ['.rst' ]
65
66# The master toctree document.
67master_doc = 'index'
68
69# The language for content autogenerated by Sphinx. Refer to documentation
70# for a list of supported languages.
71#
72# This is also used if you do content translation via gettext catalogs.
73# Usually you set "language" from the command line for these cases.
74language = None
75
76# List of patterns, relative to source directory, that match files and
77# directories to ignore when looking for source files.
78# This pattern also affects html_static_path and html_extra_path.
79exclude_patterns = []
80
81# The name of the Pygments (syntax highlighting) style to use.
82pygments_style = None
83
84# default domain
85primary_domain = 'cpp'
86
87# To automatically number figures, tables, etc. and be able to reference them.
88numfig = True
89
90# -- Options for HTML output -------------------------------------------------
91
92# The theme to use for HTML and HTML Help pages.  See the documentation for
93# a list of builtin themes.
94#
95html_theme = 'sphinx_rtd_theme'
96
97# Theme options are theme-specific and customize the look and feel of a theme
98# further.  For a list of options available for each theme, see the
99# documentation.
100#
101# html_theme_options = {}
102
103# Add any paths that contain custom static files (such as style sheets) here,
104# relative to this directory. They are copied after the builtin static files,
105# so a file named "default.css" will overwrite the builtin "default.css".
106# html_static_path = ['_static']
107
108# Custom sidebar templates, must be a dictionary that maps document names
109# to template names.
110#
111# The default sidebars (for documents that don't match any pattern) are
112# defined by theme itself.  Builtin themes are using these templates by
113# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
114# 'searchbox.html']``.
115#
116# html_sidebars = {}
117
118
119# -- Options for HTMLHelp output ---------------------------------------------
120
121# Output file base name for HTML help builder.
122htmlhelp_basename = 'weston'
123
124
125# -- Options for LaTeX output ------------------------------------------------
126
127latex_elements = {
128    # The paper size ('letterpaper' or 'a4paper').
129    #
130    # 'papersize': 'letterpaper',
131
132    # The font size ('10pt', '11pt' or '12pt').
133    #
134    # 'pointsize': '10pt',
135
136    # Additional stuff for the LaTeX preamble.
137    #
138    # 'preamble': '',
139
140    # Latex figure (float) alignment
141    #
142    # 'figure_align': 'htbp',
143}
144
145# Grouping the document tree into LaTeX files. List of tuples
146# (source start file, target name, title,
147#  author, documentclass [howto, manual, or own class]).
148latex_documents = [
149    (master_doc, 'weston.tex', u'Weston Documentation',
150     u'Weston community', 'manual'),
151]
152
153
154# -- Options for manual page output ------------------------------------------
155
156# One entry per manual page. List of tuples
157# (source start file, name, description, authors, manual section).
158man_pages = [
159    (master_doc, 'weston', u'Weston Documentation',
160     [author], 1)
161]
162
163
164# -- Options for Texinfo output ----------------------------------------------
165
166# Grouping the document tree into Texinfo files. List of tuples
167# (source start file, target name, title, author,
168#  dir menu entry, description, category)
169texinfo_documents = [
170    (master_doc, 'weston', u'Wweston Documentation',
171     author, 'Weston community', 'Weston Documentation'
172     'Miscellaneous'),
173]
174
175
176# -- Options for Epub output -------------------------------------------------
177
178# Bibliographic Dublin Core info.
179epub_title = project
180
181# The unique identifier of the text. This can be a ISBN number
182# or the project homepage.
183#
184# epub_identifier = ''
185
186# A unique identification for the text.
187#
188# epub_uid = ''
189
190# A list of files that should not be packed into the epub file.
191epub_exclude_files = ['search.html']
192
193
194# -- Extension configuration -------------------------------------------------
195
196# -- Options for intersphinx extension ---------------------------------------
197
198# Example configuration for intersphinx: refer to the Python standard library.
199intersphinx_mapping = {'https://docs.python.org/3': None}
200
201# -- Options for todo extension ----------------------------------------------
202
203# If true, `todo` and `todoList` produce output, else they produce nothing.
204todo_include_todos = True
205