Skip to content

feat(docs): add since when a plugin became available in SVGO - #88

Merged
SethFalco merged 4 commits into
svg:mainfrom
SethFalco:parse-svgo
Aug 14, 2026
Merged

SethFalco merged 4 commits into
svg:mainfrom
SethFalco:parse-svgo

Conversation

@SethFalco

Copy link
Copy Markdown
Member

See commit message(s).

Screenshots

Before

image

After

image

We don't need this anymore. MDXComponents are for being able to use
components in markup from svg/svgo. However, we'll handle presets from
here now through the JS API.
Like most other links on the page, we should let the user know this will
open in a new tab.
The biggest change is that rather than only relying on frontmatter,
SVGO.dev will now use the SVGO JS API and parse the source code to
populate data at build-time. We'll keep the MDX files in SVGO,
but overtime aim to push more of it into either stable API, JSDocs,
and TypeScript types which keeps the documentation reusable between
interfaces.

In SVGO we'll now add the since JSDoc tag on each plugin, which will be
displayed under the page title. The design I've gone for is largely
based on the Rust documentation <https://doc.rust-lang.org/std/vec/struct.Vec.html>.

The motivation is that without showing versions in the docs, it's
unclear sometimes why a plugin doesn't work. Many users still use SVGO
v3, v2, v1, and somehow, even v0. We need to make it easier for users to
see which plugins are actually available for their environment.

Some other changes:

- Moved "Read the implementation" to under the plugin docs title.
- Added an external link icon next to "Edit this page on Github".
- Removed the DefaultBadge component for just a Badge component which
  has its children populated from the caller. We'll likely reuse this
  later.
- Subtle design change, where I made all pills more rectangular.
@SethFalco
SethFalco merged commit 1c197bd into svg:main Aug 14, 2026
4 checks passed
@SethFalco
SethFalco deleted the parse-svgo branch August 14, 2026 19:00
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