Ayman Arif
Ayman Arif

Reputation: 1699

Docs link broken for Docusaurus v2 project

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.

Upvotes: 4

Views: 5381

Answers (1)

russt
russt

Reputation: 1688

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.

Upvotes: 4

Related Questions