IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 3d24a3a8 authored by Antonio Augusto Alves Junior's avatar Antonio Augusto Alves Junior Committed by Ralf Ulrich
Browse files

Update conf.py

parent d1805f37
No related branches found
No related tags found
1 merge request!374New documentation buiding
......@@ -17,12 +17,12 @@ def getDocumentationUrl(base_name, repo_dir):
with open(repo_dir + '/.git/HEAD', 'r') as file :
lines = file.read().splitlines()
branchname =''
for line in lines:
#if "ref:" in line:
branchname=line.partition("refs/heads/")[1]
if "ref:" in line : branchname=line.partition("refs/heads/")[1]
if branchname=='master': name='latest'
else: name=branchname
else: name="tes"
return base_name + '/' + name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment