Skip to content

Commit

Permalink
check readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
glorpen committed Mar 3, 2020
1 parent 71ede26 commit 4a92373
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@
import sys
import os
import shlex
import subprocess

sys.path.append("%s/src" % os.path.dirname(os.path.dirname(__file__)))

git_tag = subprocess.check_output(["git", "describe", "--tags"]).decode().strip()
if git_tag:
subprocess.run(["sed", "-e", f"s/development/{git_tag[1:]}/", "-i", f"{__file__}/../src/glorpen/config/__init__.py"])

# 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.
Expand Down

0 comments on commit 4a92373

Please sign in to comment.