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

chore(docs): update website #1022

Merged
merged 3 commits into from May 5, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions .all-contributorsrc
Expand Up @@ -35,7 +35,7 @@
"login": "pgilad",
"name": "Gilad Peleg",
"avatar_url": "https://avatars.githubusercontent.com/u/4533329?v=3",
"profile": "http://www.giladpeleg.com/",
"profile": "https://www.giladpeleg.com/",
"contributions": [
"code"
]
Expand Down Expand Up @@ -133,7 +133,7 @@
"login": "yisibl",
"name": "一丝",
"avatar_url": "https://avatars.githubusercontent.com/u/2784308?v=3",
"profile": "www.iyunlu.com/view",
"profile": "https://www.iyunlu.com/view",
"contributions": [
"code",
"test"
Expand Down Expand Up @@ -192,7 +192,7 @@
"login": "jxom",
"name": "Jake Moxey",
"avatar_url": "https://avatars.githubusercontent.com/u/7336481?v=3",
"profile": "jakemoxey.com",
"profile": "https://jakemoxey.com",
"contributions": [
"code"
]
Expand Down Expand Up @@ -281,7 +281,7 @@
"login": "duncanbeevers",
"name": "Duncan Beevers",
"avatar_url": "https://avatars.githubusercontent.com/u/7367?v=3",
"profile": "http://www.duncanbeevers.com",
"profile": "https://www.duncanbeevers.com",
"contributions": [
"code",
"test"
Expand Down Expand Up @@ -376,7 +376,7 @@
"login": "marek-saji",
"name": "Marek ‘saji’ Augustynowicz",
"avatar_url": "https://avatars.githubusercontent.com/u/192323?v=3",
"profile": "http://twitter.com/saji_",
"profile": "https://twitter.com/saji_",
"contributions": [
"code",
"test"
Expand All @@ -386,7 +386,7 @@
"login": "jgerigmeyer",
"name": "Jonny Gerig Meyer",
"avatar_url": "https://avatars.githubusercontent.com/u/552316?v=3",
"profile": "www.oddbird.net",
"profile": "https://www.oddbird.net",
"contributions": [
"code",
"test"
Expand All @@ -406,7 +406,7 @@
"login": "callmevlad",
"name": "Vlad Magdalin",
"avatar_url": "https://avatars.githubusercontent.com/u/785166?v=3",
"profile": "www.webflow.com",
"profile": "https://www.webflow.com",
"contributions": [
"doc"
]
Expand Down Expand Up @@ -616,7 +616,7 @@
"login": "ludofischer",
"name": "Ludovico Fischer",
"avatar_url": "https://avatars1.githubusercontent.com/u/43557?v=4",
"profile": "http://www.ludofischer.com",
"profile": "https://www.ludofischer.com",
"contributions": [
"maintenance"
]
Expand Down
1 change: 1 addition & 0 deletions .remarkrc.js
Expand Up @@ -25,4 +25,5 @@ exports.plugins = [
[require('remark-heading-gap'), {}],
[require('remark-bookmarks'), { bookmarks }],
[require('remark-frontmatter')],
[require('remark-gfm')],
];
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Expand Up @@ -47,7 +47,7 @@ To help us generate the changelog, follow the [conventional commits](https://www
### Documentation

The documentation website is also included with the repository, under `/site`.
It runs [phenomic](https://phenomic.io) and requires a separate `yarn install`
It runs [docusaurus](https://docusaurus.io) and requires a separate `yarn install`
to pull down the dependencies. You can then browse the documentation locally
by running `yarn start`.

Expand Down Expand Up @@ -126,7 +126,7 @@ If you don't have time to contribute to the project directly, you can also
help us out by starring the repository, or [follow us on Twitter][twitter].
Word of mouth really does mean a lot to us!

You can also [help support us financially](/support-us/).
You can also [help support us financially](/docs/support-us/).


[chat]: https://gitter.im/postcss/postcss
Expand Down
100 changes: 89 additions & 11 deletions CONTRIBUTORS.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -29,10 +29,10 @@ gradient parameters for a smaller output value! In addition, where it's made
sense for a transform, we've added [Browserslist](https://github.com/ai/browserslist)
to provide different output depending on the browsers that you support.

For further details check out the [website](http://cssnano.co/):
For further details check out the [website](https://cssnano.co/):

- [Installation guide for your build process](http://cssnano.co/docs/getting-started).
- [Full list of optimisations](http://cssnano.co/docs/optimisations/).
- [Installation guide for your build process](https://cssnano.co/docs/getting-started).
- [Full list of optimisations](https://cssnano.co/docs/optimisations/).

You can now [try cssnano online](https://cssnano.co/playground/)!

Expand Down Expand Up @@ -68,4 +68,4 @@ Support this project by becoming a sponsor. Your logo will show up here with a l

## License

MIT © [Ben Briggs](http://beneb.info)
MIT © [Ben Briggs](https://beneb.info)
29 changes: 15 additions & 14 deletions package.json
Expand Up @@ -8,7 +8,7 @@
"postinstall": "lerna bootstrap",
"build:packages": "babel-node ./util/buildPackages.js",
"build:metadata": "babel-node ./util/buildMetadata.js",
"build:site": "remark site/docs/**/*.md -o && yarn build:metadata && babel-node ./util/buildSiteMarkdown.js && cd site && yarn build",
"build:docs": "remark site/docs/**/*.md -o && yarn build:metadata && babel-node ./util/buildSiteMarkdown.js",
"build:integration": "cross-env BABEL_ENV=test babel-node ./util/buildFrameworks.js",
"pretest": "yarn lint",
"test:only": "cross-env BABEL_ENV=test jest",
Expand All @@ -25,12 +25,12 @@
"@babel/core": "^7.14.0",
"@babel/node": "^7.13.13",
"@babel/preset-env": "^7.14.0",
"all-contributors-cli": "^5.11.0",
"all-contributors-cli": "^6.20.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^26.6.3",
"babel-plugin-add-module-exports": "^1.0.2",
"browserslist": "^4.16.0",
"camelcase": "^5.3.1",
"camelcase": "^6.2.0",
"chalk": "^4.1.0",
"cross-env": "^7.0.3",
"css-color-names": "^1.0.1",
Expand All @@ -43,7 +43,7 @@
"eslint-plugin-react": "^7.21.4",
"fs-extra": "^8.0.1",
"get-pkg-repo": "^4.1.0",
"gh-pages": "^1.2.0",
"gh-pages": "^3.1.0",
"glob": "^7.1.4",
"got": "^11.8.1",
"html2plaintext": "^2.1.2",
Expand All @@ -59,21 +59,22 @@
"postcss-simple-vars": "^6.0.1",
"postcss-value-parser": "^4.1.0",
"prettier": "^2.2.1",
"remark": "^10.0.1",
"remark": "^13.0.0",
"remark-behead": "^2.2.1",
"remark-bookmarks": "^2.1.0",
"remark-cli": "^6.0.1",
"remark-frontmatter": "^1.3.1",
"remark-github": "^7.0.6",
"remark-heading-gap": "^3.1.0",
"remark-html": "^9.0.0",
"remark-bookmarks": "^3.0.0",
"remark-cli": "^9.0.0",
"remark-frontmatter": "^3.0.0",
"remark-gfm": "^1.0.0",
"remark-github": "^10.0.1",
"remark-heading-gap": "^4.0.0",
"remark-html": "^13.0.1",
"remark-license": "^5.0.1",
"remark-toc": "^5.1.1",
"remark-toc": "^7.2.0",
"stringify-object": "^3.3.0",
"toml": "^3.0.0",
"tomlify-j0.4": "^3.0.0",
"unist-builder": "^1.0.4",
"unist-util-remove": "^1.0.2",
"unist-builder": "^2.0.3",
"unist-util-remove": "^2.1.0",
"write-file": "^1.0.0"
},
"browserslist": {
Expand Down
11 changes: 0 additions & 11 deletions site/blog/2019-05-28-hola.md

This file was deleted.

17 changes: 0 additions & 17 deletions site/blog/2019-05-29-hello-world.md

This file was deleted.

13 changes: 0 additions & 13 deletions site/blog/2019-05-30-welcome.md

This file was deleted.

@@ -1,23 +1,28 @@
---
slug: cssnano-5-release-notes
title: cssnano 5 release
title: cssnano 5 is available
author: Ludovico Fischer
---

We have released a new version of cssnano.
We have released a new major version of cssnano.

## Major changes
## Major changes in cssnano 5

* requires Node >= 10.13
* cssnano 5 requires Node.js >= 10.13
* PostCSS 8 API, so cssnano 5 does not emit warnings when running under PostCSS 8
* updated to SVGO 2, fixing many SVG minification bugs
* updated css-value-parser and css-selector-parser, fixing many bugs
* updates to SVGO 2, fixing many SVG minification bugs
* updates css-value-parser and css-selector-parser, fixing many bugs

### Upgrade notes
If you use the cssnano JavaScript API, you need to change your code:
## How to Upgrade
### Update the PostCSS dependency
Add `postcss` to your `package.json` `dependencies` field, if your package manager does not install peer dependencies automatically.

* Replace `cssnano.process()` with `cssnano().process()` (notice the `()` after `cssnano`)
### JavaScript API changes
If you use the cssnano JavaScript API, change your code:

* cssnano specific options go into the options go to cssnano instead of process
* replace `cssnano.process()` with `cssnano().process()` (notice the `()` after `cssnano`)

* pass cssnano options to `cssnano()` instead of `process()`

```
cssnano(cssnanoOptions).process(postcssOptions)
Expand Down