Exemplo n.º 1
0
project = u'Developer Documentation v' + version
#copyright = u'2011-2013, Marcus Popp; since 2016 SmartHomeNG Team'
#copyright = u'2016-2017 SmartHomeNG Team, based on smarthome.py © 2011-2014 Marcus Popp'
copyright = u'2016-2020 SmartHomeNG Team, SmartHomeNG is based on smarthome.py © Marcus Popp'

if os.path.isfile(os.getcwd() + '/doc_version.flg'):
    release = '1.4.x'
    with open(os.getcwd() + '/doc_version.flg', encoding='UTF-8') as f:
        release = f.readline()
    branch = 'master'
    commit = ''
    comit_short = ''
    describe = ''
else:
    release = shngversion.get_shng_docversion()
    commit, commit_short, branch, describe = shngversion._get_git_data()
release += ' (as of ' + today
if branch != 'master':
    release += ', commit ' + commit_short
release += ')'
#release = sphinx_bootstrap_theme.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
#for multi language (of developer documentation)
#language = 'en'
#locale_dirs = ['locale/']
#gettext_compact = True

# There are two options for replacing |today|: either, you set today to some
Exemplo n.º 2
0
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
#version = '1.3c'
if os.path.isfile(os.getcwd()+'/doc_version.flg'):
    release = '1.4.x'
    with open(os.getcwd()+'/doc_version.flg') as f:
        release = f.readline()
    branch = 'master'
    commit = ''
    comit_short = ''
    describe = ''
else:
    release = shngversion.get_shng_docversion()
    commit, commit_short, branch, describe = shngversion._get_git_data()
release += ' (as of ' + today
if branch != 'master':
    release += ', commit '+commit_short
release += ')'
#release = sphinx_bootstrap_theme.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
#for multi language (of developer documentation)
#language = 'en'
#locale_dirs = ['locale/']
#gettext_compact = True

# There are two options for replacing |today|: either, you set today to some