-
-
Notifications
You must be signed in to change notification settings - Fork 187
fix: change github icon to link to gh organization #1525
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
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you deduplicate the logic into a function? Otherwise good to go 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing this based on the route rather than on the URL feels better to me, if that would be practical. Could we look at page.params.topic
? We might then also need a separate check for page.route.id === '/docs/kit/modules'
.
Separately, would we want the GH nav link to also switch to the kit
repo while on Kit pages of the tutorial? I'm not sure.
Another way to do this would be to have the GH repo to link to be exposed in page data on individual pages. That would let each section of the docs make its own local decision about this, rather than needing to include everything in one place.
Alternatively we could make it a dropdown? Might sound like overkill but it'd definitely be clearer |
After a discussion we decided to change the GitHub icon to link to the organization. |
* feat: relative github links * make it work with tutorials, dedupe logic * lint * more * link to org
This changes the GitHub icon in the navbar to link to the Svelte GitHub organization.
Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.