frosix

Multiparty signature service (experimental)
Log | Files | Refs | README | LICENSE

conf.py (9608B)


      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     "ebicsdomain",
     54     "typescriptdomain",
     55     "taler_sphinx_theme",
     56     "sphinx.ext.todo",
     57     "sphinx.ext.imgmath",
     58     "httpdomain.httpdomain",
     59     "recommonmark",
     60     "sphinx.ext.graphviz",
     61 ]
     62 
     63 # Add any paths that contain templates here, relative to this directory.
     64 templates_path = ["_templates"]
     65 
     66 source_suffix = {
     67     ".rst": "restructuredtext",
     68     ".txt": "markdown",
     69     ".md": "markdown",
     70 }
     71 
     72 # The encoding of source files.
     73 # source_encoding = 'utf-8-sig'
     74 
     75 # The master toctree document.
     76 master_doc = "index"
     77 
     78 # General information about the project.
     79 project = "Frosix"
     80 copyright = "2022-2023 Frosix (GPLv3+ or GFDL 1.3+)"
     81 author = "Joel Urech"
     82 
     83 # The version info for the project you're documenting, acts as replacement for
     84 # |version| and |release|, also used in various other places throughout the
     85 # built documents.
     86 #
     87 # The short X.Y version.
     88 version = "0.0"
     89 # The full version, including alpha/beta/rc tags.
     90 release = "0.0.1"
     91 
     92 # The language for content autogenerated by Sphinx. Refer to documentation
     93 # for a list of supported languages.
     94 # language = None
     95 
     96 # There are two options for replacing |today|: either, you set today to some
     97 # non-false value, then it is used:
     98 # today = ''
     99 # Else, today_fmt is used as the format for a strftime call.
    100 # today_fmt = '%B %d, %Y'
    101 
    102 # List of patterns, relative to source directory, that match files and
    103 # directories to ignore when looking for source files.
    104 exclude_patterns = [
    105     "_build",
    106     "_exts",
    107     "cf",
    108     "prebuilt",
    109     "**/README.md",
    110     "extract-tsdefs",
    111 ]
    112 
    113 # The reST default role (used for this markup: `text`) to use for all
    114 # documents.
    115 default_role = "ts:type"
    116 
    117 # If true, '()' will be appended to :func: etc. cross-reference text.
    118 # add_function_parentheses = True
    119 
    120 # If true, the current module name will be prepended to all description
    121 # unit titles (such as .. function::).
    122 # add_module_names = True
    123 
    124 # If true, sectionauthor and moduleauthor directives will be shown in the
    125 # output. They are ignored by default.
    126 # show_authors = False
    127 
    128 # The name of the Pygments (syntax highlighting) style to use.
    129 pygments_style = "sphinx"
    130 
    131 # A list of ignored prefixes for module index sorting.
    132 # modindex_common_prefix = []
    133 
    134 # If true, keep warnings as "system message" paragraphs in the built documents.
    135 # keep_warnings = False
    136 
    137 # -- Options for HTML output ----------------------------------------------
    138 
    139 # The theme to use for HTML and HTML Help pages.  See the documentation for
    140 # a list of builtin themes.
    141 html_theme = "taler_sphinx_theme"
    142 html_theme_path = taler_sphinx_theme.html_theme_path()
    143 
    144 html_sidebars = {"**": ["logo-text.html", "globaltoc.html", "searchbox.html"]}
    145 
    146 html_theme_options = {
    147     # Set the name of the project to appear in the sidebar
    148     "project_nav_name": "Frosix",
    149     "globaltoc_depth": 4,
    150     "globaltoc_includehidden": False,
    151 }
    152 
    153 # Add any paths that contain custom themes here, relative to this directory.
    154 # html_theme_path = []
    155 
    156 # The name for this set of Sphinx documents.  If None, it defaults to
    157 # "<project> v<release> documentation".
    158 # html_title = None
    159 
    160 # A shorter title for the navigation bar.  Default is the same as html_title.
    161 # html_short_title = None
    162 
    163 # The name of an image file (relative to this directory) to place at the top
    164 # of the sidebar.
    165 # html_logo = None
    166 
    167 # The name of an image file (within the static path) to use as favicon of the
    168 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
    169 # pixels large.
    170 # html_favicon = None
    171 
    172 # Add any paths that contain custom static files (such as style sheets) here,
    173 # relative to this directory. They are copied after the builtin static files,
    174 # so a file named "default.css" will overwrite the builtin "default.css".
    175 html_static_path = ["_static"]
    176 
    177 # Add any extra paths that contain custom files (such as robots.txt or
    178 # .htaccess) here, relative to this directory. These files are copied
    179 # directly to the root of the documentation.
    180 # html_extra_path = []
    181 
    182 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
    183 # using the given strftime format.
    184 # html_last_updated_fmt = '%b %d, %Y'
    185 
    186 # If true, SmartyPants will be used to convert quotes and dashes to
    187 # typographically correct entities.
    188 # html_use_smartypants = True
    189 
    190 # Custom sidebar templates, maps document names to template names.
    191 # html_sidebars = {}
    192 
    193 # Additional templates that should be rendered to pages, maps page names to
    194 # template names.
    195 # html_additional_pages = {}
    196 
    197 # If false, no module index is generated.
    198 # html_domain_indices = True
    199 
    200 # If false, no index is generated.
    201 # html_use_index = True
    202 
    203 # If true, the index is split into individual pages for each letter.
    204 # html_split_index = False
    205 
    206 # If true, links to the reST sources are added to the pages.
    207 # html_show_sourcelink = True
    208 
    209 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
    210 html_show_sphinx = False
    211 
    212 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
    213 # html_show_copyright = True
    214 
    215 # If true, an OpenSearch description file will be output, and all pages will
    216 # contain a <link> tag referring to it.  The value of this option must be the
    217 # base URL from which the finished HTML is served.
    218 # html_use_opensearch = ''
    219 
    220 # This is the file name suffix for HTML files (e.g. ".xhtml").
    221 # html_file_suffix = None
    222 
    223 # -- Options for LaTeX output ---------------------------------------------
    224 
    225 latex_elements = {
    226     # The paper size ('letterpaper' or 'a4paper').
    227     #'papersize': 'letterpaper',
    228     # The font size ('10pt', '11pt' or '12pt').
    229     #'pointsize': '10pt',
    230     # Additional stuff for the LaTeX preamble.
    231     #'preamble': '',
    232 }
    233 
    234 # Grouping the document tree into LaTeX files. List of tuples
    235 # (source start file, target name, title,
    236 #  author, documentclass [howto, manual, or own class]).
    237 #latex_documents = [()]
    238 
    239 # The name of an image file (relative to this directory) to place at the top of
    240 # the title page.
    241 # latex_logo = None
    242 
    243 # For "manual" documents, if this is true, then toplevel headings are parts,
    244 # not chapters.
    245 # latex_use_parts = False
    246 
    247 # If true, show page references after internal links.
    248 # latex_show_pagerefs = False
    249 
    250 # If true, show URL addresses after external links.
    251 # latex_show_urls = False
    252 
    253 # Documents to append as an appendix to all manuals.
    254 #latex_appendices = ["fdl-1.3"]
    255 
    256 # If false, no module index is generated.
    257 # latex_domain_indices = True
    258 
    259 # -- Options for manual page output ---------------------------------------
    260 
    261 # One entry per manual page. List of tuples
    262 # (source start file, name, description, authors, manual section).
    263 #man_pages = [()]
    264 
    265 # If true, show URL addresses after external links.
    266 # man_show_urls = False
    267 
    268 # -- Options for Texinfo output -------------------------------------------
    269 
    270 # Grouping the document tree into Texinfo files. List of tuples
    271 # (source start file, target name, title, author,
    272 #  dir menu entry, description, category)
    273 #texinfo_documents = [()]
    274 
    275 # Documents to append as an appendix to all manuals.
    276 # texinfo_appendices = []
    277 
    278 # If false, no module index is generated.
    279 # texinfo_domain_indices = True
    280 
    281 # How to display URL addresses: 'footnote', 'no', or 'inline'.
    282 # texinfo_show_urls = 'footnote'
    283 
    284 # If true, do not generate a @detailmenu in the "Top" node's menu.
    285 # texinfo_no_detailmenu = False
    286 
    287 # The output format for Graphviz when building HTML files.
    288 # This must be either 'png' or 'svg'; the default is 'png'.
    289 graphviz_output_format = "svg"
    290 
    291 myst_heading_anchors = 3
    292 
    293 myst_enable_extensions = [
    294     "amsmath",
    295     "colon_fence",
    296     "deflist",
    297     "dollarmath",
    298     "fieldlist",
    299     "html_admonition",
    300     "html_image",
    301     "linkify",
    302     "replacements",
    303     "smartquotes",
    304     "strikethrough",
    305     "substitution",
    306     "tasklist",
    307 ]