aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/layouts/partials/edit-on-github.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/layouts/partials/edit-on-github.html')
-rw-r--r--docs/src/layouts/partials/edit-on-github.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/src/layouts/partials/edit-on-github.html b/docs/src/layouts/partials/edit-on-github.html
new file mode 100644
index 00000000..d2c3098c
--- /dev/null
+++ b/docs/src/layouts/partials/edit-on-github.html
@@ -0,0 +1,9 @@
+{{ if and .IsPage (not (getenv "DOCS_ARCHIVE")) }}
+<a class="button is-small is-outlined is-link is-pulled-right"
+ target="_blank"
+ href="https://github.com/mitmproxy/mitmproxy/blob/master/docs/src/content/{{ .File.Path }}"
+>
+ Edit on GitHub
+</a>
+{{ end }}
+