Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

add anchor support

Christopher Hiller0e3d702b6955
diff --git a/_includes/footer.html b/_includes/footer.html
index 3f9e5cc1..10565d1a 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -4,4 +4,11 @@
href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
<p><em>Last updated: {{ site.time | date: "%c" }}</em>
</span>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/3.2.2/anchor.min.js"></script>
+ <script>
+ anchors.options = {
+ placement: 'left'
+ };
+ anchors.add('h2, h3');
+ </script>
</footer>