Skip to content

How to Add /docs to URL Without Creating a Nested Folder in Starlight Docs? #2447

Answered by delucis
temiye18 asked this question in Q&A
Discussion options

You must be logged in to vote

That is not currently supported. A nested docs/ directory is the recommended approach at the moment as documented in https://starlight.astro.build/manual-setup/#use-starlight-at-a-subpath

It is possible to manually set a slug in a page’s frontmatter, e.g.:

---
title: My page
slug: docs/page
---

But that’s obviously not really a great approach at scale.

There’s some more discussion of ideas to improve this here: #966

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by temiye18
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants