Skip to content

Commit 3533171

Browse files
committed
Create edit page link
1 parent d9c2163 commit 3533171

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

scripts/build.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ module.exports = () => {
7777

7878
page_title: pageTitle,
7979
page_content: pageHtml,
80+
page_path: pageId,
8081
root_dir: relPath,
8182
toc: masterToc.make(file.path, relPath),
8283
}

theme/doc-page-template.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,14 @@
8686
{{page_content}}
8787

8888
<hr>
89-
<p>Found a mistake? Or do you want to contribute? <a target="_blank" href="https://github.com/ExpressionEngine/ExpressionEngine-User-Guide/blob/stability/CONTRIBUTING.md">Edit the docs</a></p>
90-
<p>ExpressionEngine {{current_version}} Docs</p>
91-
<p class="copyright"><a href="https://ellislab.com/">©2002–{{current_year}} EllisLab Corp.</a></p>
89+
90+
<p class="docs-footer">
91+
<span>ExpressionEngine {{current_version}} Docs
92+
<br>
93+
<span class="copyright"><a href="https://ellislab.com/">©2002–{{current_year}} EllisLab Corp.</a></span>
94+
</span>
95+
<a target="_blank" class="docs-contribute-to-page-button" href="https://github.com/ExpressionEngine/ExpressionEngine-User-Guide/blob/stability/docs/{{page_path}}">Edit this page</a>
96+
</p>
9297
</div>
9398
</section>
9499

0 commit comments

Comments
 (0)