|
1 | 1 | # If extensions (or modules to document with autodoc) are in another directory, |
2 | 2 | # add these directories to sys.path here. If the directory is relative to the |
3 | 3 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
4 | | -from sys import path as sys_path |
5 | | -from os.path import abspath |
6 | | -from pathlib import Path |
| 4 | +from sys import path as sys_path |
| 5 | +from os.path import abspath |
| 6 | +from pathlib import Path |
| 7 | +from textwrap import dedent |
7 | 8 |
|
8 | 9 | from pyTooling.Packaging import extractVersionInformation |
9 | 10 |
|
10 | 11 | # ============================================================================== |
11 | 12 | # Project configuration |
12 | 13 | # ============================================================================== |
13 | 14 | githubNamespace = "edaa-org" |
14 | | -project = "pySVModel" |
15 | | -directoryName = project.replace('.', '/') |
| 15 | +githubProject = pythonProject = "pySVModel" |
| 16 | +directoryName = pythonProject.replace('.', '/') |
16 | 17 |
|
17 | 18 |
|
18 | 19 | # ============================================================================== |
|
22 | 23 |
|
23 | 24 | sys_path.insert(0, abspath(".")) |
24 | 25 | sys_path.insert(0, abspath("..")) |
25 | | -sys_path.insert(0, abspath("../pySVModel")) |
| 26 | +sys_path.insert(0, abspath(f"../{directoryName}")) |
26 | 27 |
|
27 | 28 |
|
28 | 29 | # ============================================================================== |
|
34 | 35 | packageInformationFile = Path(f"../{directoryName}/__init__.py") |
35 | 36 | versionInformation = extractVersionInformation(packageInformationFile) |
36 | 37 |
|
| 38 | +project = pythonProject |
37 | 39 | author = versionInformation.Author |
38 | 40 | copyright = versionInformation.Copyright |
39 | 41 | version = ".".join(versionInformation.Version.split(".")[:2]) # e.g. 2.3 The short X.Y version. |
|
0 commit comments