Skip to content

Commit e8fe84d

Browse files
committed
better doc conf
1 parent d17aaac commit e8fe84d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

doc/conf.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
# -- Path setup --------------------------------------------------------------
88

9+
import datetime
910
import pathlib
1011

1112
# If extensions (or modules to document with autodoc) are in another directory,
@@ -20,14 +21,16 @@
2021
# Sphinx 1.* compat (for readthedocs)
2122
master_doc = "index"
2223

23-
# -- Project information -----------------------------------------------------
24-
project = "tikzplotlib"
25-
copyright = "2010-2021, Nico Schlömer"
26-
author = "Nico Schlömer"
27-
2824
p = ConfigParser()
2925
this_dir = pathlib.Path(__file__).resolve().parent
3026
p.read(this_dir / ".." / "setup.cfg")
27+
28+
# -- Project information -----------------------------------------------------
29+
project = p["metadata"]["name"]
30+
year = datetime.datetime.utcnow().year
31+
author = p["metadata"]["author"]
32+
copyright = f"2010-{year}, {author}"
33+
3134
release = p["metadata"]["version"]
3235

3336

0 commit comments

Comments
 (0)