bindings/python/doc/conf.py: fix logic to link to Github repository
This commit is contained in:
Родитель
cbab34f7bc
Коммит
b96608d9e6
|
@ -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 = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче