You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2020/04/19 17:51:07 UTC
[maven-fluido-skin] branch master updated: [MSKINS-167] Add deep
anchors to headers
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-fluido-skin.git
The following commit(s) were added to refs/heads/master by this push:
new 3ad22d3 [MSKINS-167] Add deep anchors to headers
3ad22d3 is described below
commit 3ad22d359e7657d78b9b943ce144475c2606724a
Author: bakary dialaya djiba <di...@gmail.com>
AuthorDate: Tue Apr 14 20:38:47 2020 +0200
[MSKINS-167] Add deep anchors to headers
Add anchors to sections header using AnchorJS utility.
The Permalink icon is displayed on Mouse-Over.
This helps on sharing links.
This closes #167
---
src/main/resources/META-INF/maven/site-macros.vm | 8 ++++++++
src/main/resources/META-INF/maven/site.vm | 1 +
2 files changed, 9 insertions(+)
diff --git a/src/main/resources/META-INF/maven/site-macros.vm b/src/main/resources/META-INF/maven/site-macros.vm
index 5f0e3d0..9a79d64 100644
--- a/src/main/resources/META-INF/maven/site-macros.vm
+++ b/src/main/resources/META-INF/maven/site-macros.vm
@@ -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
+##
diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm
index bc63222..d62435c 100644
--- a/src/main/resources/META-INF/maven/site.vm
+++ b/src/main/resources/META-INF/maven/site.vm
@@ -293,5 +293,6 @@
</div>
</footer>
#**##piwik()
+#**##anchorJS()
</body>
</html>