docs: remove docusaurus-preset-name from preset doc (#5372)

* doc: docusaurus-preset-name does not exist and is confusing for some users

* doc: docusaurus-preset-name does not exist and is confusing for some users
This commit is contained in:
Sébastien Lorber 2021-08-17 19:38:35 +02:00 committed by GitHub
parent 8341527fc9
commit 589a59ba8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -10,7 +10,7 @@ Presets are collections of plugins and themes.
A preset is usually a npm package, so you install them like other npm packages using npm.
```bash npm2yarn
npm install --save docusaurus-preset-name
npm install --save @docusaurus/preset-classic
```
Then, add it in your site's `docusaurus.config.js`'s `presets` option:
@ -18,7 +18,7 @@ Then, add it in your site's `docusaurus.config.js`'s `presets` option:
```jsx {3} title="docusaurus.config.js"
module.exports = {
// ...
presets: ['@docusaurus/preset-xxxx'],
presets: ['@docusaurus/preset-classic'],
};
```

View file

@ -10,7 +10,7 @@ Presets are collections of plugins and themes.
A preset is usually a npm package, so you install them like other npm packages using npm.
```bash npm2yarn
npm install --save docusaurus-preset-name
npm install --save @docusaurus/preset-classic
```
Then, add it in your site's `docusaurus.config.js`'s `presets` option:
@ -18,7 +18,7 @@ Then, add it in your site's `docusaurus.config.js`'s `presets` option:
```jsx {3} title="docusaurus.config.js"
module.exports = {
// ...
presets: ['@docusaurus/preset-xxxx'],
presets: ['@docusaurus/preset-classic'],
};
```

View file

@ -10,7 +10,7 @@ Presets are collections of plugins and themes.
A preset is usually a npm package, so you install them like other npm packages using npm.
```bash npm2yarn
npm install --save docusaurus-preset-name
npm install --save @docusaurus/preset-classic
```
Then, add it in your site's `docusaurus.config.js`'s `presets` option:
@ -18,7 +18,7 @@ Then, add it in your site's `docusaurus.config.js`'s `presets` option:
```jsx {3} title="docusaurus.config.js"
module.exports = {
// ...
presets: ['@docusaurus/preset-xxxx'],
presets: ['@docusaurus/preset-classic'],
};
```