|
14 | 14 | sys_path.insert(0, abspath('.')) |
15 | 15 | sys_path.insert(0, abspath('..')) |
16 | 16 | sys_path.insert(0, abspath('../pyEDAA/ToolSetup')) |
17 | | -#sys_path.insert(0, abspath('_extensions')) |
18 | 17 |
|
19 | 18 |
|
20 | 19 | # ============================================================================== |
|
65 | 64 | with open(prologPath, "r") as prologFile: |
66 | 65 | rst_prolog = prologFile.read() |
67 | 66 | except Exception as ex: |
68 | | - print("[ERROR:] While reading '{0!s}'.".format(prologPath)) |
| 67 | + print(f"[ERROR:] While reading '{prologPath}'.") |
69 | 68 | print(ex) |
70 | 69 | rst_prolog = "" |
71 | 70 |
|
|
99 | 98 | html_favicon = str(Path(html_static_path[0]) / "favicon.svg") |
100 | 99 |
|
101 | 100 | # Output file base name for HTML help builder. |
102 | | -htmlhelp_basename = 'pyEDAACLIToolDoc' |
| 101 | +htmlhelp_basename = 'pyEDAAToolSetupDoc' |
103 | 102 |
|
104 | 103 | # If not None, a 'Last updated on:' timestamp is inserted at every page |
105 | 104 | # bottom, using the given strftime format. |
|
146 | 145 | # author, documentclass [howto, manual, or own class]). |
147 | 146 | latex_documents = [ |
148 | 147 | ( master_doc, |
149 | | - 'pyEDAA.CLITool.tex', |
150 | | - 'The pyEDAA.CLITool Documentation', |
| 148 | + 'pyEDAA.ToolSetup.tex', |
| 149 | + 'The pyEDAA.ToolSetup Documentation', |
151 | 150 | 'Patrick Lehmann', |
152 | 151 | 'manual' |
153 | 152 | ), |
|
158 | 157 | # Extensions |
159 | 158 | # ============================================================================== |
160 | 159 | extensions = [ |
| 160 | +# Standard Sphinx extensions |
| 161 | + "sphinx.ext.autodoc", |
161 | 162 | 'sphinx.ext.extlinks', |
162 | 163 | 'sphinx.ext.intersphinx', |
| 164 | + 'sphinx.ext.inheritance_diagram', |
| 165 | + 'sphinx.ext.todo', |
| 166 | + 'sphinx.ext.graphviz', |
| 167 | + 'sphinx.ext.mathjax', |
| 168 | + 'sphinx.ext.ifconfig', |
| 169 | + 'sphinx.ext.viewcode', |
| 170 | +# SphinxContrib extensions |
| 171 | + 'sphinxcontrib.mermaid', |
| 172 | +# Other extensions |
| 173 | + 'sphinx_fontawesome', |
| 174 | + 'sphinx_autodoc_typehints', |
| 175 | + 'autoapi.sphinx', |
163 | 176 | ] |
164 | 177 |
|
165 | 178 |
|
|
171 | 184 | } |
172 | 185 |
|
173 | 186 |
|
| 187 | +# ============================================================================== |
| 188 | +# Sphinx.Ext.AutoDoc |
| 189 | +# ============================================================================== |
| 190 | +# see: https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#configuration |
| 191 | +autodoc_default_options = { |
| 192 | + "private-members": True, |
| 193 | + "special-members": True, |
| 194 | + "inherited-members": True, |
| 195 | + "exclude-members": "__weakref__" |
| 196 | +} |
| 197 | +#autodoc_class_signature = "separated" |
| 198 | +autodoc_member_order = "bysource" # alphabetical, groupwise, bysource |
| 199 | +autodoc_typehints = "both" |
| 200 | +#autoclass_content = "both" |
| 201 | + |
| 202 | + |
174 | 203 | # ============================================================================== |
175 | 204 | # Sphinx.Ext.ExtLinks |
176 | 205 | # ============================================================================== |
177 | 206 | extlinks = { |
178 | | - 'ghissue': ('https://GitHub.com/edaa-org/pyEDAA.CLITool/issues/%s', 'issue #'), |
179 | | - 'ghpull': ('https://GitHub.com/edaa-org/pyEDAA.CLITool/pull/%s', 'pull request #'), |
180 | | - 'ghsrc': ('https://GitHub.com/edaa-org/pyEDAA.CLITool/blob/main/%s', ''), |
| 207 | + "ghissue": ("https://GitHub.com/edaa-org/pyEDAA.ToolSetup/issues/%s", "issue #"), |
| 208 | + "ghpull": ("https://GitHub.com/edaa-org/pyEDAA.ToolSetup/pull/%s", "pull request #"), |
| 209 | + "ghsrc": ("https://GitHub.com/edaa-org/pyEDAA.ToolSetup/blob/main/%s", ""), |
| 210 | +} |
| 211 | + |
| 212 | + |
| 213 | +# ============================================================================== |
| 214 | +# Sphinx.Ext.Graphviz |
| 215 | +# ============================================================================== |
| 216 | +graphviz_output_format = "svg" |
| 217 | + |
| 218 | + |
| 219 | +# ============================================================================== |
| 220 | +# Sphinx.Ext.ToDo |
| 221 | +# ============================================================================== |
| 222 | +# If true, `todo` and `todoList` produce output, else they produce nothing. |
| 223 | +todo_include_todos = True |
| 224 | +todo_link_only = True |
| 225 | + |
| 226 | + |
| 227 | +# ============================================================================== |
| 228 | +# AutoAPI.Sphinx |
| 229 | +# ============================================================================== |
| 230 | +autoapi_modules = { |
| 231 | + 'pyEDAA.ToolSetup': {'output': "pyEDAA.ToolSetup", "override": True} |
181 | 232 | } |
0 commit comments