Skip to content

Commit c322796

Browse files
Adding links to see page history and report doc bugs (#363)
1 parent 8a1c0f0 commit c322796

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

layouts/partials/toc.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
<aside class="pf-c-jump-links pf-m-vertical sticky pf-m-expandable pf-m-non-expandable-on-2xl" aria-label="Table of contents">
2-
<div class="pf-c-jump-links__header">
3-
<div class="pf-c-jump-links__label">
4-
<h1>Table of Contents</h1>
2+
<div class="pf-l-stack pf-m-gutter">
3+
<div class="pf-l-stack__item pf-u-text-align-right">
4+
<a href="https://github.com/validatedpatterns/docs/commits/main/content/{{ .File.Path }}"><span class="pf-c-icon pf-m-md" title="View page history"><span class="pf-c-icon__content"><i class="fa-solid fa-clock-rotate-left"></i></span></span></a>
5+
<a href="https://issues.redhat.com/secure/CreateIssueDetails!init.jspa?pid=12325623&summary={{ .Title }}: %3C+Provide+a+brief+description+of+the+issue+%3E&issuetype=1&priority=10200&components=12365975&priority=10200&components=12365975&description=Link+to+page:+{{ .Permalink }}+%0A+%0A+%3C+Provide+a+detailed+description+of+the+issue+with+link+to+the+docs++%3E"><span class="pf-c-icon pf-m-md" title="File a documentation bug"><span class="pf-c-icon__content"><i class="fa-regular fa-bug"></i></span></span></a>
6+
</div>
7+
<div class="pf-l-stack__item">
8+
<div class="pf-c-jump-links__header">
9+
<div class="pf-c-jump-links__label">
10+
<h1>Table of Contents</h1>
11+
</div>
12+
</div>
13+
{{- .TableOfContents | replaceRE "<ul>" "<ul class=\"pf-c-jump-links__list\">" | replaceRE "<li>" "<li class=\"pf-c-jump-links__item\">" | replaceRE "<a" "<a class=\"pf-c-jump-links__link\"" | safeHTML }}
514
</div>
615
</div>
7-
{{- .TableOfContents | replaceRE "<ul>" "<ul class=\"pf-c-jump-links__list\">" | replaceRE "<li>" "<li class=\"pf-c-jump-links__item\">" | replaceRE "<a" "<a class=\"pf-c-jump-links__link\"" | safeHTML }}
8-
</aside>
16+
</aside>

0 commit comments

Comments
 (0)