[708c667] | 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 |
---|
[0b00607] | 16 | import sys, glob |
---|
| 17 | sys.path.insert(0, os.path.abspath('../../../Source/Python')) |
---|
| 18 | sys.path.insert(0, os.path.abspath('../../../Source/Python/Mods')) |
---|
| 19 | sys.path.insert(0, os.path.abspath('../../../Source/Python/Classes')) |
---|
[708c667] | 20 | |
---|
[0b00607] | 21 | sys.path.insert(0, os.path.abspath('_static/python')) |
---|
[708c667] | 22 | |
---|
[0b00607] | 23 | #fortran_src = [f for f in os.listdir('../../../source/fortran') if '.f90' in f or '.f' in f] |
---|
| 24 | #print(fortran_src) |
---|
[708c667] | 25 | |
---|
| 26 | # -- Project information ----------------------------------------------------- |
---|
| 27 | |
---|
| 28 | project = u'flex_extract' |
---|
[41c9dbc] | 29 | copyright = u'2019, Anne Philipp and Leopold Haimberger' |
---|
[708c667] | 30 | author = u'Anne Philipp and Leopold Haimberger' |
---|
| 31 | |
---|
| 32 | # The short X.Y version |
---|
| 33 | version = u'7.1' |
---|
| 34 | # The full version, including alpha/beta/rc tags |
---|
| 35 | release = 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. |
---|
| 47 | extensions = [ |
---|
| 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', |
---|
[41c9dbc] | 57 | 'sphinx-jsonschema', |
---|
[0b00607] | 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' |
---|
[708c667] | 66 | ] |
---|
| 67 | |
---|
[0b00607] | 68 | |
---|
| 69 | # Fontpath for seqdiag (truetype font) |
---|
| 70 | seqdiag_fontpath = '/usr/share/fonts/dejavu/DejaVuSerif.ttf' |
---|
| 71 | |
---|
| 72 | # Fontpath for blockdiag (truetype font) |
---|
| 73 | blockdiag_fontpath = '/usr/share/fonts/dejavu/DejaVuSerif.ttf' |
---|
| 74 | |
---|
| 75 | |
---|
[708c667] | 76 | # Add any paths that contain templates here, relative to this directory. |
---|
| 77 | templates_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'] |
---|
| 83 | source_suffix = ['.rst', '.md', '.txt'] |
---|
| 84 | |
---|
| 85 | # The master toctree document. |
---|
| 86 | master_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. |
---|
| 93 | language = 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 . |
---|
| 98 | exclude_patterns = [] |
---|
| 99 | |
---|
| 100 | # The name of the Pygments (syntax highlighting) style to use. |
---|
| 101 | pygments_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 | # |
---|
| 109 | html_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 | # |
---|
[41c9dbc] | 115 | html_theme_options = { |
---|
| 116 | 'display_version': True, |
---|
| 117 | 'titles_only': False, |
---|
| 118 | } |
---|
[708c667] | 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". |
---|
| 123 | html_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. |
---|
| 139 | htmlhelp_basename = 'flex_extractdoc' |
---|
| 140 | |
---|
| 141 | |
---|
| 142 | # -- Options for LaTeX output ------------------------------------------------ |
---|
| 143 | |
---|
| 144 | latex_elements = { |
---|
| 145 | # The paper size ('letterpaper' or 'a4paper'). |
---|
| 146 | # |
---|
[41c9dbc] | 147 | 'papersize': 'a4paper', |
---|
[708c667] | 148 | |
---|
| 149 | # The font size ('10pt', '11pt' or '12pt'). |
---|
| 150 | # |
---|
[41c9dbc] | 151 | 'pointsize': '12pt', |
---|
[708c667] | 152 | |
---|
| 153 | # Additional stuff for the LaTeX preamble. |
---|
| 154 | # |
---|
| 155 | # 'preamble': '', |
---|
| 156 | |
---|
| 157 | # Latex figure (float) alignment |
---|
| 158 | # |
---|
[41c9dbc] | 159 | 'figure_align': 'htbp', |
---|
[708c667] | 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]). |
---|
| 165 | latex_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). |
---|
| 175 | man_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) |
---|
| 186 | texinfo_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 | |
---|
[41c9dbc] | 195 | html_context = { |
---|
| 196 | 'css_files': ['_static/css/custom.css', |
---|
| 197 | '_static/css/theme_overrides.css' |
---|
| 198 | ], |
---|
| 199 | } |
---|
| 200 | |
---|
[708c667] | 201 | # -- Options for todo extension ---------------------------------------------- |
---|
| 202 | |
---|
| 203 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
---|
| 204 | todo_include_todos = True |
---|
[0b00607] | 205 | #todo_link_only = True |
---|
[41c9dbc] | 206 | |
---|
| 207 | |
---|
| 208 | # -- Add extra css ----------------------------------------------------------- |
---|
| 209 | def setup(app): |
---|
| 210 | app.add_stylesheet('css/custom.css') |
---|
| 211 | |
---|
| 212 | |
---|
| 213 | |
---|