Make edit page links take you to editing the page on github (#2677)

This commit is contained in:
eashaw 2021-10-26 10:54:50 -05:00 committed by GitHub
parent 79f2c7c391
commit 66faac25c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -143,7 +143,7 @@
<div purpose="edit-button-container"> <div purpose="edit-button-container">
<div purpose="edit-button"> <div purpose="edit-button">
<a :href="'https://github.com/fleetdm/fleet/tree/main/docs/'+thisPage.sectionRelativeRepoPath"><i class="fa fa-pencil"></i>Edit page</a> <a :href="'https://github.com/fleetdm/fleet/edit/main/docs/'+thisPage.sectionRelativeRepoPath"><i class="fa fa-pencil"></i>Edit page</a>
</div> </div>
</div> </div>
@ -212,7 +212,7 @@
<div class="d-block"> <div class="d-block">
<h3 class="pb-4 m-0">Is there something missing?</h3> <h3 class="pb-4 m-0">Is there something missing?</h3>
<p> <p>
If you notice something weve missed, or that could be improved, please click <a :href="'https://github.com/fleetdm/fleet/tree/main/docs/'+thisPage.sectionRelativeRepoPath">here</a> to edit this page. If you notice something weve missed, or that could be improved, please click <a :href="'https://github.com/fleetdm/fleet/edit/main/docs/'+thisPage.sectionRelativeRepoPath">here</a> to edit this page.
</p> </p>
</div> </div>

View File

@ -6,7 +6,7 @@
<div purpose="maintainer" class="mb-lg-3"> <div purpose="maintainer" class="mb-lg-3">
<h4>Maintained by:</h4> <h4>Maintained by:</h4>
<img class="maintainer-image" alt="The page maintainer's github profile picture" :src="'https://github.com/'+thisPage.meta.maintainedBy+'.png?size=200'"> <img class="maintainer-image" alt="The page maintainer's github profile picture" :src="'https://github.com/'+thisPage.meta.maintainedBy+'.png?size=200'">
<a style="margin-top: 24px;" :href="'https://github.com/fleetdm/fleet/tree/main/handbook/'+thisPage.sectionRelativeRepoPath"> Edit this page</a> <a style="margin-top: 24px;" :href="'https://github.com/fleetdm/fleet/edit/main/handbook/'+thisPage.sectionRelativeRepoPath"> Edit this page</a>
</div> </div>
<h4 class="font-weight-bold pb-2 m-0 mb-2" v-if="!_.isEmpty(subtopics)">On this page:</h4> <h4 class="font-weight-bold pb-2 m-0 mb-2" v-if="!_.isEmpty(subtopics)">On this page:</h4>
<div purpose="subtopics"> <div purpose="subtopics">