Skip to content

Commit

Permalink
CLDR-17933 site: auto linkify headings (#4032)
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 authored and conradarcturus committed Sep 25, 2024
1 parent 0b31dd5 commit 901cff3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/site/_layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
</footer>
<!-- workaround for cloudflare content-type issue -->
<script src="/assets/vendor/vue.global.prod.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/5.0.0/anchor.min.js" integrity="sha512-byAcNWVEzFfu+tZItctr+WIMUJvpzT2kokkqcBq+VsrM3OrC5Aj9E2gh+hHpU0XNA3wDmX4sDbV5/nkhvTrj4w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="/assets/js/cldrsite.js"></script>
</body>

Expand Down
3 changes: 3 additions & 0 deletions docs/site/assets/js/cldrsite.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,6 @@ const app = Vue.createApp(
// });

app.mount("#nav");

// load anchor.js
anchors.add("h1, h2, h3, h4, h5, h6, caption, dfn");

0 comments on commit 901cff3

Please sign in to comment.