diff --git a/docs/templates/story.rst.j2 b/docs/templates/story.rst.j2 index 9826ce2134..e33d5a920a 100644 --- a/docs/templates/story.rst.j2 +++ b/docs/templates/story.rst.j2 @@ -123,6 +123,15 @@ * {{ printable_relation(link) }} :ref:`{{ matched.group(1) }}{# {% if matched.group(2) %}:{{ matched.group(2).replace('-', ' ') }}{% endif %} #}` {% endmacro %} + +{# --- The real template body --- #} + +{# + Explicit URL for "Edit on GitHub" links. +#} +{% set github_url = 'https://github.com/teemtee/tmt/blob/main/docs/scripts/generate-plugins.py' %} + + {% if INCLUDE_TITLE %} {% set depth = STORY.name | regex_findall('/') | length - 1 %} {% set title_underline = '=~^:-><'[depth] %}