|
| 1 | +## setup -> pip3 install -r requirements.txt |
| 2 | + |
1 | 3 | # -*- coding: utf-8 -*-
|
2 | 4 | #
|
3 | 5 | # streamABC documentation build configuration file, created by
|
|
19 | 21 | # import os
|
20 | 22 | # import sys
|
21 | 23 | # sys.path.insert(0, os.path.abspath('.'))
|
22 |
| - |
| 24 | +import sys |
| 25 | +from datetime import datetime |
| 26 | +from os import path |
23 | 27 |
|
24 | 28 | # -- General configuration ------------------------------------------------
|
25 | 29 |
|
|
31 | 35 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
32 | 36 | # ones.
|
33 | 37 | # extensions = ['sphinx.ext.githubpages']
|
34 |
| -extensions = [] |
| 38 | +extensions = [ |
| 39 | + 'hoverxref.extension', |
| 40 | + 'notfound.extension', |
| 41 | + 'sphinx.ext.autodoc', |
| 42 | + 'sphinx.ext.coverage', |
| 43 | + 'sphinx.ext.intersphinx', |
| 44 | + 'sphinx.ext.viewcode', |
| 45 | + 'sphinx.ext.autosectionlabel' |
| 46 | +] |
| 47 | +autosectionlabel_prefix_document = True |
35 | 48 |
|
36 | 49 | # Add any paths that contain templates here, relative to this directory.
|
37 | 50 | templates_path = ['_templates']
|
|
47 | 60 |
|
48 | 61 | # General information about the project.
|
49 | 62 | project = u'QuantumCast'
|
50 |
| -copyright = u'2020, QuantumCast' |
| 63 | +copyright = f'2019–{datetime.now().year}, QuantumCast, ' |
51 | 64 | author = u'QuantumCast'
|
52 | 65 |
|
53 | 66 | # The version info for the project you're documenting, acts as replacement for
|
|
64 | 77 | #
|
65 | 78 | # This is also used if you do content translation via gettext catalogs.
|
66 | 79 | # Usually you set "language" from the command line for these cases.
|
67 |
| -language = None |
| 80 | +language = 'en' |
68 | 81 |
|
69 | 82 | # List of patterns, relative to source directory, that match files and
|
70 | 83 | # directories to ignore when looking for source files.
|
71 | 84 | # This patterns also effect to html_static_path and html_extra_path
|
72 | 85 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
73 |
| - |
| 86 | +exclude_trees = ['.build'] |
74 | 87 | # The name of the Pygments (syntax highlighting) style to use.
|
75 | 88 | pygments_style = 'sphinx'
|
76 | 89 |
|
|
85 | 98 | #
|
86 | 99 | #html_theme = 'alabaster'
|
87 | 100 | html_theme = 'sphinx_rtd_theme'
|
88 |
| -html_theme_path = ["themes"] |
| 101 | +#html_theme_path = ["themes"] |
| 102 | +import sphinx_rtd_theme |
| 103 | +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
89 | 104 |
|
90 | 105 | # Theme options are theme-specific and customize the look and feel of a theme
|
91 | 106 | # further. For a list of options available for each theme, see the
|
|
97 | 112 | # relative to this directory. They are copied after the builtin static files,
|
98 | 113 | # so a file named "default.css" will overwrite the builtin "default.css".
|
99 | 114 | html_static_path = ['_static']
|
100 |
| - |
| 115 | +html_last_updated_fmt = '%b %d, %Y' |
101 | 116 | # Custom sidebar templates, must be a dictionary that maps document names
|
102 | 117 | # to template names.
|
103 | 118 | #
|
|
171 | 186 | ]
|
172 | 187 |
|
173 | 188 |
|
| 189 | +# Options for the InterSphinx extension |
| 190 | +# ------------------------------------- |
| 191 | + |
| 192 | +intersphinx_mapping = { |
| 193 | + 'attrs': ('https://www.attrs.org/en/stable/', None), |
| 194 | + 'coverage': ('https://coverage.readthedocs.io/en/stable', None), |
| 195 | + 'cssselect': ('https://cssselect.readthedocs.io/en/latest', None), |
| 196 | + 'itemloaders': ('https://itemloaders.readthedocs.io/en/latest/', None), |
| 197 | + 'pytest': ('https://docs.pytest.org/en/latest', None), |
| 198 | + 'python': ('https://docs.python.org/3', None), |
| 199 | + 'sphinx': ('https://www.sphinx-doc.org/en/master', None), |
| 200 | + 'tox': ('https://tox.readthedocs.io/en/latest', None), |
| 201 | + 'twisted': ('https://twistedmatrix.com/documents/current', None), |
| 202 | + 'twistedapi': ('https://twistedmatrix.com/documents/current/api', None), |
| 203 | +} |
| 204 | + |
| 205 | +# Options for sphinx-hoverxref options |
| 206 | +# ------------------------------------ |
| 207 | + |
| 208 | +hoverxref_auto_ref = True |
| 209 | +hoverxref_role_types = { |
| 210 | + "class": "tooltip", |
| 211 | + "confval": "tooltip", |
| 212 | + "hoverxref": "tooltip", |
| 213 | + "mod": "tooltip", |
| 214 | + "ref": "tooltip", |
| 215 | +} |
| 216 | +hoverxref_roles = ['command', 'reqmeta', 'setting', 'signal'] |
174 | 217 |
|
0 commit comments