Pro Boy
Pro Boy

Reputation: 83

Docusaurus: how to set a custom url for a doc?

I have this structure:
-Docs
---folder1
-----docA1
-----docA2
---folder2
-----docB1
Which means by default the URL of docA2 will be "/docs/folder1/docA2", how can I set it to a custom URL, for example "docs/the-doc-2"?

Upvotes: 1

Views: 507

Answers (1)

Pro Boy
Pro Boy

Reputation: 83

Put this in the top of the file:

---
slug: what-ever-url-you want
---

Upvotes: 2

Related Questions