Skip to content

Commit

Permalink
Fix github links
Browse files Browse the repository at this point in the history
  • Loading branch information
brueckner committed Nov 13, 2024
1 parent 48ff40a commit 9e79969
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions source/_templates/_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
<!-- User defined GitHub URL -->
<a href="{{ meta['github_url'] }}"> {{ _('Edit on GitHub') }}</a>
{% else %}
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/{{ theme_vcs_pageview_mode|default("blob") }}/{{ github_version }}{{ conf_py_path }}{{ pagename.replace('./', '') }}{{ suffix }}"> {{ _('Edit this Page') }}</a> |
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/issues/new?body=File:%20[{{ pagename.replace('./', '') }}{{ suffix }}]%20https://docs.nitrokey.com/{{ pagename.replace('./', '') }}"> {{ _('Request docs change') }}</a>
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/{{ theme_vcs_pageview_mode|default("blob") }}/{{ github_version }}{{ conf_py_path }}{{ pagename.replace("components/", "") }}{{ suffix }}"> {{ _('Edit this Page') }}</a> |
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/issues/new?body=File:%20[{{ pagename.replace("components/", "") }}{{ suffix }}]%20https://docs.nitrokey.com/{{ pagename.replace("components/", "") }}"> {{ _('Request docs change') }}</a>
{% endif %}
{% elif show_source and source_url_prefix %}
<a href="{{ source_url_prefix }}{{ pagename }}{{ suffix }}">{{ _('View page source') }}</a>
Expand All @@ -66,4 +66,3 @@
</div>

</footer>

4 changes: 2 additions & 2 deletions source/_templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@
<!-- User defined GitHub URL -->
<a href="{{ meta['github_url'] }}"> {{ _('Edit on GitHub') }}</a>
{% else %}
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/{{ theme_vcs_pageview_mode|default("blob") }}/{{ github_version }}{{ conf_py_path }}{{ pagename.replace('./', '') }}{{ suffix }}"> {{ _('Edit this Page') }}</a> |
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/issues/new?body=File:%20[{{ pagename.replace('./', '') }}{{ suffix }}]%20https://docs.nitrokey.com/{{ pagename.replace('./', '') }}.html"> {{ _('Request docs change') }}</a>
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/{{ theme_vcs_pageview_mode|default("blob") }}/{{ github_version }}{{ conf_py_path }}{{ pagename.replace("components/", "") }}{{ suffix }}"> {{ _('Edit this Page') }}</a> |
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/issues/new?body=File:%20[{{ pagename.replace("components/", "") }}{{ suffix }}]%20https://docs.nitrokey.com/{{ pagename.replace("components/", "") }}.html"> {{ _('Request docs change') }}</a>
{% endif %}
{% elif show_source and source_url_prefix %}
<a href="{{ source_url_prefix }}{{ pagename }}{{ suffix }}">{{ _('View page source') }}</a>
Expand Down

0 comments on commit 9e79969

Please sign in to comment.