Skip to content

Commit 1c65fa5

Browse files
committed
Take users directly to API YAML source via Edit on GitHub
1 parent 07ca1a4 commit 1c65fa5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{{ if .File }}
2+
{{ if eq .Section "api-documentation" }}
3+
<a href="https://github.com/mattermost/mattermost/tree/master/api/v4/source" class="float-right edit-github">
4+
Edit on GitHub
5+
</a>
6+
{{ else }}
27
<a href="{{.Site.Params.ghrepo}}edit/master/site/content/{{ .File.Path }}" class="float-right edit-github">
38
Edit on GitHub
49
</a>
510
{{ end }}
11+
{{ end }}

0 commit comments

Comments
 (0)