Mercurial > hgrepos > Python > libs > ConfigMix
annotate docs/conf.py @ 770:1f076d7c721d
Docs: do not copy sources
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 13 May 2026 18:17:44 +0200 |
| parents | 88bfa76463a6 |
| children | 741ebfe77e55 |
| rev | line source |
|---|---|
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
1 # -*- coding: utf-8 -*- |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
2 # |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
3 # Configuration file for the Sphinx documentation builder. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
4 # |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
5 # This file does only contain a selection of the most common options. For a |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
6 # full list see the documentation: |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
7 # http://www.sphinx-doc.org/en/stable/config |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
8 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
9 # -- Path setup -------------------------------------------------------------- |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
10 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
11 # If extensions (or modules to document with autodoc) are in another directory, |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
12 # add these directories to sys.path here. If the directory is relative to the |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
13 # documentation root, use os.path.abspath to make it absolute, like shown here. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
14 # |
|
163
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
15 import datetime |
|
54
aa8345dae995
Generate readable HTML documentation and an API documentation
Franz Glasner <hg@dom66.de>
parents:
52
diff
changeset
|
16 import os |
|
aa8345dae995
Generate readable HTML documentation and an API documentation
Franz Glasner <hg@dom66.de>
parents:
52
diff
changeset
|
17 import sys |
|
aa8345dae995
Generate readable HTML documentation and an API documentation
Franz Glasner <hg@dom66.de>
parents:
52
diff
changeset
|
18 sys.path.insert(0, os.path.dirname(os.path.abspath('.'))) |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
19 |
|
57
a3f64253de70
Read the version and release information from the "configmix" package
Franz Glasner <hg@dom66.de>
parents:
55
diff
changeset
|
20 import configmix |
|
154
28164259aa83
FIX: Build docu with Python: remove all warnings
Franz Glasner <hg@dom66.de>
parents:
111
diff
changeset
|
21 from configmix.compat import u |
|
57
a3f64253de70
Read the version and release information from the "configmix" package
Franz Glasner <hg@dom66.de>
parents:
55
diff
changeset
|
22 |
|
715
0c73d95ec454
Need Sphinx >= 5.1 now for building the documentation
Franz Glasner <fzglas.hg@dom66.de>
parents:
709
diff
changeset
|
23 needs_sphinx = "5.1" |
|
716
26a6c218a66a
- Document the optional module configmix._speedups somewhat
Franz Glasner <fzglas.hg@dom66.de>
parents:
715
diff
changeset
|
24 primary_domain = "py" |
|
715
0c73d95ec454
Need Sphinx >= 5.1 now for building the documentation
Franz Glasner <fzglas.hg@dom66.de>
parents:
709
diff
changeset
|
25 |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
26 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
27 # -- Project information ----------------------------------------------------- |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
28 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
29 project = 'ConfigMix' |
|
673
77d4a3e7c9e2
Extent all important copyright years to 2023
Franz Glasner <fzglas.hg@dom66.de>
parents:
593
diff
changeset
|
30 copyright = u('2015–2023, Franz Glasner. All rights reserved') |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
31 author = 'Franz Glasner' |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
32 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
33 # The short X.Y version |
|
57
a3f64253de70
Read the version and release information from the "configmix" package
Franz Glasner <hg@dom66.de>
parents:
55
diff
changeset
|
34 version = '.'.join(configmix.__version__.split('.')[:2]) |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
35 # The full version, including alpha/beta/rc tags |
|
57
a3f64253de70
Read the version and release information from the "configmix" package
Franz Glasner <hg@dom66.de>
parents:
55
diff
changeset
|
36 release = configmix.__version__ |
|
163
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
37 release_date = configmix.__date__ |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
38 |
|
163
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
39 today = datetime.date.today().isoformat() |
|
77
025005f1234f
Print the date of the docu more intelligently: use |today| together with keyword expansion
Franz Glasner <hg@dom66.de>
parents:
67
diff
changeset
|
40 |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
41 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
42 # -- General configuration --------------------------------------------------- |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
43 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
44 # If your documentation needs a minimal Sphinx version, state it here. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
45 # |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
46 # needs_sphinx = '1.0' |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
47 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
48 # Add any Sphinx extension module names here, as strings. They can be |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
49 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
50 # ones. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
51 extensions = [ |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
52 'sphinx.ext.autodoc', |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
53 'sphinx.ext.intersphinx', |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
54 'sphinx.ext.todo', |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
55 'sphinx.ext.ifconfig', |
|
55
51a8fa011659
Don't show RST file sources and don't show python sources
Franz Glasner <hg@dom66.de>
parents:
54
diff
changeset
|
56 # 'sphinx.ext.viewcode', |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
57 ] |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
58 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
59 # Add any paths that contain templates here, relative to this directory. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
60 templates_path = ['_templates'] |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
61 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
62 # The suffix(es) of source filenames. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
63 # You can specify multiple suffix as a list of string: |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
64 # |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
65 # source_suffix = ['.rst', '.md'] |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
66 source_suffix = '.rst' |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
67 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
68 # The master toctree document. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
69 master_doc = 'index' |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
70 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
71 # The language for content autogenerated by Sphinx. Refer to documentation |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
72 # for a list of supported languages. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
73 # |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
74 # This is also used if you do content translation via gettext catalogs. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
75 # Usually you set "language" from the command line for these cases. |
|
67
9d0d9446de08
Annotate LaTeX output with page numbers and show URL targets in the footnotes.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
66
diff
changeset
|
76 language = 'en' |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
77 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
78 # List of patterns, relative to source directory, that match files and |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
79 # directories to ignore when looking for source files. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
80 # This pattern also affects html_static_path and html_extra_path . |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
81 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
82 |
|
732
88bfa76463a6
FIX: Make all configurations on conf10.* semantically identical.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
716
diff
changeset
|
83 # `default' is similar to python3 |
|
88bfa76463a6
FIX: Make all configurations on conf10.* semantically identical.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
716
diff
changeset
|
84 highlight_language = "default" |
|
88bfa76463a6
FIX: Make all configurations on conf10.* semantically identical.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
716
diff
changeset
|
85 |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
86 # The name of the Pygments (syntax highlighting) style to use. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
87 pygments_style = 'sphinx' |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
88 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
89 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
90 # -- Options for HTML output ------------------------------------------------- |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
91 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
92 # The theme to use for HTML and HTML Help pages. See the documentation for |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
93 # a list of builtin themes. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
94 # |
|
60
6c5e44dc74db
Use the "haiku" theme instead of "alabaster" for the mosly API documentation
Franz Glasner <hg@dom66.de>
parents:
57
diff
changeset
|
95 #html_theme = 'alabaster' |
|
6c5e44dc74db
Use the "haiku" theme instead of "alabaster" for the mosly API documentation
Franz Glasner <hg@dom66.de>
parents:
57
diff
changeset
|
96 html_theme = 'haiku' |
|
159
f7114e4f3938
Adjust the HTML title for the "haiku" theme
Franz Glasner <fzglas.hg@dom66.de>
parents:
156
diff
changeset
|
97 # for the Haiku title |
|
f7114e4f3938
Adjust the HTML title for the "haiku" theme
Franz Glasner <fzglas.hg@dom66.de>
parents:
156
diff
changeset
|
98 html_short_title = u("%s %s") % (project, release) |
|
163
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
99 html_last_updated_fmt = "%s (rev %s)" % (today, configmix.__revision__) |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
100 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
101 # Theme options are theme-specific and customize the look and feel of a theme |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
102 # further. For a list of options available for each theme, see the |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
103 # documentation. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
104 # |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
105 # html_theme_options = {} |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
106 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
107 # Add any paths that contain custom static files (such as style sheets) here, |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
108 # relative to this directory. They are copied after the builtin static files, |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
109 # so a file named "default.css" will overwrite the builtin "default.css". |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
110 html_static_path = ['_static'] |
|
709
115de6fe420e
Add a custom CSS file to use text-align "left" instead of the Haiku standard "justify"
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
673
diff
changeset
|
111 html_css_files = ["custom-haiku.css"] |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
112 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
113 # Custom sidebar templates, must be a dictionary that maps document names |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
114 # to template names. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
115 # |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
116 # The default sidebars (for documents that don't match any pattern) are |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
117 # defined by theme itself. Builtin themes are using these templates by |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
118 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html', |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
119 # 'searchbox.html']``. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
120 # |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
121 # html_sidebars = {} |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
122 |
|
770
1f076d7c721d
Docs: do not copy sources
Franz Glasner <fzglas.hg@dom66.de>
parents:
732
diff
changeset
|
123 html_copy_source = False |
|
55
51a8fa011659
Don't show RST file sources and don't show python sources
Franz Glasner <hg@dom66.de>
parents:
54
diff
changeset
|
124 html_show_sourcelink = False |
|
51a8fa011659
Don't show RST file sources and don't show python sources
Franz Glasner <hg@dom66.de>
parents:
54
diff
changeset
|
125 |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
126 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
127 # -- Options for HTMLHelp output --------------------------------------------- |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
128 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
129 # Output file base name for HTML help builder. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
130 htmlhelp_basename = 'ConfigMixdoc' |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
131 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
132 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
133 # -- Options for LaTeX output ------------------------------------------------ |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
134 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
135 latex_elements = { |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
136 # The paper size ('letterpaper' or 'a4paper'). |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
137 # |
|
67
9d0d9446de08
Annotate LaTeX output with page numbers and show URL targets in the footnotes.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
66
diff
changeset
|
138 'papersize': 'a4paper', |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
139 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
140 # The font size ('10pt', '11pt' or '12pt'). |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
141 # |
|
83
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
142 'pointsize': '11pt', |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
143 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
144 # Additional stuff for the LaTeX preamble. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
145 # |
|
83
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
146 # NOTE: "inconsolata" in "fontpkg" errors within pdfTeX: seems to be |
|
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
147 # incompatible with some header package. |
|
159
f7114e4f3938
Adjust the HTML title for the "haiku" theme
Franz Glasner <fzglas.hg@dom66.de>
parents:
156
diff
changeset
|
148 # |
|
83
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
149 'preamble': r''' |
|
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
150 \usepackage{inconsolata} |
|
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
151 ''', |
|
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
152 |
|
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
153 'fontpkg': r''' |
|
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
154 \usepackage{charter} |
|
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
155 \usepackage[defaultsans]{lato} |
|
159
f7114e4f3938
Adjust the HTML title for the "haiku" theme
Franz Glasner <fzglas.hg@dom66.de>
parents:
156
diff
changeset
|
156 ''', |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
157 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
158 # Latex figure (float) alignment |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
159 # |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
160 # 'figure_align': 'htbp', |
|
67
9d0d9446de08
Annotate LaTeX output with page numbers and show URL targets in the footnotes.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
66
diff
changeset
|
161 # Use "Version" instead of "Release" on the title |
|
9d0d9446de08
Annotate LaTeX output with page numbers and show URL targets in the footnotes.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
66
diff
changeset
|
162 'releasename': 'Version', |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
163 } |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
164 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
165 # Grouping the document tree into LaTeX files. List of tuples |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
166 # (source start file, target name, title, |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
167 # author, documentclass [howto, manual, or own class]). |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
168 latex_documents = [ |
|
154
28164259aa83
FIX: Build docu with Python: remove all warnings
Franz Glasner <hg@dom66.de>
parents:
111
diff
changeset
|
169 (master_doc, 'ConfigMix.tex', '"ConfigMix" Documentation', |
|
66
e78f307f81a0
For LaTeX: include documents within the toctree only
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
65
diff
changeset
|
170 'Franz Glasner', 'manual', True), |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
171 ] |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
172 |
|
67
9d0d9446de08
Annotate LaTeX output with page numbers and show URL targets in the footnotes.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
66
diff
changeset
|
173 latex_show_urls = 'footnote' |
|
83
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
174 #latex_show_pagerefs = True |
|
67
9d0d9446de08
Annotate LaTeX output with page numbers and show URL targets in the footnotes.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
66
diff
changeset
|
175 |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
176 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
177 # -- Options for manual page output ------------------------------------------ |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
178 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
179 # One entry per manual page. List of tuples |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
180 # (source start file, name, description, authors, manual section). |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
181 man_pages = [ |
|
88
5d47693916ee
Change title of documentation
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
83
diff
changeset
|
182 (master_doc, 'configmix', '"ConfigMix" Documentation', |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
183 [author], 1) |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
184 ] |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
185 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
186 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
187 # -- Options for Texinfo output ---------------------------------------------- |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
188 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
189 # Grouping the document tree into Texinfo files. List of tuples |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
190 # (source start file, target name, title, author, |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
191 # dir menu entry, description, category) |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
192 texinfo_documents = [ |
|
154
28164259aa83
FIX: Build docu with Python: remove all warnings
Franz Glasner <hg@dom66.de>
parents:
111
diff
changeset
|
193 (master_doc, 'ConfigMix', '"ConfigMix" Documentation', |
|
47
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
194 author, 'ConfigMix', 'One line description of project.', |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
195 'Miscellaneous'), |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
196 ] |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
197 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
198 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
199 # -- Extension configuration ------------------------------------------------- |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
200 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
201 # -- Options for intersphinx extension --------------------------------------- |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
202 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
203 # Example configuration for intersphinx: refer to the Python standard library. |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
204 intersphinx_mapping = {'https://docs.python.org/': None} |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
205 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
206 # -- Options for todo extension ---------------------------------------------- |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
207 |
|
2ff1e8f02dc7
Running "shinx-quickstart": the automatically generated files as-is
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
208 # If true, `todo` and `todoList` produce output, else they produce nothing. |
|
52
6c7f90dbce98
Adjusted the Copyright and change the RCS keywords in accordance with "kwarchive"
Franz Glasner <hg@dom66.de>
parents:
47
diff
changeset
|
209 todo_include_todos = True |
|
94
2b79ddc0f92b
Begin a basic introduction chapter
Franz Glasner <hg@dom66.de>
parents:
93
diff
changeset
|
210 # Kein Link auf Pfad und Zeile |
|
2b79ddc0f92b
Begin a basic introduction chapter
Franz Glasner <hg@dom66.de>
parents:
93
diff
changeset
|
211 todo_link_only = True |
|
83
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
212 |
|
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
213 # -- Options for autodoc ----------------------------------------------------- |
|
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
214 |
|
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
215 autodoc_member_order = 'bysource' |
|
7d5b4718ac1b
Use the fonts Charter, Lato and Inconsolate within LaTeX.
Franz Glasner <hg@dom66.de>
parents:
78
diff
changeset
|
216 autoclass_content = 'both' |
| 91 | 217 |
| 218 | |
|
163
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
219 def setup(app): |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
220 # |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
221 # Custom release_date variable with a custom substitution |release_date| |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
222 # |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
223 app.add_config_value('release_date', '', 'env') |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
224 |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
225 import sphinx.transforms |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
226 |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
227 class IAMCustomSubstitutions(sphinx.transforms.SphinxTransform): |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
228 |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
229 default_priority = sphinx.transforms.DefaultSubstitutions.default_priority |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
230 def apply(self): |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
231 from docutils import nodes |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
232 for ref in self.document.traverse(nodes.substitution_reference): |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
233 refname = ref['refname'] |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
234 if refname == 'release_date': |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
235 stext = self.config[refname] |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
236 ref.replace_self(nodes.Text(stext, stext)) |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
237 |
|
ff03cdf36139
The README.txt should be in the most important parts readable without keyword substitutions.
Franz Glasner <fzglas.hg@dom66.de>
parents:
159
diff
changeset
|
238 app.add_transform(IAMCustomSubstitutions) |
