Skip to content

Commit

Permalink
Add decision for version display
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Feb 16, 2020
1 parent 1e303fe commit bb0eadf
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,17 @@
for line in res.split("\n"):
if line[0] == '*':
git_branch = line[1:].strip()
if git_branch == 'develop' or git_branch == 'origin/develop':
version = "latest-develop"

# Decision for display version
try:
if git_branch.index('develop') >= 0:
version = "latest-develop"
except Exception:
printf("Exception for index check")

# For debugging purpose
print("GIT BRANCH: " + git_branch)
print("VERSION: " + version)

# -- General configuration ---------------------------------------------------

Expand Down

0 comments on commit bb0eadf

Please sign in to comment.