diff --git a/website/README.md b/website/README.md index 53d5a2778..1be538cad 100644 --- a/website/README.md +++ b/website/README.md @@ -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 yarn svgo _path/to/image.svg_ 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. diff --git a/website/package.json b/website/package.json index f8e7bbf67..875383f4a 100644 --- a/website/package.json +++ b/website/package.json @@ -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" } diff --git a/website/svgo.yml b/website/svgo.yml deleted file mode 100644 index 78481ddb2..000000000 --- a/website/svgo.yml +++ /dev/null @@ -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 diff --git a/website/yarn.lock b/website/yarn.lock index 1e628b8af..9297b224f 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -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==