Skip to content

fix: on docs pages ensure the toc is always a fixed width#56

Merged
SethFalco merged 5 commits into
svg:mainfrom
SethFalco:fix-toc
Mar 7, 2026
Merged

fix: on docs pages ensure the toc is always a fixed width#56
SethFalco merged 5 commits into
svg:mainfrom
SethFalco:fix-toc

Conversation

@SethFalco
Copy link
Copy Markdown
Member

Fixes an issue we've had on SVGO.dev for quite some time! The ToC is finally fixed with. ^-^'

Chores

On the side, I also included several chores in this PR, each of them being rather small. You can get more context on each commit message.

Before when navigating between pages, the ToC would sometimes shift a
few pixels. This sets it to a fixed width so it stops moving around.
Just sets an npmMinimalAgeGate which is a measure to wait a few days
before a package version is considered safer to install.
After discussing and putting this to a vote with my peers, I decided to
remove the word "various" from the tagline.
When contributing to this, it's not technically required but it's
strongly recommended to enable corepack to ensure the package manager
version remains consistent.
Updates serveral dependencies to their latest version and dedupes.

I also remove the "serve" dependency which was added during the a11y
patches. However, I realize now docusaurus already includes it's own
command to serve the production build, so we don't need an additional
package for that.
@SethFalco SethFalco merged commit 85fbe36 into svg:main Mar 7, 2026
4 checks passed
@SethFalco SethFalco deleted the fix-toc branch March 7, 2026 01:33
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