Repository navigation
feat(docs): add since when a plugin became available in SVGO - #88
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See commit message(s).
Screenshots
Before
After