feat(toc): add Table of Contents scroll highlighting (#738)

* feat(toc): add Table of Contents scroll highlighting

- Introduced a new toc.css file for styling the Table of Contents with active link highlighting.
- Implemented toc-scroll.js to manage scroll behavior and link activation based on viewport visibility.
- Updated core.html to include the new JavaScript file and ensure proper loading of the Table of Contents functionality.

* chore: lower root heading font weight for TOC

* chore: run `task css`

* chore: update dependencies in package.json and package-lock.json to version 4.1.11 for @tailwindcss/postcss and tailwindcss, and update @jridgewell packages to latest versions
This commit is contained in:
Xin
2025-08-11 16:04:53 +08:00
committed by GitHub
parent 025dd1f211
commit 0bb59d6f49
8 changed files with 152 additions and 100 deletions

View File

@@ -50,3 +50,4 @@ body {
@import "./components/hextra/feature-grid.css";
@import "./components/jupyter.css";
@import "./components/badge.css";
@import "./components/toc.css";