1 # -*- coding: utf-8 -*-
2 """Configuration file for the Sphinx documentation builder.
4 This file does only contain a selection of the most common options. For a
5 full list see the documentation:
7 * http://www.sphinx-doc.org/en/stable/config
11 from __future__ import division, print_function, unicode_literals
13 # from datetime import datetime
15 from recommonmark.parser import CommonMarkParser
17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
19 __author__ = 'Imran Iqbal' # noqa: E221
20 __copyright__ = 'Copyright (C) 2019, MYII' # noqa: E221
21 __license__ = 'Apache-2.0' # noqa: E221
22 __version__ = 'latest' # noqa: E221
23 __maintainer__ = 'Imran Iqbal' # noqa: E221
26 # -- Project information -----------------------------------------------------
28 project = 'template-formula'
29 copyright = __copyright__.replace('Copyright (C) ', '') # noqa: A001
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
46 # Add any paths that contain templates here, relative to this directory.
47 templates_path = ['templates', '_templates', '.templates']
49 # The suffix(es) of source filenames.
50 # You can specify multiple suffix as a list of string:
52 source_suffix = ['.rst', '.md']
54 # The master toctree document.
57 # The language for content autogenerated by Sphinx. Refer to documentation
58 # for a list of supported languages.
60 # This is also used if you do content translation via gettext catalogs.
61 # Usually you set "language" from the command line for these cases.
64 # List of patterns, relative to source directory, that match files and
65 # directories to ignore when looking for source files.
66 # This pattern also affects html_static_path and html_extra_path .
67 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
69 # The name of the Pygments (syntax highlighting) style to use.
70 pygments_style = 'sphinx'
73 # -- Options for the reStructuredText parser ---------------------------------
75 file_insertion_enabled = False
78 # -- Options for HTML output -------------------------------------------------
80 # The theme to use for HTML and HTML Help pages. See the documentation for
81 # a list of builtin themes.
83 html_theme = 'sphinx_rtd_theme'
85 # Theme options are theme-specific and customize the look and feel of a theme
86 # further. For a list of options available for each theme, see the
89 # html_theme_options = {}
91 # Add any paths that contain custom static files (such as style sheets) here,
92 # relative to this directory. They are copied after the builtin static files,
93 # so a file named "default.css" will overwrite the builtin "default.css".
94 html_static_path = ['_static']
96 # Custom sidebar templates, must be a dictionary that maps document names
99 # The default sidebars (for documents that don't match any pattern) are
100 # defined by theme itself. Builtin themes are using these templates by
101 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
102 # 'searchbox.html']``.
107 # -- Options for HTMLHelp output ---------------------------------------------
109 # Output file base name for HTML help builder.
110 htmlhelp_basename = 'template-formula'
113 # -- Options for Markdown output ---------------------------------------------
116 '.md': CommonMarkParser,
120 # -- Options for LaTeX output ------------------------------------------------
123 # The paper size ('letterpaper' or 'a4paper').
125 # 'papersize': 'letterpaper',
127 # The font size ('10pt', '11pt' or '12pt').
129 # 'pointsize': '10pt',
131 # Additional stuff for the LaTeX preamble.
135 # Latex figure (float) alignment
137 # 'figure_align': 'htbp',
140 # Grouping the document tree into LaTeX files. List of tuples
141 # (source start file, target name, title,
142 # author, documentclass [howto, manual, or own class]).
146 'template-formula.tex',
147 u'template-formula Documentation',
154 # -- Functions: `setup`, docstring preprocessing, etc. -----------------------
157 """Prepare the Sphinx application object.
159 Used for providing a custom CSS file for override styles.
164 The Sphinx application object.
169 The Sphinx application object.
172 app.add_stylesheet('css/custom.css')