Docs link broken for Docusaurus v2 project

Viewed 2416

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.

1 Answers

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.

Related