Skip to content

Commit

Permalink
[MSKINS-167] Add deep anchors to headers
Browse files Browse the repository at this point in the history
Add anchors to sections header using AnchorJS utility.

The Permalink icon is displayed on Mouse-Over.
This helps on sharing links.

This closes #167
  • Loading branch information
dialaya authored and hboutemy committed Apr 19, 2020
1 parent a4fabfa commit 3ad22d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/resources/META-INF/maven/site-macros.vm
Original file line number Diff line number Diff line change
Expand Up @@ -792,3 +792,11 @@ $indent </ul>##
Apache Maven Doxia Site Renderer#if( $doxiaSiteRendererVersion ) $doxiaSiteRendererVersion#end##
#end
##
##
#macro( anchorJS )
<script src="https://cdn.jsdelivr.net/npm/anchor-js/anchor.min.js"></script>
<script>
anchors.add();
</script>
#end
##
1 change: 1 addition & 0 deletions src/main/resources/META-INF/maven/site.vm
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,6 @@
</div>
</footer>
#**##piwik()
#**##anchorJS()
</body>
</html>

0 comments on commit 3ad22d3

Please sign in to comment.