anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

conf.py (10407B)


      1 """
      2   This file is part of Anastasis.
      3   Copyright (C) 2021 Anastasis SARL
      4 
      5   Anastasis is free software; you can redistribute it and/or modify it under the
      6   terms of the GNU Affero General Public License as published by the Free Software
      7   Foundation; either version 2.1, or (at your option) any later version.
      8 
      9   Anastasis is distributed in the hope that it will be useful, but WITHOUT ANY
     10   WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     11   A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.
     12 
     13   You should have received a copy of the GNU Affero General Public License along with
     14   Anastasis; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
     15 
     16   @author Christian Grothoff
     17 """
     18 # -*- coding: utf-8 -*-
     19 #
     20 # neuro documentation build configuration file, created by
     21 # sphinx-quickstart on Sat May 31 13:11:06 2014.
     22 #
     23 # This file is execfile()d with the current directory set to its
     24 # containing dir.
     25 #
     26 # Note that not all possible configuration values are present in this
     27 # autogenerated file.
     28 #
     29 # All configuration values have a default; values that are commented out
     30 # serve to show the default.
     31 
     32 import sys
     33 import os
     34 
     35 sys.path.append(os.path.abspath('_exts'))
     36 
     37 import taler_sphinx_theme
     38 
     39 # If extensions (or modules to document with autodoc) are in another directory,
     40 # add these directories to sys.path here. If the directory is relative to the
     41 # documentation root, use os.path.abspath to make it absolute, like shown here.
     42 #sys.path.insert(0, os.path.abspath('.'))
     43 
     44 # -- General configuration ------------------------------------------------
     45 
     46 # If your documentation needs a minimal Sphinx version, state it here.
     47 needs_sphinx = '2.2.0'
     48 
     49 # Add any Sphinx extension module names here, as strings. They can be
     50 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
     51 # ones.
     52 extensions = [
     53     'typescriptdomain',
     54     'taler_sphinx_theme',
     55     'sphinx.ext.todo',
     56     'sphinx.ext.imgmath',
     57     'httpdomain.httpdomain',
     58     'recommonmark',
     59     'sphinx.ext.graphviz',
     60 ]
     61 
     62 # Add any paths that contain templates here, relative to this directory.
     63 templates_path = ['_templates']
     64 
     65 source_suffix = {
     66     '.rst': 'restructuredtext',
     67     '.txt': 'markdown',
     68     '.md': 'markdown',
     69 }
     70 
     71 # The encoding of source files.
     72 #source_encoding = 'utf-8-sig'
     73 
     74 # The master toctree document.
     75 master_doc = 'index'
     76 
     77 # General information about the project.
     78 project = u'Anastasis'
     79 copyright = u'2020-2021 Anastasis SARL (AGPLv3+ or GFDL 1.3+)'
     80 
     81 # The version info for the project you're documenting, acts as replacement for
     82 # |version| and |release|, also used in various other places throughout the
     83 # built documents.
     84 #
     85 # The short X.Y version.
     86 version = '0.0'
     87 # The full version, including alpha/beta/rc tags.
     88 release = '0.0.0pre0'
     89 
     90 # The language for content autogenerated by Sphinx. Refer to documentation
     91 # for a list of supported languages.
     92 # language = None
     93 
     94 # There are two options for replacing |today|: either, you set today to some
     95 # non-false value, then it is used:
     96 #today = ''
     97 # Else, today_fmt is used as the format for a strftime call.
     98 #today_fmt = '%B %d, %Y'
     99 
    100 # List of patterns, relative to source directory, that match files and
    101 # directories to ignore when looking for source files.
    102 exclude_patterns = ['_build', '_exts', 'cf', 'prebuilt', '**/README.md']
    103 
    104 # The reST default role (used for this markup: `text`) to use for all
    105 # documents.
    106 default_role = "ts:type"
    107 
    108 # If true, '()' will be appended to :func: etc. cross-reference text.
    109 #add_function_parentheses = True
    110 
    111 # If true, the current module name will be prepended to all description
    112 # unit titles (such as .. function::).
    113 #add_module_names = True
    114 
    115 # If true, sectionauthor and moduleauthor directives will be shown in the
    116 # output. They are ignored by default.
    117 #show_authors = False
    118 
    119 # The name of the Pygments (syntax highlighting) style to use.
    120 pygments_style = 'sphinx'
    121 
    122 # A list of ignored prefixes for module index sorting.
    123 #modindex_common_prefix = []
    124 
    125 # If true, keep warnings as "system message" paragraphs in the built documents.
    126 #keep_warnings = False
    127 
    128 # -- Options for HTML output ----------------------------------------------
    129 
    130 # The theme to use for HTML and HTML Help pages.  See the documentation for
    131 # a list of builtin themes.
    132 html_theme = 'taler_sphinx_theme'
    133 html_theme_path = taler_sphinx_theme.html_theme_path()
    134 
    135 html_sidebars = {'**': ['logo-text.html', 'globaltoc.html', 'searchbox.html']}
    136 
    137 html_theme_options = {
    138     # Set the name of the project to appear in the sidebar
    139     "project_nav_name": "Anastasis",
    140     "globaltoc_depth": 4,
    141     "globaltoc_includehidden": False,
    142 }
    143 
    144 # Add any paths that contain custom themes here, relative to this directory.
    145 #html_theme_path = []
    146 
    147 # The name for this set of Sphinx documents.  If None, it defaults to
    148 # "<project> v<release> documentation".
    149 #html_title = None
    150 
    151 # A shorter title for the navigation bar.  Default is the same as html_title.
    152 #html_short_title = None
    153 
    154 # The name of an image file (relative to this directory) to place at the top
    155 # of the sidebar.
    156 #html_logo = None
    157 
    158 # The name of an image file (within the static path) to use as favicon of the
    159 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
    160 # pixels large.
    161 #html_favicon = None
    162 
    163 # Add any paths that contain custom static files (such as style sheets) here,
    164 # relative to this directory. They are copied after the builtin static files,
    165 # so a file named "default.css" will overwrite the builtin "default.css".
    166 html_static_path = ['_static']
    167 
    168 # Add any extra paths that contain custom files (such as robots.txt or
    169 # .htaccess) here, relative to this directory. These files are copied
    170 # directly to the root of the documentation.
    171 #html_extra_path = []
    172 
    173 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
    174 # using the given strftime format.
    175 #html_last_updated_fmt = '%b %d, %Y'
    176 
    177 # If true, SmartyPants will be used to convert quotes and dashes to
    178 # typographically correct entities.
    179 #html_use_smartypants = True
    180 
    181 # Custom sidebar templates, maps document names to template names.
    182 #html_sidebars = {}
    183 
    184 # Additional templates that should be rendered to pages, maps page names to
    185 # template names.
    186 #html_additional_pages = {}
    187 
    188 # If false, no module index is generated.
    189 #html_domain_indices = True
    190 
    191 # If false, no index is generated.
    192 #html_use_index = True
    193 
    194 # If true, the index is split into individual pages for each letter.
    195 #html_split_index = False
    196 
    197 # If true, links to the reST sources are added to the pages.
    198 #html_show_sourcelink = True
    199 
    200 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
    201 html_show_sphinx = False
    202 
    203 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
    204 #html_show_copyright = True
    205 
    206 # If true, an OpenSearch description file will be output, and all pages will
    207 # contain a <link> tag referring to it.  The value of this option must be the
    208 # base URL from which the finished HTML is served.
    209 #html_use_opensearch = ''
    210 
    211 # This is the file name suffix for HTML files (e.g. ".xhtml").
    212 #html_file_suffix = None
    213 
    214 # -- Options for LaTeX output ---------------------------------------------
    215 
    216 latex_elements = {
    217     # The paper size ('letterpaper' or 'a4paper').
    218     #'papersize': 'letterpaper',
    219 
    220     # The font size ('10pt', '11pt' or '12pt').
    221     #'pointsize': '10pt',
    222 
    223     # Additional stuff for the LaTeX preamble.
    224     #'preamble': '',
    225 }
    226 
    227 # Grouping the document tree into LaTeX files. List of tuples
    228 # (source start file, target name, title,
    229 #  author, documentclass [howto, manual, or own class]).
    230 latex_documents = [
    231     ('anastasis', 'anastasis.tex',
    232      'Anastasis Manual', 'Anastasis team', 'manual'),
    233 ]
    234 
    235 # The name of an image file (relative to this directory) to place at the top of
    236 # the title page.
    237 #latex_logo = None
    238 
    239 # For "manual" documents, if this is true, then toplevel headings are parts,
    240 # not chapters.
    241 #latex_use_parts = False
    242 
    243 # If true, show page references after internal links.
    244 #latex_show_pagerefs = False
    245 
    246 # If true, show URL addresses after external links.
    247 #latex_show_urls = False
    248 
    249 # Documents to append as an appendix to all manuals.
    250 latex_appendices = ["fdl-1.3"]
    251 
    252 # If false, no module index is generated.
    253 #latex_domain_indices = True
    254 
    255 # -- Options for manual page output ---------------------------------------
    256 
    257 # One entry per manual page. List of tuples
    258 # (source start file, name, description, authors, manual section).
    259 man_pages = [
    260     ("manpages/anastasis-httpd.1", "anastasis-httpd",
    261      "anastasis HTTP backend", "Anastasis SARL",
    262      1),
    263     ("manpages/anastasis-dbconfig.1", "anastasis-dbconfig",
    264      "configure Anastasis database", "Anastasis SARL",
    265      1),
    266     ("manpages/anastasis-dbinit.1", "anastasis-dbinit",
    267      "initialize Anastasis database", "Anastasis SARL",
    268      1),
    269     ("manpages/anastasis.conf.5", "anastasis.conf",
    270      "anastasis configuration file", "Anastasis SARL",
    271      5),
    272     ("manpages/anastasis-gtk.1", "anastasis-gtk",
    273      "anastasis GTK+ frontend", "Anastasis SARL",
    274      1),
    275     ("manpages/anastasis-reducer.1", "anastasis-reducer",
    276      "anastasis CLI frontend", "Anastasis SARL",
    277      1),
    278     ("manpages/anastasis-helper-authorization-iban.1", "anastasis-helper-authorization-iban",
    279      "anastasis IBAN authorization helper", "Anastasis SARL",
    280      1),
    281     ("manpages/anastasis-config.1", "anastasis-config",
    282      "anastasis configuration file manipulation", "Anastasis SARL",
    283      1),
    284 ]
    285 
    286 # If true, show URL addresses after external links.
    287 #man_show_urls = False
    288 
    289 # -- Options for Texinfo output -------------------------------------------
    290 
    291 # Grouping the document tree into Texinfo files. List of tuples
    292 # (source start file, target name, title, author,
    293 #  dir menu entry, description, category)
    294 texinfo_documents = [
    295     ("index", "anastasis", "Anastasis Manual",
    296      "Anastasis SARL", "MENU ENTRY", "DESCRIPTION", "CATEGORY"),
    297 ]
    298 
    299 # Documents to append as an appendix to all manuals.
    300 #texinfo_appendices = []
    301 
    302 # If false, no module index is generated.
    303 #texinfo_domain_indices = True
    304 
    305 # How to display URL addresses: 'footnote', 'no', or 'inline'.
    306 #texinfo_show_urls = 'footnote'
    307 
    308 # If true, do not generate a @detailmenu in the "Top" node's menu.
    309 #texinfo_no_detailmenu = False
    310 
    311 # The output format for Graphviz when building HTML files.
    312 # This must be either 'png' or 'svg'; the default is 'png'.
    313 graphviz_output_format = 'svg'