IAP GITLAB

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

Update conf.py

parent 7cd85dc6
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,13 @@ def configureDoxyfile(template_file, output_file, input_dir, output_dir): ...@@ -14,7 +14,13 @@ def configureDoxyfile(template_file, output_file, input_dir, output_dir):
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True' read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
s = '' from pygit2 import Repository
repo = Repository('../')
# option 1
head = repo.head
if read_the_docs_build: if read_the_docs_build:
configureDoxyfile("Doxyfile.in", "Doxyfile", "../", "_build/workdir/doxygen") configureDoxyfile("Doxyfile.in", "Doxyfile", "../", "_build/workdir/doxygen")
s = subprocess.check_output(['git', 'rev-parse' , '--abbrev-ref' , 'HEAD']).decode() s = subprocess.check_output(['git', 'rev-parse' , '--abbrev-ref' , 'HEAD']).decode()
...@@ -27,9 +33,9 @@ if read_the_docs_build: ...@@ -27,9 +33,9 @@ if read_the_docs_build:
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
project = s #u'CORSIKA8' project = head #u'CORSIKA8'
copyright = s #u'2021, CORSIKA 8 Collaboration' copyright = head #u'2021, CORSIKA 8 Collaboration'
author = s #u'CORSIKA 8 Collaboration' author = head #u'CORSIKA 8 Collaboration'
# The short X.Y version # The short X.Y version
version = u'0.0.0' version = u'0.0.0'
......
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