1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00

enabled edit link in documentation pages

- updated GH Repo URL to match the GH edit URL format/template
- updated edit-page partial
This commit is contained in:
Rakesh Peela 2021-03-28 16:52:58 +05:30
parent e7d93ef941
commit ba592223f8
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 }}