svelteness / kit-docs

Documentation integration for SvelteKit.
https://kitdocs.vercel.app
MIT License
472 stars 33 forks source link

Allow for usage of (group) advanced routing #86

Open HighPriest opened 1 year ago

HighPriest commented 1 year ago

My use case is to get different layouts, without nesting pages: e.g. this can give me docs/ in water layout and docs/admin in fire layout

docs/(water)/+page.md
docs/(water)/+layout.svelte
docs/(fire)/+layout.svelte
docs/(fire)/admin/+page.md

Currently, if we use this type of routing, I have noticed at least the nav-side-bar contents and links get broken, but probably some other things will too.

CaptainCodeman commented 1 year ago

I've looked at the same thing, to allow hosting examples in iframes (so an empty root layout, with the layout for docs within a (docs) group). Haven't got to the stage of making it work yet.