Merge pull request #205 from rakhi2104/enable-edit-link-on-documentation

enabled edit link in documentation pages
This commit is contained in:
Jesús Espino 2021-03-30 15:24:05 +02:00 committed by GitHub
commit 1b285939f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 32 deletions

View file

@ -17,7 +17,7 @@ pygmentsStyle = "manni"
author = ""
description = ""
email = ""
ghrepo = "https://github.com/mattermost/focalboard/tree/main/website"
ghrepo = "https://github.com/mattermost/focalboard/"
[params.mailinglist]
enable = false

View file

@ -8,22 +8,20 @@
<head>
{{ partial "head.html" .}}
</head>
<body>
{{ partial "nav2.html" .}}
<div id="wrapper">
<div class="container-fluid">
<div class="row">
{{ partial "sidebar.html" .}}
<div class="col-lg-9 doc-content">
<!-- {{ partial "page-edit.html" . }} -->
<h1 class="mt-0 doc-title">
{{ .Title }}
</h1>
{{ partial "hanchor.html" .Content }}
<body>
{{ partial "nav2.html" .}}
<div id="wrapper">
<div class="container-fluid">
<div class="row">
{{ partial "sidebar.html" .}}
<div class="col-lg-9 doc-content">
{{ partial "page-edit.html" . }}
<h1 class="mt-0 doc-title">{{ .Title }}</h1>
{{ partial "hanchor.html" .Content }}
</div>
</div>
</div>
</div>
</div>
{{ partial "footer.html" .}}
</body>
{{ partial "footer.html" .}}
</body>
</html>

View file

@ -8,22 +8,20 @@
<head>
{{ partial "head.html" .}}
</head>
<body>
{{ partial "nav2.html" .}}
<div id="wrapper">
<div class="container-fluid">
<div class="row">
{{ partial "sidebar.html" .}}
<div class="col-lg-9 doc-content">
<!-- {{ partial "page-edit.html" . }} -->
<h1 class="mt-0 doc-title">
{{ .Title }}
</h1>
{{ partial "hanchor.html" .Content }}
<body>
{{ partial "nav2.html" .}}
<div id="wrapper">
<div class="container-fluid">
<div class="row">
{{ partial "sidebar.html" .}}
<div class="col-lg-9 doc-content">
{{ partial "page-edit.html" . }}
<h1 class="mt-0 doc-title">{{ .Title }}</h1>
{{ partial "hanchor.html" .Content }}
</div>
</div>
</div>
</div>
</div>
{{ partial "footer.html" .}}
</body>
{{ partial "footer.html" .}}
</body>
</html>

View file

@ -1,5 +1,9 @@
{{ if .File }}
<a href="{{.Site.Params.ghrepo}}edit/master/site/content/{{ .File.Path }}" class="float-right edit-github">
<a
href="{{.Site.Params.ghrepo}}edit/main/website/site/content/{{ .File.Path }}"
class="float-right edit-github"
target="_blank"
>
Edit on GitHub
</a>
{{ end }}