website: remove svgo (#10315)
This commit is contained in:
1 parent
ca4a51dcd9
commit
7e8f746a4e
4 files changed
+1
-17
No files matched your search
@@ -34,8 +34,6 @@ Pages can be added to the site by putting `.js` files with React components in `
|
||||
|
||||
Images and other static assets are placed inside the `static` directory: `static/img/your-image.png` is mapped to `http://prettier.io/img/your-image.png`. Any `.css` files in `static/` are concatenated to the standard styles provided by Docusaurus and used site-wide.
|
||||
|
||||
Please run <code>yarn svgo _path/to/image.svg_</code> before committing a new SVG to the repository.
|
||||
|
||||
## Playground
|
||||
|
||||
The Playground is not integrated with the Docusaurus infrastructure. Its UI (`website/playground/`) is built separately with webpack configured to put the resulting bundle in Docusaurus’s `static` directory. The `yarn start` command (in `website/`) concurrently starts both Docusaurus’s local server and webpack in the watch mode for the Playground.
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
"scripts": {
|
||||
"build": "webpack && docusaurus-build",
|
||||
"start": "concurrently \"docusaurus-start\" \"webpack --mode=development --watch\"",
|
||||
"svgo": "svgo --pretty --indent=2 --config=svgo.yml",
|
||||
"svgo-all": "find static | grep '\\.svg$' | xargs -Iz -n 1 yarn svgo z",
|
||||
"update-stable-docs": "rm -rf ./versioned_docs ./versions.json && docusaurus-version stable"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -22,7 +20,6 @@
|
||||
"concurrently": "5.3.0",
|
||||
"docusaurus": "1.14.6",
|
||||
"js-yaml": "4.0.0",
|
||||
"svgo": "1.3.2",
|
||||
"webpack": "5.21.2",
|
||||
"webpack-cli": "4.5.0"
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
plugins:
|
||||
- cleanupIDs: true
|
||||
- collapseGroups: true
|
||||
- removeDesc: true
|
||||
- removeDimensions: true
|
||||
- removeScriptElement: true
|
||||
- removeStyleElement: true
|
||||
- removeTitle: true
|
||||
- removeUselessDefs: true
|
||||
- removeViewBox: false
|
||||
- sortAttrs: true
|
||||
+1
-1
@@ -6891,7 +6891,7 @@ supports-color@^7.1.0:
|
||||
dependencies:
|
||||
has-flag "^4.0.0"
|
||||
|
||||
svgo@1.3.2, svgo@^1.0.0, svgo@^1.0.5:
|
||||
svgo@^1.0.0, svgo@^1.0.5:
|
||||
version "1.3.2"
|
||||
resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.3.2.tgz#b6dc511c063346c9e415b81e43401145b96d4167"
|
||||
integrity sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw==
|
||||
|
||||
Reference in new issue
Block a user