-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Top level site structure #3
Comments
Not sure about changing the top-level nav. As well as being a bit confusing, it'd be a nightmare to keep it looking sensible across different screen sizes, especially once we add other languages (i.e. we'd forget to check that the nav looks sensible on the Hungarian version of Do we expect to have package-specific pages other than docs? If not then I might propose reversing things (i.e. Maybe For docs, do we want to keep the existing |
If we don't have something in the nav bar, how do we go about switching between top levels then? To be clear my proposal is to have less things on the right but one new thing on the left. The appeal of |
Minor detail but is it weird to have |
https://turbo.build/ has a overview landing page pointing to more in-depth landing pages. Assuming we want that, too, then we need Regarding secondary nav: if we want landing pages, where would those be available from the navigation then? Does a landing page mean you always have that second nav ( |
I think the package name itself could link to the landing page — it's probably enough that the docs would be clearly signposted from there, without any need for a secondary nav |
One consequence of
...and this, where the doc pages are duplicated: eslint
docs
[section]
[slug]
+page
playground
+page
kit
docs
[section]
[slug]
+page
+page
svelte
docs
[section]
[slug]
+page
+page Even if the How about this alternative: we have landing pages like |
This also depends a bit on whether or not we think that docs will actually look exactly the same between all packages. Code duplication doesn't worry me because we can put it in lib or sth and just import the component/load function in each file. Whether or not it makes sense from a "looking at the URL" perspective is not that big of a deal for me - there are pros and cons for each variant and I don't see a clear winner. We could also turn it around and make Documentation a real top level entry, from which you can navigate to the different packages you're interested in, similar to how https://vercel.com/docs or https://docs.solidjs.com/ do it. That means we only have a single landing page though (we could have mini-landing pages in the docs). That would also resolve the " Another thought: How do we do versioning? Ideally we'd have something like |
I think the current structure is working pretty well, so I'll close this |
We gotta decide a bit on how to structure the site at the top level, also taking into account landing pages. I'd like to keep the landing pages for both Svelte and Kit. They both give a nice overview of the things and help you get a grasp of this if you have no idea what Svelte(Kit) is yet.
I like what the Turbo docs do: They have a brief entry-landing page with links to landing pages of Turborepo and Turbopack: https://turbo.build/
Considering that, we would have
svelte.dev
-> entrysvelte.dev/svelte
-> Svelte landing pagesvelte.dev/svelte/docs
-> Svelte docssvelte.dev/kit
-> SvelteKit landing pagesvelte.dev/kit/docs
-> SvelteKit docssvelte.dev/tutorial
-> what's currently on learn.svelte.devsvelte.dev/blog
-> blogRough sketch:
The text was updated successfully, but these errors were encountered: