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

conf2reST.py: fix for use links for versions

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