Skip to content

Conversation

Ocean-OS
Copy link
Member

@Ocean-OS Ocean-OS commented Sep 6, 2025

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

  • It's really useful if your PR references an issue where it is discussed ahead of time.
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.

Copy link

vercel bot commented Sep 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
svelte-dev Ready Ready Preview Sep 9, 2025 0:48am

Copy link
Member

@dummdidumm dummdidumm left a 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 👍

Copy link
Member

@Conduitry Conduitry left a 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.

@Rich-Harris
Copy link
Member

Alternatively we could make it a dropdown? Might sound like overkill but it'd definitely be clearer

@Ocean-OS
Copy link
Member Author

Ocean-OS commented Sep 9, 2025

After a discussion we decided to change the GitHub icon to link to the organization.

@Ocean-OS Ocean-OS changed the title feat: relative github links fix: change github icon to link to gh organization Sep 9, 2025
@teemingc teemingc merged commit a2f28ba into main Sep 9, 2025
2 checks passed
@teemingc teemingc deleted the relative-github-links branch September 9, 2025 01:15
7nik pushed a commit to 7nik/svelte.dev that referenced this pull request Sep 18, 2025
* feat: relative github links

* make it work with tutorials, dedupe logic

* lint

* more

* link to org
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

Successfully merging this pull request may close these issues.

5 participants