Debian Codegraph @

docs/source/conf.py

raw symbols SCIP
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 #
15 import os
16 import sys
17 # sys.path.insert(0, os.path.abspath('.'))
18
19 sys.path.insert(0, os.path.abspath('../..'))
20 import gau2grid
21
22
23 # -- Project information -----------------------------------------------------
24
25 project = 'gau2grid'
26 copyright = '2018, Daniel G. A. Smith'
27 author = 'Daniel G. A. Smith'
28
29 # The short X.Y version
30 version = gau2grid.__version__
31 # The full version, including alpha/beta/rc tags
32 release = gau2grid.__version__
33
34
35 # -- General configuration ---------------------------------------------------
36
37 # If your documentation needs a minimal Sphinx version, state it here.
38 #
39 # needs_sphinx = '1.0'
40
41 # Add any Sphinx extension module names here, as strings. They can be
42 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
43 # ones.
44 extensions = [
45 'sphinx.ext.autodoc',
46 'sphinx.ext.autosummary',
47 'sphinx.ext.mathjax',
48 'sphinx.ext.viewcode',
49 'sphinx.ext.napoleon',
50 ]
51
52 # Add any paths that contain templates here, relative to this directory.
53 templates_path = ['_templates']
54
55 # The suffix(es) of source filenames.
56 # You can specify multiple suffix as a list of string:
57 #
58 # source_suffix = ['.rst', '.md']
59 source_suffix = '.rst'
60
61 # The master toctree document.
62 master_doc = 'index'
63
64 # The language for content autogenerated by Sphinx. Refer to documentation
65 # for a list of supported languages.
66 #
67 # This is also used if you do content translation via gettext catalogs.
68 # Usually you set "language" from the command line for these cases.
69 language = None
70
71 # List of patterns, relative to source directory, that match files and
72 # directories to ignore when looking for source files.
73 # This pattern also affects html_static_path and html_extra_path .
74 exclude_patterns = []
75
76 # The name of the Pygments (syntax highlighting) style to use.
77 pygments_style = 'default'
78
79
80 # -- Options for HTML output -------------------------------------------------
81
82 # The theme to use for HTML and HTML Help pages. See the documentation for
83 # a list of builtin themes.
84 #
85 html_theme = 'sphinx_rtd_theme'
86
87 # Theme options are theme-specific and customize the look and feel of a theme
88 # further. For a list of options available for each theme, see the
89 # documentation.
90 #
91 # html_theme_options = {}
92
93 # Add any paths that contain custom static files (such as style sheets) here,
94 # relative to this directory. They are copied after the builtin static files,
95 # so a file named "default.css" will overwrite the builtin "default.css".
96 html_static_path = ['_static']
97
98 # Custom sidebar templates, must be a dictionary that maps document names
99 # to template names.
100 #
101 # The default sidebars (for documents that don't match any pattern) are
102 # defined by theme itself. Builtin themes are using these templates by
103 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
104 # 'searchbox.html']``.
105 #
106 # html_sidebars = {}
107
108
109 # -- Options for HTMLHelp output ---------------------------------------------
110
111 # Output file base name for HTML help builder.
112 htmlhelp_basename = 'gau2griddoc'
113
114
115 # -- Options for LaTeX output ------------------------------------------------
116
117 latex_elements = {
118 # The paper size ('letterpaper' or 'a4paper').
119 #
120 # 'papersize': 'letterpaper',
121
122 # The font size ('10pt', '11pt' or '12pt').
123 #
124 # 'pointsize': '10pt',
125
126 # Additional stuff for the LaTeX preamble.
127 #
128 # 'preamble': '',
129
130 # Latex figure (float) alignment
131 #
132 # 'figure_align': 'htbp',
133 }
134
135 # Grouping the document tree into LaTeX files. List of tuples
136 # (source start file, target name, title,
137 # author, documentclass [howto, manual, or own class]).
138 latex_documents = [
139 (master_doc, 'gau2grid.tex', 'gau2grid Documentation',
140 'Daniel G. A. Smith', 'manual'),
141 ]
142
143
144 # -- Options for manual page output ------------------------------------------
145
146 # One entry per manual page. List of tuples
147 # (source start file, name, description, authors, manual section).
148 man_pages = [
149 (master_doc, 'gau2grid', 'gau2grid Documentation',
150 [author], 1)
151 ]
152
153
154 # -- Options for Texinfo output ----------------------------------------------
155
156 # Grouping the document tree into Texinfo files. List of tuples
157 # (source start file, target name, title, author,
158 # dir menu entry, description, category)
159 texinfo_documents = [
160 (master_doc, 'gau2grid', 'gau2grid Documentation',
161 author, 'gau2grid', 'One line description of project.',
162 'Miscellaneous'),
163 ]
164
165
166 # -- Extension configuration -------------------------------------------------