Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions doc/conf.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
from sys import path as sys_path
from os.path import abspath
from pathlib import Path
from sys import path as sys_path
from os.path import abspath
from pathlib import Path
from textwrap import dedent

from pyTooling.Packaging import extractVersionInformation

# ==============================================================================
# Project configuration
# ==============================================================================
githubNamespace = "edaa-org"
project = "pySVModel"
directoryName = project.replace('.', '/')
githubProject = pythonProject = "pySVModel"
directoryName = pythonProject.replace('.', '/')


# ==============================================================================
Expand All @@ -22,7 +23,7 @@

sys_path.insert(0, abspath("."))
sys_path.insert(0, abspath(".."))
sys_path.insert(0, abspath("../pySVModel"))
sys_path.insert(0, abspath(f"../{directoryName}"))


# ==============================================================================
Expand All @@ -34,6 +35,7 @@
packageInformationFile = Path(f"../{directoryName}/__init__.py")
versionInformation = extractVersionInformation(packageInformationFile)

project = pythonProject
author = versionInformation.Author
copyright = versionInformation.Copyright
version = ".".join(versionInformation.Version.split(".")[:2]) # e.g. 2.3 The short X.Y version.
Expand Down
Loading