1 # -*- coding: utf-8 -*-
3 # Vis Editor documentation build configuration file, created by
4 # sphinx-quickstart on Fri Apr 28 21:45:05 2017.
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.
15 # If extensions (or modules to document with autodoc) are in another directory,
16 # add these directories to sys.path here. If the directory is relative to the
17 # documentation root, use os.path.abspath to make it absolute, like shown here.
22 # sys.path.insert(0, os.path.abspath('.'))
24 # on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
25 on_rtd
= os
.environ
.get('READTHEDOCS', None) == 'True'
27 print(subprocess
.check_output('mkdir -p build/doxygen && doxygen', shell
=True))
30 'vis': 'build/doxygen/xml'
33 breathe_default_project
= "vis"
35 # -- General configuration ------------------------------------------------
37 # If your documentation needs a minimal Sphinx version, state it here.
39 # needs_sphinx = '1.0'
41 # Add any Sphinx extension module names here, as strings. They can be
42 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
44 extensions
= ['breathe', 'sphinx.ext.mathjax' ]
46 mathjax_path
= 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
48 # Add any paths that contain templates here, relative to this directory.
49 templates_path
= ['_templates']
51 # The suffix(es) of source filenames.
52 # You can specify multiple suffix as a list of string:
54 # source_suffix = ['.rst', '.md']
55 source_suffix
= '.rst'
57 # The master toctree document.
60 # General information about the project.
61 project
= 'Vis Editor'
62 copyright
= '2017, Marc André Tanner'
63 author
= 'Marc André Tanner'
65 # The version info for the project you're documenting, acts as replacement for
66 # |version| and |release|, also used in various other places throughout the
69 # The short X.Y version.
71 # The full version, including alpha/beta/rc tags.
74 # The language for content autogenerated by Sphinx. Refer to documentation
75 # for a list of supported languages.
77 # This is also used if you do content translation via gettext catalogs.
78 # Usually you set "language" from the command line for these cases.
81 # List of patterns, relative to source directory, that match files and
82 # directories to ignore when looking for source files.
83 # This patterns also effect to html_static_path and html_extra_path
86 # The name of the Pygments (syntax highlighting) style to use.
87 pygments_style
= 'sphinx'
90 highlight_language
= 'c'
92 # If true, `todo` and `todoList` produce output, else they produce nothing.
93 todo_include_todos
= False
97 # -- Options for HTML output ----------------------------------------------
99 # The theme to use for HTML and HTML Help pages. See the documentation for
100 # a list of builtin themes.
102 # html_theme = 'alabaster'
104 # Theme options are theme-specific and customize the look and feel of a theme
105 # further. For a list of options available for each theme, see the
108 # html_theme_options = {}
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".
113 html_static_path
= ['_static']
116 # -- Options for HTMLHelp output ------------------------------------------
118 # Output file base name for HTML help builder.
119 htmlhelp_basename
= 'VisEditordoc'
122 # -- Options for LaTeX output ---------------------------------------------
125 # The paper size ('letterpaper' or 'a4paper').
127 # 'papersize': 'letterpaper',
129 # The font size ('10pt', '11pt' or '12pt').
131 # 'pointsize': '10pt',
133 # Additional stuff for the LaTeX preamble.
137 # Latex figure (float) alignment
139 # 'figure_align': 'htbp',
142 # Grouping the document tree into LaTeX files. List of tuples
143 # (source start file, target name, title,
144 # author, documentclass [howto, manual, or own class]).
146 (master_doc
, 'VisEditor.tex', 'Vis Editor Documentation',
147 'Marc André Tanner', 'manual'),
151 # -- Options for manual page output ---------------------------------------
153 # One entry per manual page. List of tuples
154 # (source start file, name, description, authors, manual section).
156 (master_doc
, 'viseditor', 'Vis Editor Documentation',
161 # -- Options for Texinfo output -------------------------------------------
163 # Grouping the document tree into Texinfo files. List of tuples
164 # (source start file, target name, title, author,
165 # dir menu entry, description, category)
166 texinfo_documents
= [
167 (master_doc
, 'VisEditor', 'Vis Editor Documentation',
168 author
, 'VisEditor', 'One line description of project.',
172 if not on_rtd
: # only import and set the theme if we're building docs locally
173 import sphinx_rtd_theme
174 html_theme
= 'sphinx_rtd_theme'
175 html_theme_path
= [sphinx_rtd_theme
.get_html_theme_path()]
177 # otherwise, readthedocs.org uses their theme by default, so no need to specify it