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

feat: shorter docs URLs #73

Merged
merged 3 commits into from
Sep 4, 2024
Merged

feat: shorter docs URLs #73

merged 3 commits into from
Sep 4, 2024

Conversation

dummdidumm
Copy link
Member

@dummdidumm dummdidumm commented Sep 3, 2024

Removes the section part from the slugs.

This is a bit more code and duplication than I'd like, but the alternative would be to mess with the logic inside site-kit/src/lib/server/content/index.ts and special-case docs, which felt too hacky. Update: I adjusted the structure to fit the use cases better, which justifies this approach further.
This approach is also more future proof if we decide to adjust the structure more to our liking.

Fixes #62

Removes the section part from the slugs

Fixes #62
Copy link

vercel bot commented Sep 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
omnisite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 4, 2024 8:19am

@dummdidumm dummdidumm merged commit bd4cd06 into main Sep 4, 2024
3 checks passed
@dummdidumm dummdidumm deleted the shorter-urls branch September 4, 2024 08:40
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.

URLs have too many segments
1 participant