mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
docs: fix typo in docs-introduction (#9267)
This commit is contained in:
parent
9868babf75
commit
a145205848
1 changed files with 22 additions and 18 deletions
|
@ -47,16 +47,18 @@ Assume that you have the following in your configuration:
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// ...
|
// ...
|
||||||
presets: [
|
presets: [
|
||||||
'@docusaurus/preset-classic',
|
[
|
||||||
{
|
'@docusaurus/preset-classic',
|
||||||
docs: {
|
{
|
||||||
/* docs plugin options */
|
docs: {
|
||||||
|
/* docs plugin options */
|
||||||
|
},
|
||||||
|
blog: {
|
||||||
|
/* blog plugin options */
|
||||||
|
},
|
||||||
|
// ...
|
||||||
},
|
},
|
||||||
blog: {
|
],
|
||||||
/* blog plugin options */
|
|
||||||
},
|
|
||||||
// ...
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
@ -67,17 +69,19 @@ To enter docs-only mode, change it to like this:
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// ...
|
// ...
|
||||||
presets: [
|
presets: [
|
||||||
'@docusaurus/preset-classic',
|
[
|
||||||
{
|
'@docusaurus/preset-classic',
|
||||||
docs: {
|
{
|
||||||
|
docs: {
|
||||||
|
// highlight-next-line
|
||||||
|
routeBasePath: '/', // Serve the docs at the site's root
|
||||||
|
/* other docs plugin options */
|
||||||
|
},
|
||||||
// highlight-next-line
|
// highlight-next-line
|
||||||
routeBasePath: '/', // Serve the docs at the site's root
|
blog: false, // Optional: disable the blog plugin
|
||||||
/* other docs plugin options */
|
// ...
|
||||||
},
|
},
|
||||||
// highlight-next-line
|
],
|
||||||
blog: false, // Optional: disable the blog plugin
|
|
||||||
// ...
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue