4

I am building a documentation site using docusaurus (version 2). It gives a 404 on /docs PAGE NOT FOUND error.

Links:

  1. My Github Project
  2. Netlify hosted site

I am new to docusaurus, and I might have misconfigured my /docs. Would appreciate help from the community.

Ayman Arif
  • 1,456
  • 3
  • 16
  • 40

1 Answers1

4

You'll need to override the slug in the frontmatter on your 'home' docs page to be /.

For example, if you wanted your CleanCode.md document to become your 'home' page, accessible at /docs, then you'd add the following to its frontmatter at the top of the Markdown:

slug: /

The Docusaurus v2 docs explain more.

russt
  • 1,548
  • 2
  • 14
  • 16