From 68217458d08a1d4f7bd1e1e780686da1d07e40f3 Mon Sep 17 00:00:00 2001 From: Jay <116917734+imjustablacknerd@users.noreply.github.com> Date: Wed, 31 Jan 2024 02:37:28 -0600 Subject: [PATCH] Update blog.mdx The current documentation says to add a routebasepath and set docs to false. This ends up with an error when starting the application. When removing the sidebar doc item it works as expected. --- website/docs/blog.mdx | 55 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/website/docs/blog.mdx b/website/docs/blog.mdx index 43a0c23a53d2..f603119737c1 100644 --- a/website/docs/blog.mdx +++ b/website/docs/blog.mdx @@ -618,6 +618,61 @@ export default { ], }; ``` +You will also need to remove the following: + +```js title="docusaurus.config.js" + themeConfig: + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ + ({ + // Replace with your project's social card + image: 'img/docusaurus-social-card.jpg', + navbar: { + title: 'My Site', + logo: { + alt: 'My Site Logo', + src: 'img/logo.svg', + }, + items: [ + { + type: 'docSidebar', + sidebarId: 'tutorialSidebar', + position: 'left', + label: 'Tutorial', + }, + {to: '/blog', label: 'Blog', position: 'left'}, + { + href: 'https://github.com/facebook/docusaurus', + label: 'GitHub', + position: 'right', + }, + ], + }, +``` +Removing the docSidebar item will allow the blog mode to work with no error. + +```js title="docusaurus.config.js" + themeConfig: + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ + ({ + // Replace with your project's social card + image: 'img/docusaurus-social-card.jpg', + navbar: { + title: 'My Site', + logo: { + alt: 'My Site Logo', + src: 'img/logo.svg', + }, + items: [ + {to: '/blog', label: 'Blog', position: 'left'}, + { + href: 'https://github.com/facebook/docusaurus', + label: 'GitHub', + position: 'right', + }, + ], + }, +``` + :::warning