From a2260de5500f0a3e17dabbf6a15c96c63f4fde8a Mon Sep 17 00:00:00 2001 From: akhiljain23 Date: Thu, 26 Jul 2018 18:23:36 +0530 Subject: [PATCH] Adding links to git reference in docs Created hyperlinks for git urls in doc [0]. [0] https://docs.openstack.org/tempest/latest/plugin-registry.html Change-Id: Ied124b1829cc328bfe2dd150f819c7daf480d0f9 --- tools/generate-tempest-plugins-list.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/generate-tempest-plugins-list.sh b/tools/generate-tempest-plugins-list.sh index d2fd2aa955..b27b23ab71 100755 --- a/tools/generate-tempest-plugins-list.sh +++ b/tools/generate-tempest-plugins-list.sh @@ -50,7 +50,7 @@ fi sorted_plugins=$(python tools/generate-tempest-plugins-list.py) name_col_len=$(echo "${sorted_plugins}" | wc -L) -name_col_len=$(( name_col_len + 2 )) +name_col_len=$(( name_col_len + 20 )) # Print the title underline for a RST table. function title_underline { @@ -69,11 +69,11 @@ printf "%-3s %-${name_col_len}s %s\n" "SR" "Plugin Name" "URL" title_underline ${name_col_len} i=0 -for k in ${sorted_plugins}; do +for plugin in ${sorted_plugins}; do i=$((i+1)) - project=${k:0:28} - giturl="git://git.openstack.org/openstack/${k:0:26}" - printf "%-3s %-${name_col_len}s %s\n" "$i" "${project}" "${giturl}" + giturl="git://git.openstack.org/openstack/${plugin}" + gitlink="https://git.openstack.org/cgit/openstack/${plugin}" + printf "%-3s %-${name_col_len}s %s\n" "$i" "${plugin}" "\`${giturl} <${gitlink}>\`__" done title_underline ${name_col_len}