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

docs: minor restructure and rewording #2011

Merged
merged 1 commit into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/03-plugins/cleanupListOfValues.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ svgo:
default: true
---

# Cleanup List of Values

Rounds numeric values in attributes, such as those found in [`viewBox`](https://developer.mozilla.org/docs/Web/SVG/Attribute/viewBox), [`enable-background`](https://developer.mozilla.org/docs/Web/SVG/Attribute/enable-background), and [`points`](https://developer.mozilla.org/docs/Web/SVG/Attribute/points).
4 changes: 1 addition & 3 deletions docs/03-plugins/removeEmptyContainers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ svgo:
defaultPlugin: true
---

Remove container elements in the document that have no children or meaningful attributes.
Remove container elements in the document that have no children or meaningful attributes, excluding the `<svg>` element which is ignored.

A container, as defined in the [SVG specifications](https://www.w3.org/TR/SVG11/intro.html#TermContainerElement), is an SVG element that can have graphical child elements. Container elements include:

Expand All @@ -20,5 +20,3 @@ A container, as defined in the [SVG specifications](https://www.w3.org/TR/SVG11/
- [`<svg>`](https://developer.mozilla.org/docs/Web/SVG/Element/svg)
- [`<switch>`](https://developer.mozilla.org/docs/Web/SVG/Element/switch)
- [`<symbol>`](https://developer.mozilla.org/docs/Web/SVG/Element/symbol)

Despite the `<svg>` element being a container element, they are not ignored by this plugin.
2 changes: 1 addition & 1 deletion docs/03-plugins/removeXMLNS.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It's recommended to use this plugin if you intend to inline SVGs into an HTML do

:::tip

This plugin pairs well with the [removeXlink](/docs/plugins/removeXlink/) plugin. Remove XLink drops XLink namespaces and migrates references to them to the modern equivalent, supported by SVG 2 and inline an HTML document. When using this, it's recommended to enable Remove XLink too.
This plugin pairs well with the [removeXlink](/docs/plugins/removeXlink/) plugin, which drops XLink namespaces and migrates references the modern equivalent, supported by SVG 2 and inline an HTML document. When using removeXMLNS, it's recommended to enable removeXlink too.

:::

Expand Down