Skip to content

Commit

Permalink
Use git version or commit instead of hard coded version
Browse files Browse the repository at this point in the history
  • Loading branch information
gabryelreyes committed Oct 29, 2024
1 parent 5fb818b commit 8140ea6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@

import os.path
import platform
import subprocess
git_version = subprocess.check_output(
['git', 'describe', 'HEAD', '--tags', '--always'])

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = "gitWorkInstructions"
copyright = "2024 - present, NewTec GmbH"
author = "NewTec GmbH"
release = "1.1.0"
version = release # Do not differenciate between release and version
release = git_version.decode()
version = release # Do not differenciate between release and version
conf_py_path = "/doc/" # with leading and trailing slashes

# -- General configuration ---------------------------------------------------
Expand Down

0 comments on commit 8140ea6

Please sign in to comment.