source: flex_extract.git/for_developers/Sphinx/source/conf.py @ 0b00607

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

Documentation status version 0

  • Property mode set to 100644
File size: 6.4 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, glob
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
21sys.path.insert(0, os.path.abspath('_static/python'))
22
23#fortran_src = [f for f in os.listdir('../../../source/fortran') if '.f90' in f or '.f' in f]
24#print(fortran_src)
25
26# -- Project information -----------------------------------------------------
27
28project = u'flex_extract'
29copyright = u'2019, Anne Philipp and Leopold Haimberger'
30author = u'Anne Philipp and Leopold Haimberger'
31
32# The short X.Y version
33version = u'7.1'
34# The full version, including alpha/beta/rc tags
35release = u'7.1 alpha'
36
37
38# -- General configuration ---------------------------------------------------
39
40# If your documentation needs a minimal Sphinx version, state it here.
41#
42# needs_sphinx = '1.0'
43
44# Add any Sphinx extension module names here, as strings. They can be
45# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
46# ones.
47extensions = [
48    'sphinx.ext.napoleon',
49    'sphinx.ext.autodoc',
50    'sphinx.ext.autosectionlabel',
51    'sphinx.ext.todo',
52    'sphinx.ext.coverage',
53    'sphinx.ext.mathjax',
54    'sphinx.ext.ifconfig',
55    'sphinx.ext.viewcode',
56    'sphinx.ext.githubpages',
57    'sphinx-jsonschema',
58    'sphinx.ext.intersphinx',
59    'hidden_code_block',
60    'sphinxcontrib.exceltable',
61    'sphinxcontrib.seqdiag',
62    'sphinxcontrib.blockdiag',
63    'sphinx.ext.todo',
64#    'sphinxfortran.fortran_autodoc',
65#    'sphinxfortran.fortran_domain'
66]
67
68
69# Fontpath for seqdiag (truetype font)
70seqdiag_fontpath = '/usr/share/fonts/dejavu/DejaVuSerif.ttf'
71
72# Fontpath for blockdiag (truetype font)
73blockdiag_fontpath = '/usr/share/fonts/dejavu/DejaVuSerif.ttf'
74
75
76# Add any paths that contain templates here, relative to this directory.
77templates_path = ['_templates']
78
79# The suffix(es) of source filenames.
80# You can specify multiple suffix as a list of string:
81#
82# source_suffix = ['.rst', '.md']
83source_suffix = ['.rst', '.md', '.txt']
84
85# The master toctree document.
86master_doc = 'index'
87
88# The language for content autogenerated by Sphinx. Refer to documentation
89# for a list of supported languages.
90#
91# This is also used if you do content translation via gettext catalogs.
92# Usually you set "language" from the command line for these cases.
93language = None
94
95# List of patterns, relative to source directory, that match files and
96# directories to ignore when looking for source files.
97# This pattern also affects html_static_path and html_extra_path .
98exclude_patterns = []
99
100# The name of the Pygments (syntax highlighting) style to use.
101pygments_style = 'sphinx'
102
103
104# -- Options for HTML output -------------------------------------------------
105
106# The theme to use for HTML and HTML Help pages.  See the documentation for
107# a list of builtin themes.
108#
109html_theme = 'sphinx_rtd_theme'
110
111# Theme options are theme-specific and customize the look and feel of a theme
112# further.  For a list of options available for each theme, see the
113# documentation.
114#
115html_theme_options = {
116     'display_version': True,
117     'titles_only': False,
118}
119
120# Add any paths that contain custom static files (such as style sheets) here,
121# relative to this directory. They are copied after the builtin static files,
122# so a file named "default.css" will overwrite the builtin "default.css".
123html_static_path = ['_static']
124
125# Custom sidebar templates, must be a dictionary that maps document names
126# to template names.
127#
128# The default sidebars (for documents that don't match any pattern) are
129# defined by theme itself.  Builtin themes are using these templates by
130# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
131# 'searchbox.html']``.
132#
133# html_sidebars = {}
134
135
136# -- Options for HTMLHelp output ---------------------------------------------
137
138# Output file base name for HTML help builder.
139htmlhelp_basename = 'flex_extractdoc'
140
141
142# -- Options for LaTeX output ------------------------------------------------
143
144latex_elements = {
145    # The paper size ('letterpaper' or 'a4paper').
146    #
147    'papersize': 'a4paper',
148
149    # The font size ('10pt', '11pt' or '12pt').
150    #
151    'pointsize': '12pt',
152
153    # Additional stuff for the LaTeX preamble.
154    #
155    # 'preamble': '',
156
157    # Latex figure (float) alignment
158    #
159    'figure_align': 'htbp',
160}
161
162# Grouping the document tree into LaTeX files. List of tuples
163# (source start file, target name, title,
164#  author, documentclass [howto, manual, or own class]).
165latex_documents = [
166    (master_doc, 'flex_extract.tex', u'flex\\_extract Documentation',
167     u'Anne Philipp and Leopold Haimberger', 'manual'),
168]
169
170
171# -- Options for manual page output ------------------------------------------
172
173# One entry per manual page. List of tuples
174# (source start file, name, description, authors, manual section).
175man_pages = [
176    (master_doc, 'flex_extract', u'flex_extract Documentation',
177     [author], 1)
178]
179
180
181# -- Options for Texinfo output ----------------------------------------------
182
183# Grouping the document tree into Texinfo files. List of tuples
184# (source start file, target name, title, author,
185#  dir menu entry, description, category)
186texinfo_documents = [
187    (master_doc, 'flex_extract', u'flex_extract Documentation',
188     author, 'flex_extract', 'One line description of project.',
189     'Miscellaneous'),
190]
191
192
193# -- Extension configuration -------------------------------------------------
194
195html_context = {
196    'css_files': ['_static/css/custom.css',
197                  '_static/css/theme_overrides.css'
198                 ],
199}
200
201# -- Options for todo extension ----------------------------------------------
202
203# If true, `todo` and `todoList` produce output, else they produce nothing.
204todo_include_todos = True
205#todo_link_only = True
206
207
208# -- Add extra css -----------------------------------------------------------
209def setup(app):
210    app.add_stylesheet('css/custom.css')
211
212
213
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG