Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autohighlight to article table of contents #3

Merged
merged 8 commits into from
Dec 19, 2023

Conversation

rossta
Copy link
Contributor

@rossta rossta commented Dec 19, 2023

Uses IntersectionObserver to update TOC link color as article headers enter the top of the viewport. Inspired by https://www.smashingmagazine.com/2021/07/dynamic-header-intersection-observer/.

Also includes:

  • some updates to CSS—moving files, adding background transition
  • improvement for running the default rake task: Brakeman defaults to using a pager for printed reported that required interaction for the command to exit; that's been removed

@rossta rossta merged commit 73b4348 into main Dec 19, 2023
2 checks passed
@rossta rossta deleted the feat/highlight-toc-header branch January 14, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant