Skip to content
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

Svelte.dev suggestion: version switcher #11599

Open
rChaoz opened this issue May 13, 2024 · 1 comment
Open

Svelte.dev suggestion: version switcher #11599

rChaoz opened this issue May 13, 2024 · 1 comment

Comments

@rChaoz
Copy link
Contributor

rChaoz commented May 13, 2024

Describe the problem

Quite a few libraries are doing this. I think it would be great if there were a version switcher on the svelte.dev website, to allow changing between documentation for Svelte 4 and Svelte 5.
It would be especially useful for this update, where even for migration purposes many might benefit from access to the old docs. This would also allow for clean, new documentation and guide pages, 100% rune-focused, without having to worry that people will read Svelte 4 code and search in the docs for what they're seeing and not find it.

Describe the proposed solution

There are many existing methods and tools to implement this, but I think the best implementation would be something simple that doesn't affect the existing site architecture.

POC: #11602

Importance

would make my life easier

@rChaoz
Copy link
Contributor Author

rChaoz commented May 14, 2024

Update: I couldn't sleep so I implemented a version switcher real quick. It allows viewing the docs from the svelte-4 branch by simply appending ?version=v4 to the URL - check it out in the PR, which also contains an explanation on how it works.

The main idea is that I want some feedback on this feature, because if this would be welcomed, I'd like to properly implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant