Hugo-theme-stack/assets/ts
Zoroark 2b40a32d47
feat(article): Scrollspy for the table of contents (#425)
* Add first try at scrollspy (broken right now)

* Scrollspy actually works now

* Fix VS Code errors by setting JS version

* Recompute offsets when window size changes

* Improve list compatibility for toc active selection

Support up to 6 levels of indentation, properly support <ol>

* Remove debug string

* Add more docs in smoothAnchors

* Use a map to match ids to navigation elements
2022-01-22 10:35:08 +01:00
..
color.ts refactor(ts/color): improve code style and change name of some variables for more clarity 2020-08-29 11:43:00 +02:00
colorScheme.ts chore: add toggleEl type (#256) 2021-07-06 12:25:27 +02:00
createElement.ts refactor: create createElement.ts 2020-11-06 11:12:48 +01:00
gallery.ts refactor(article): better support for svg and external images (#326) 2021-08-25 12:20:15 +02:00
main.ts feat(article): Scrollspy for the table of contents (#425) 2022-01-22 10:35:08 +01:00
menu.ts 🎉 Initial commit 2020-08-22 13:20:08 +02:00
scrollspy.ts feat(article): Scrollspy for the table of contents (#425) 2022-01-22 10:35:08 +01:00
search.tsx refactor(search): avoid issue with one character keyword (#447) 2022-01-18 23:19:30 +01:00
smoothAnchors.ts feat(article): Scrollspy for the table of contents (#425) 2022-01-22 10:35:08 +01:00