Reputation: 1699
I am building a documentation site using docusaurus (version 2). It gives a 404 on /docs
PAGE NOT FOUND error.
Links:
I am new to docusaurus, and I might have misconfigured my /docs
. Would appreciate help from the community.
Upvotes: 4
Views: 5381
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