Skip to content

Commit 8d68bd5

Browse files
docs: add link to open documentation issue on GitHub in footer
It uses templating to automatically get the repository URL from the configuration file, and then appends the rest of the link to it.
1 parent 264a81e commit 8d68bd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/overrides/templates/footer.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
<div class="container-wrapper px-4 xl:px-6">
44
<div class="flex h-(--footer-height) items-center justify-between">
55
<div class="text-muted-foreground w-full text-center text-xs leading-loose sm:text-sm">
6+
{% set repo_url = config.repo_url.rstrip('/') %}
7+
These docs are <a href="{{ repo_url }}">open source</a>. See room for
8+
improvement? <a href="{{ repo_url }}/issues/new?template=03-docs.yaml">Open an issue</a>,
9+
or even better, <a href="{{ repo_url }}/compare">open a pull request</a>.
610
</div>
711
</div>
812
</div>

0 commit comments

Comments
 (0)