Skip to content

Commit

Permalink
Update blog.mdx
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jcode116 authored Jan 31, 2024
1 parent 48cab8e commit 6821745
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions website/docs/blog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6821745

Please sign in to comment.