-
Notifications
You must be signed in to change notification settings - Fork 433
Refactor content schemas, docs structure, and blog OG generation #1884
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
ComputelessComputer
commented
Nov 25, 2025
- Updated content collection schemas and slug generation
- Added section metadata to documentation files
- Enhanced blog Open Graph schema with author and date
- Improved documentation routing and structure
- Styled legal pages with enhanced layout
- Implemented dynamic OG image generation for blog posts
✅ Deploy Preview for hyprnote-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for hyprnote ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe changes reorganize the documentation structure by introducing a Changes
Sequence DiagramsequenceDiagram
participant User
participant Router as Docs Router
participant Loader as Slug Resolver
participant Docs as Docs Collection
participant Redirect as Redirect Handler
User->>Router: Request /docs/something
Router->>Loader: Load doc with slug "something"
Loader->>Docs: Find doc by slug
alt Doc found
Docs-->>Loader: Return doc
Loader-->>Router: Return doc data
Router->>Router: Render doc content + OG image
Router-->>User: Display doc
else Doc not found (try slug/index)
Loader->>Docs: Find doc by slug/index
alt Doc/index found
Docs-->>Loader: Return doc
Loader-->>Router: Return doc data
Router-->>User: Display doc
else Neither found (check section)
Loader->>Docs: Extract section from first path segment
Loader->>Docs: Find first doc in section
alt Docs exist in section
Docs-->>Loader: Return first doc
Loader->>Redirect: Issue redirect to /docs/{section}/{slug}
Redirect-->>User: Redirect response
else No docs in section
Loader-->>Router: 404 Not Found
Router-->>User: 404 page
end
end
end
sequenceDiagram
participant Blog as Blog Article
participant Route as Blog Route
participant OG as OG Edge Function
participant Browser as Browser
Blog->>Route: Article with title, author, date, coverImage
Route->>Route: Compute ogImage from coverImage or generate URL
Route->>Route: Build ogImage URL: /og?type=blog&title=...&author=...&date=...
Route->>Browser: Render meta tags with og:image, twitter:image
Browser->>OG: Request OG image via URL
OG->>OG: parseSearchParams extracts author, date
OG->>OG: getAuthorAvatar resolves author → avatar URL
OG->>OG: renderBlogTemplate renders with author avatar + date
OG-->>Browser: Return OG image PNG/SVG
Browser->>Browser: Display shared link preview with author & date
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested reviewers
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (25)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Comment |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|