Skip to content
Snippets Groups Projects
Commit 357fa73b208f authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

conf2reST.py: fix for use links for versions

parent 4bdd6c7b2a9b
No related branches found
No related tags found
No related merge requests found
......@@ -189,12 +189,12 @@
for element in rst[group].keys():
out.write(" * - %s\n" % element)
version = rst[group][element]['version']
repository =
if repository.startswith('ssh://hg@bitbucket.org/')
text = '`%s <%s/commits/%s>`_' {
repository = rst[group][element].get('repository', '')
if repository.startswith('ssh://hg@bitbucket.org/'):
text = '`%s <%s/commits/%s>`_' % (
version,
repository.replace(
'ssh://hg@bitbucket.org/',
'https://bitbucket.org/'),
version)
elif repository.startswith('git@bitbucket.org:'):
......@@ -195,10 +195,10 @@
version,
repository.replace(
'ssh://hg@bitbucket.org/',
'https://bitbucket.org/'),
version)
elif repository.startswith('git@bitbucket.org:'):
text = '`%s <%s/commits/%s>`_' {
text = '`%s <%s/commits/%s>`_' % (
version,
repository.replace(
'git@bitbucket.org:',
......
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