Files
my-rook-config/Documentation/branch.liquid
T
Travis Nielsen ad2a1eb2ec docs: generate correct doc links to master github branch
The latest docs should link to the master examples on github.
Only the docs were renamed to latest, but not the github branch.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-11-15 13:49:17 -07:00

8 lines
254 B
Plaintext

{% assign url = page.url | split: '/' %}
{% assign currentVersion = url[3] %}
{% if currentVersion != 'latest' %}
{% assign branchName = currentVersion | replace: 'v', '' | prepend: 'release-' %}
{% else %}
{% assign branchName = 'master' %}
{% endif %}