bindings/python/doc/conf.py: fix logic to link to Github repository

This commit is contained in:
Mark Hillebrand 2017-04-20 14:43:58 +02:00
Родитель cbab34f7bc
Коммит b96608d9e6
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -68,10 +68,10 @@ linkcheck_anchors_ignore = [
source_prefix = 'https://github.com/Microsoft/CNTK/blob/'
if module_is_unreleased():
# TODO temporary
source_prefix += 'v%s' % (cntk.__version__[:-1].replace("rc", ".rc"))
else:
source_prefix += 'master'
else:
# TODO temporary
source_prefix += 'v%s' % (cntk.__version__.replace("rc", ".rc"))
# sphinx.ext.extlinks options
extlinks = {