| | |
| | | |
| | | # Configuration file for the Sphinx documentation builder. |
| | | # |
| | | # This file only contains a selection of the most common options. For a full |
| | |
| | | from subprocess import check_output |
| | | import sphinx_rtd_theme |
| | | |
| | | changesetid = check_output(["git", "--git-dir=.git", "rev-parse", "--short", "HEAD"]).decode("utf-8").strip() |
| | | changesetidlong = check_output(["git", "--git-dir=.git", "rev-parse", "HEAD"]).decode("utf-8") |
| | | changesetid = check_output(["git", "rev-parse", "--short", "HEAD"]).decode("utf-8")[:7] |
| | | |
| | | numfig = True |
| | | numfig_secnum_depth = 3 |
| | | math_numfig = False |
| | | |
| | | # -- Project information ----------------------------------------------------- |
| | | |
| | |
| | | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| | | # ones. |
| | | extensions = [ |
| | | 'sphinx.ext.todo', |
| | | 'sphinx.ext.graphviz' |
| | | ] |
| | | |
| | | todo_include_todos = True |
| | | |
| | | # Add any paths that contain templates here, relative to this directory. |
| | | templates_path = ['_templates'] |
| | |
| | | # so a file named "default.css" will overwrite the builtin "default.css". |
| | | html_static_path = ['_static'] |
| | | |
| | | latex_basename = 'Software-Dokumentation-mit-Sphinx-%s.tex' % changesetid |
| | | latex_basename = 'Hostsharing-Benutzerhandbuch-%s.tex' % changesetid |
| | | |
| | | latex_engine = 'lualatex' |
| | | |
| | | latex_elements = { |
| | | 'passoptionstopackages': r'\PassOptionsToPackage{svgnames}{xcolor}', |
| | | 'fontpkg': r''' |
| | | \setmainfont{TeX Gyre Pagella}% |
| | | \setmainfont{TeX Gyre Heros}% |
| | | \setsansfont{TeX Gyre Heros}% |
| | | % \setmonofont[RawFeature=-tlig]{TeX Gyre Cursor}% |
| | | \setmonofont[Ligatures={NoRequired, NoCommon, NoContextual}]{TeX Gyre Cursor} |
| | | % \setmonofont[Ligatures={NoRequired, NoCommon, NoContextual}]{TeX Gyre Cursor} |
| | | \setmonofont{Courier New}[Scale=MatchLowercase,ScaleAgain=0.9] |
| | | ''', |
| | | 'preamble': r'\input{mystyle.sty}', |
| | | 'preamble': r'\input{./mystyle.sty}', |
| | | 'releasename': 'Version', |
| | | 'fncychap': r'\usepackage[Bjornstrup]{fncychap}', |
| | | 'printindex': r'\footnotesize\raggedright\printindex', |
| | | 'maketitle' : r'\newcommand\sphinxbackoftitlepage{\vspace*{\fill}\noindent \copyright\ Jan Ulrich Hasecke 2019\par Herausgeber:\par hasecke.com -- Business Communication \par Jan Ulrich Hasecke \par Schubertstraße 4 \par 42719 Solingen \par Deutschland \par\par ISBN-13 9781793008770 \par Independently published}\sphinxmaketitle', |
| | | 'maketitle' : r'\newcommand\sphinxbackoftitlepage{\vspace*{\fill}\noindent Herausgeber: \par Hostsharing eG \par Flughafenstraße 52a \par 22335 Hamburg}\sphinxmaketitle', |
| | | 'sphinxsetup': r''' |
| | | verbatimwithframe=false, |
| | | VerbatimColor={cmyk}{0,0,0,0.1}, |
| | |
| | | 'fvset': r'\fvset{fontsize=\footnotesize}', |
| | | } |
| | | |
| | | latex_additional_files = ['mystyle.sty'] |
| | | |
| | | latex_docclass = {'manual': 'book',} |
| | | latex_show_pagerefs = True |
| | | latex_show_urls = 'footnote' |
| | | latex_use_xindy = False |
| | | |
| | | latex_documents = [ |
| | | ('index', latex_basename, 'Hostsharing Benutzerhandbuch', |
| | | 'Hostsharing eG', 'manual'), |
| | | ] |
| | | |
| | | def setup(app): |
| | | app.add_object_type('role', 'role', |
| | | objname='Rolle', |