docs: fix the links to examples in master branch
With the recent rename of master docs to the latest docs, the links from the docs back to github need to be generated with the latest url instead of master. Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
1 file changed
+1
-1
@@ -1,6 +1,6 @@
|
||||
{% assign url = page.url | split: '/' %}
|
||||
{% assign currentVersion = url[3] %}
|
||||
{% if currentVersion != 'master' %}
|
||||
{% if currentVersion != 'latest' %}
|
||||
{% assign branchName = currentVersion | replace: 'v', '' | prepend: 'release-' %}
|
||||
{% else %}
|
||||
{% assign branchName = currentVersion %}
|
||||
|
||||
Reference in new issue
Block a user