| 1 | # -*- coding: utf-8 -*- |
| 2 | # |
| 3 | # JIPlib documentation build configuration file, created by |
| 4 | # sphinx-quickstart on Wed Mar 14 17:01:27 2018. |
| 5 | # |
| 6 | # This file is execfile()d with the current directory set to its |
| 7 | # containing dir. |
| 8 | # |
| 9 | # Note that not all possible configuration values are present in this |
| 10 | # autogenerated file. |
| 11 | # |
| 12 | # All configuration values have a default; values that are commented out |
| 13 | # serve to show the default. |
| 14 | |
| 15 | # If extensions (or modules to document with autodoc) are in another directory, |
| 16 | # add these directories to sys.path here. If the directory is relative to the |
| 17 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
| 18 | # |
| 19 | import os |
| 20 | import sys |
| 21 | sys.path.insert(0, os.path.abspath('.')) |
| 22 | # sys.path.insert(0, os.path.abspath('../build')) |
| 23 | #sys.path.insert(0, os.path.abspath('./source')) |
| 24 | sys.path.insert(0, os.path.abspath('./_templates')) |
| 25 | |
| 26 | |
| 27 | |
| 28 | # -- General configuration ------------------------------------------------ |
| 29 | |
| 30 | # If your documentation needs a minimal Sphinx version, state it here. |
| 31 | # |
| 32 | # needs_sphinx = '1.0' |
| 33 | |
| 34 | # Add any Sphinx extension module names here, as strings. They can be |
| 35 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 36 | # ones. |
| 37 | extensions = ['sphinx.ext.autodoc', |
| 38 | 'sphinx.ext.intersphinx', |
| 39 | 'sphinx.ext.todo', |
| 40 | # 'sphinx.ext.imgmath', |
| 41 | 'sphinx.ext.ifconfig', |
| 42 | # 'sphinx.ext.viewcode', |
| 43 | 'sphinx.ext.autosummary', |
| 44 | 'sphinxcontrib.bibtex' |
| 45 | ] |
| 46 | |
| 47 | |
| 48 | # Add any paths that contain templates here, relative to this directory. |
| 49 | templates_path = ['_templates'] |
| 50 | |
| 51 | # The suffix(es) of source filenames. |
| 52 | # You can specify multiple suffix as a list of string: |
| 53 | # |
| 54 | # source_suffix = ['.rst', '.md'] |
| 55 | source_suffix = '.rst' |
| 56 | |
| 57 | # The master toctree document. |
| 58 | master_doc = 'index' |
| 59 | |
| 60 | # General information about the project. |
| 61 | project = u'JEOlib: JIPlib' |
| 62 | copyright = u'European Commission, 2016-2026' |
| 63 | author = u'Pieter Kempeneers and Pierre Soille' |
| 64 | |
| 65 | # The version info for the project you're documenting, acts as replacement for |
| 66 | # |version| and |release|, also used in various other places throughout the |
| 67 | # built documents. |
| 68 | # |
| 69 | # The short X.Y version. |
| 70 | version = u'1.2.1' |
| 71 | # The full version, including alpha/beta/rc tags. |
| 72 | release = u'1.2.1' |
| 73 | |
| 74 | # The language for content autogenerated by Sphinx. Refer to documentation |
| 75 | # for a list of supported languages. |
| 76 | # |
| 77 | # This is also used if you do content translation via gettext catalogs. |
| 78 | # Usually you set "language" from the command line for these cases. |
| 79 | language = None |
| 80 | |
| 81 | # List of patterns, relative to source directory, that match files and |
| 82 | # directories to ignore when looking for source files. |
| 83 | # This patterns also effect to html_static_path and html_extra_path |
| 84 | exclude_patterns = [] |
| 85 | |
| 86 | # The name of the Pygments (syntax highlighting) style to use. |
| 87 | pygments_style = 'sphinx' |
| 88 | |
| 89 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
| 90 | todo_include_todos = True |
| 91 | |
| 92 | |
| 93 | # -- Options for HTML output ---------------------------------------------- |
| 94 | |
| 95 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 96 | # a list of builtin themes. |
| 97 | # |
| 98 | html_theme = 'alabaster' |
| 99 | |
| 100 | import sphinx_rtd_theme |
| 101 | html_theme = "sphinx_rtd_theme" |
| 102 | html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 103 | html_show_sourcelink = False |
| 104 | |
| 105 | # Theme options are theme-specific and customize the look and feel of a theme |
| 106 | # further. For a list of options available for each theme, see the |
| 107 | # documentation. |
| 108 | # |
| 109 | # html_theme_options = {} |
| 110 | |
| 111 | # Add any paths that contain custom static files (such as style sheets) here, |
| 112 | # relative to this directory. They are copied after the builtin static files, |
| 113 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 114 | html_static_path = ['_static'] |
| 115 | |
| 116 | # Custom sidebar templates, must be a dictionary that maps document names |
| 117 | # to template names. |
| 118 | # |
| 119 | # This is required for the alabaster theme |
| 120 | # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars |
| 121 | html_sidebars = { |
| 122 | '**': [ |
| 123 | 'relations.html', # needs 'show_related': True theme option to display |
| 124 | 'searchbox.html', |
| 125 | ] |
| 126 | } |
| 127 | |
| 128 | |
| 129 | # -- Options for HTMLHelp output ------------------------------------------ |
| 130 | |
| 131 | # Output file base name for HTML help builder. |
| 132 | htmlhelp_basename = 'JIPlibdoc' |
| 133 | |
| 134 | |
| 135 | # -- Options for LaTeX output --------------------------------------------- |
| 136 | |
| 137 | latex_elements = { |
| 138 | # The paper size ('letterpaper' or 'a4paper'). |
| 139 | # |
| 140 | # 'papersize': 'letterpaper', |
| 141 | |
| 142 | # The font size ('10pt', '11pt' or '12pt'). |
| 143 | # |
| 144 | # 'pointsize': '10pt', |
| 145 | |
| 146 | # Additional stuff for the LaTeX preamble. |
| 147 | # |
| 148 | # 'preamble': '', |
| 149 | 'preamble': r''' |
| 150 | % make phantomsection empty inside figures |
| 151 | \usepackage{breakurl} |
| 152 | \usepackage[final]{pdfpages} |
| 153 | \usepackage{etoolbox} |
| 154 | \AtBeginEnvironment{figure}{\renewcommand{\phantomsection}{}} |
| 155 | \providecommand{\doi}[1]{doi: \href{http://dx.doi.org/#1}{\path{#1}}} |
| 156 | \usepackage{enumitem} |
| 157 | \setlistdepth{999} |
| 158 | ''' |
| 159 | |
| 160 | # Latex figure (float) alignment |
| 161 | # |
| 162 | # 'figure_align': 'htbp', |
| 163 | } |
| 164 | |
| 165 | # Grouping the document tree into LaTeX files. List of tuples |
| 166 | # (source start file, target name, title, |
| 167 | # author, documentclass [howto, manual, or own class]). |
| 168 | latex_documents = [ |
| 169 | (master_doc, 'JIPlib.tex', u'JEOlib: JIPlib Documentation', |
| 170 | u'Pieter Kempeneers and Pierre Soille', 'manual'), |
| 171 | ] |
| 172 | |
| 173 | |
| 174 | # -- Options for manual page output --------------------------------------- |
| 175 | |
| 176 | # One entry per manual page. List of tuples |
| 177 | # (source start file, name, description, authors, manual section). |
| 178 | man_pages = [ |
| 179 | (master_doc, 'jiplib', u'JIPlib Documentation', |
| 180 | [author], 1) |
| 181 | ] |
| 182 | |
| 183 | |
| 184 | # -- Options for Texinfo output ------------------------------------------- |
| 185 | |
| 186 | # Grouping the document tree into Texinfo files. List of tuples |
| 187 | # (source start file, target name, title, author, |
| 188 | # dir menu entry, description, category) |
| 189 | texinfo_documents = [ |
| 190 | (master_doc, 'JIPlib', u'JIPlib Documentation', |
| 191 | author, 'JIPlib', 'One line description of project.', |
| 192 | 'Miscellaneous'), |
| 193 | ] |
| 194 | |
| 195 | # -- Options for Epub output ---------------------------------------------- |
| 196 | |
| 197 | # Bibliographic Dublin Core info. |
| 198 | epub_title = project |
| 199 | epub_author = author |
| 200 | epub_publisher = author |
| 201 | epub_copyright = copyright |
| 202 | |
| 203 | # The unique identifier of the text. This can be a ISBN number |
| 204 | # or the project homepage. |
| 205 | # |
| 206 | # epub_identifier = '' |
| 207 | |
| 208 | # A unique identification for the text. |
| 209 | # |
| 210 | # epub_uid = '' |
| 211 | |
| 212 | # A list of files that should not be packed into the epub file. |
| 213 | epub_exclude_files = ['search.html'] |
| 214 | |
| 215 | |
| 216 |