From a145205848a461b4c69cd5f3277dd9f05ad26052 Mon Sep 17 00:00:00 2001 From: Coupy Date: Thu, 31 Aug 2023 19:28:23 +0900 Subject: [PATCH] docs: fix typo in docs-introduction (#9267) --- .../docs/guides/docs/docs-introduction.mdx | 40 ++++++++++--------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/website/docs/guides/docs/docs-introduction.mdx b/website/docs/guides/docs/docs-introduction.mdx index 250342e26b80..42b756a9f09f 100644 --- a/website/docs/guides/docs/docs-introduction.mdx +++ b/website/docs/guides/docs/docs-introduction.mdx @@ -47,16 +47,18 @@ Assume that you have the following in your configuration: module.exports = { // ... presets: [ - '@docusaurus/preset-classic', - { - docs: { - /* docs plugin options */ + [ + '@docusaurus/preset-classic', + { + 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 = { // ... presets: [ - '@docusaurus/preset-classic', - { - docs: { + [ + '@docusaurus/preset-classic', + { + docs: { + // highlight-next-line + routeBasePath: '/', // Serve the docs at the site's root + /* other docs plugin options */ + }, // highlight-next-line - routeBasePath: '/', // Serve the docs at the site's root - /* other docs plugin options */ + blog: false, // Optional: disable the blog plugin + // ... }, - // highlight-next-line - blog: false, // Optional: disable the blog plugin - // ... - }, + ], ], }; ```