diff --git a/docs/conf.py b/docs/conf.py index 441b121..3191505 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,18 +15,22 @@ # import os # import sys # sys.path.insert(0, os.path.abspath('.')) +from pathlib import Path +from tomlkit import parse # -- Project information ----------------------------------------------------- project = "Gaphas" -copyright = "2018, Arjan J. Molenaar" +copyright = "2019, Arjan J. Molenaar" author = "Arjan J. Molenaar" # The short X.Y version version = "" # The full version, including alpha/beta/rc tags -release = "1.0.0" +project_dir = Path(__file__).resolve().parent.parent +f = project_dir.joinpath("pyproject.toml") +release = str(parse(f.read_text())["tool"]["poetry"]["version"]) # -- General configuration --------------------------------------------------- diff --git a/docs/requirements.txt b/docs/requirements.txt index 6202026..a07f58c 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,2 +1,6 @@ -sphinx==1.8.3 -sphinx_rtd_theme==0.4.2 \ No newline at end of file +sphinx==2.1.0 +docutils==0.14 +Pygments==2.4.2 +sphinx-rtd-theme==0.4.3 +sphinxcontrib-websupport==1.1.2 +tomlkit==0.5.3