source: flex_extract.git/for_developers/Sphinx/source/conf.py @ 41c9dbc

ctbtodev
Last change on this file since 41c9dbc was 41c9dbc, checked in by Anne Philipp <anne.philipp@…>, 5 years ago

Large update of Sphinx doc; moved Sphinx source to dev dir; Cleaned control files

  • Property mode set to 100644
File size: 5.8 KB
Line 
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
17sys.path.insert(0, os.path.abspath('../../../source/python'))
18sys.path.insert(0, os.path.abspath('../../../source/python/mods'))
19sys.path.insert(0, os.path.abspath('../../../source/python/classes'))
20
21
22
23# -- Project information -----------------------------------------------------
24
25project = u'flex_extract'
26copyright = u'2019, Anne Philipp and Leopold Haimberger'
27author = u'Anne Philipp and Leopold Haimberger'
28
29# The short X.Y version
30version = u'7.1'
31# The full version, including alpha/beta/rc tags
32release = u'7.1 alpha'
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.
44extensions = [
45    'sphinx.ext.napoleon',
46    'sphinx.ext.autodoc',
47    'sphinx.ext.autosectionlabel',
48    'sphinx.ext.todo',
49    'sphinx.ext.coverage',
50    'sphinx.ext.mathjax',
51    'sphinx.ext.ifconfig',
52    'sphinx.ext.viewcode',
53    'sphinx.ext.githubpages',
54#    'sphinx_pyreverse',
55    'sphinx-jsonschema',
56    'sphinx.ext.intersphinx'
57]
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:
64#
65# source_suffix = ['.rst', '.md']
66source_suffix = ['.rst', '.md', '.txt']
67
68# The master toctree document.
69master_doc = 'index'
70
71# The language for content autogenerated by Sphinx. Refer to documentation
72# for a list of supported languages.
73#
74# This is also used if you do content translation via gettext catalogs.
75# Usually you set "language" from the command line for these cases.
76language = None
77
78# List of patterns, relative to source directory, that match files and
79# directories to ignore when looking for source files.
80# This pattern also affects html_static_path and html_extra_path .
81exclude_patterns = []
82
83# The name of the Pygments (syntax highlighting) style to use.
84pygments_style = 'sphinx'
85
86
87# -- Options for HTML output -------------------------------------------------
88
89# The theme to use for HTML and HTML Help pages.  See the documentation for
90# a list of builtin themes.
91#
92html_theme = 'sphinx_rtd_theme'
93
94# Theme options are theme-specific and customize the look and feel of a theme
95# further.  For a list of options available for each theme, see the
96# documentation.
97#
98html_theme_options = {
99     'display_version': True,
100     'titles_only': False,
101}
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".
106html_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 = 'flex_extractdoc'
123
124
125# -- Options for LaTeX output ------------------------------------------------
126
127latex_elements = {
128    # The paper size ('letterpaper' or 'a4paper').
129    #
130    'papersize': 'a4paper',
131
132    # The font size ('10pt', '11pt' or '12pt').
133    #
134    'pointsize': '12pt',
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, 'flex_extract.tex', u'flex\\_extract Documentation',
150     u'Anne Philipp and Leopold Haimberger', '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, 'flex_extract', u'flex_extract 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, 'flex_extract', u'flex_extract Documentation',
171     author, 'flex_extract', 'One line description of project.',
172     'Miscellaneous'),
173]
174
175
176# -- Extension configuration -------------------------------------------------
177
178html_context = {
179    'css_files': ['_static/css/custom.css',
180                  '_static/css/theme_overrides.css'
181                 ],
182}
183
184# -- Options for todo extension ----------------------------------------------
185
186# If true, `todo` and `todoList` produce output, else they produce nothing.
187todo_include_todos = True
188
189
190# -- Add extra css -----------------------------------------------------------
191def setup(app):
192    app.add_stylesheet('css/custom.css')
193
194
195
196
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG