Skip to content

Commit

Permalink
Setting explicit GitHub URL for generated pages
Browse files Browse the repository at this point in the history
  • Loading branch information
abitrolly committed Dec 6, 2024
1 parent c92b81c commit 3226c26
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/templates/story.rst.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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] %}
Expand Down

0 comments on commit 3226c26

Please sign in to comment.