docs: make upgrade guide always show the latest version (#6336)

This commit is contained in:
Joshua Chen 2022-01-14 10:42:48 +08:00 committed by GitHub
parent 4ebb1ca8c8
commit ddfd154ad6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 102 additions and 36 deletions

View file

@ -149,19 +149,9 @@ and contents will be generated within the `/build` directory, which can be copie
There are many ways to update your Docusaurus version. One guaranteed way is to manually change the version number in `package.json` to the desired version. Note that all `@docusaurus/`-namespaced packages should be using the same version.
:::important
import UpgradeGuide from '@site/src/components/UpgradeGuide';
Please update to the latest Docusaurus 2 version shown at the top of the page, not what is shown below.
:::
```json title="package.json"
"dependencies": {
"@docusaurus/core": "^2.0.0-beta.0",
"@docusaurus/preset-classic": "^2.0.0-beta.0",
// ...
}
```
<UpgradeGuide />
Then, in the directory containing `package.json`, run your package manager's install command: