Skip to content

feat(site): remove style from urls#378

Merged
decepulis merged 3 commits intomainfrom
chore/goodbye-style-urls
Feb 2, 2026
Merged

feat(site): remove style from urls#378
decepulis merged 3 commits intomainfrom
chore/goodbye-style-urls

Conversation

@decepulis
Copy link
Copy Markdown
Collaborator

closes #377

Summary

  • Remove style parameter from doc URLs (e.g., /docs/framework/html/style/css/... → /docs/framework/html/...)
  • Move style preference to localStorage per-framework (vjs_docs_style_html, vjs_docs_style_react)
  • Add StyleInit.astro to read localStorage before paint and set html[data-style] attribute
  • Use CSS [data-for-style] selectors for content visibility instead of server-side filtering

Test plan

  • Visit docs at /docs/framework/html/how-to/installation — page renders without style in URL
  • Toggle style selector — content updates instantly without navigation
  • Refresh page — style preference persists from localStorage
  • Switch frameworks — each framework remembers its own style preference
  • Old URLs with /style/ segment should 404 (no backwards-compat redirects)

🤖 Generated with https://claude.com/claude-code

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 2, 2026

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

Project Deployment Actions Updated (UTC)
vjs-10-demo-react Error Error Feb 2, 2026 9:48pm
vjs-10-website Error Error Feb 2, 2026 9:48pm

Request Review

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 2, 2026

Deploy Preview for vjs10 ready!

Name Link
🔨 Latest commit 13b7385
🔍 Latest deploy log https://app.netlify.com/projects/vjs10/deploys/69811b9b6a4ba9000806bc94
😎 Deploy Preview https://deploy-preview-378--vjs10.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@decepulis decepulis merged commit 0c53076 into main Feb 2, 2026
5 of 9 checks passed
@decepulis decepulis deleted the chore/goodbye-style-urls branch February 2, 2026 21:54
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.

Simply docs URL structure

1 participant