aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/layouts/partials/edit-on-github.html
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2018-03-20 23:41:24 +0100
committerMaximilian Hils <git@maximilianhils.com>2018-03-21 00:42:37 +0100
commit4eb6954c7d7b5327c59dfbd86cebfc3ea10c1033 (patch)
treee13bdbcac73d6cab53a9c48b0e26ee3dc1e0fcf4 /docs/src/layouts/partials/edit-on-github.html
parent97484879390e283b186562d69236f975c2353b45 (diff)
downloadmitmproxy-4eb6954c7d7b5327c59dfbd86cebfc3ea10c1033.tar.gz
mitmproxy-4eb6954c7d7b5327c59dfbd86cebfc3ea10c1033.tar.bz2
mitmproxy-4eb6954c7d7b5327c59dfbd86cebfc3ea10c1033.zip
various docs improvements
- add clickable anchors for headers - add "outdated" warning for archived docs - add "edit on github" button - beautify template
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 }}
+