0

I've been configuring a local site I built via Docusaurus, and I can't get to show the About page. I made sure the links are correct, but I keep on getting an error. I feel like I just overlooked something very simple, but I honestly don't know much about this.

Here's the local site saying "Page not found"

Here's where the about file is located inside the folder

Here's the error I got in the terminal

Thank you so much!

1 Answers1

0

I am adapting this answer to try to help you.

1. Move your about.md file to the docs folder.

This way, it will compile correctly.

2. In your docusaurus.config.js, modify to look similar to this. This will put a link in the navbar to the page about.md.

(module.exports = { // start of the module.export declaration
[…]

navbar: {
  hideOnScroll: true,
  title: 'your title',
  logo: {
    alt: '',
    src: 'img/favicon.ico',
  },
  items: [
    {
      to: '/docs/Intro',    // ./docs/Intro.md
      label: 'Portifolio',
      position: 'left',
      activeBaseRegex: `/docs/`,
    },
    {
      to: '/docs/about',    // ./docs/about.md
      label: 'About me',
      position: 'left',
      activeBaseRegex: `/docs/about`,
    },
  ],
},

[…]
}); // end of the module-export declaration
D.Kastier
  • 2,640
  • 3
  • 25
  • 40