Conversation
Contributor
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wpbs-website | 547beeb | Commit Preview URL Branch Preview URL |
Apr 13 2026, 04:01 PM |
Member
Author
|
TODO:
|
428b1cf to
bc2e305
Compare
Disable expensive blur
There was a problem hiding this comment.
Pull request overview
This PR introduces a basic Blog feature backed by MDX posts, adds routes/pages to list and render posts, and updates build tooling/config to support MDX + prerendering.
Changes:
- Add MDX tooling (Vite MDX plugin + mdx-bundler) and Tailwind typography support.
- Add blog routes (
/blog,/blog/:slug), prerender configuration, and MDX post loading/parsing utilities. - Add an initial sample post (
posts/hello.mdx) and minor UI/meta updates (NavBar link, OG tags, styling tweaks).
Reviewed changes
Copilot reviewed 15 out of 18 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
vite.config.ts |
Adds MDX processing via @mdx-js/rollup with frontmatter + pretty-code plugins. |
react-router.config.ts |
Adds prerender paths for blog index + individual posts. |
app/lib/mdx-server.ts |
Implements MDX bundling, frontmatter validation, synopsis extraction, and slug discovery. |
app/routes.ts |
Registers blog routes under a /blog prefix. |
app/routes/blog/home.tsx |
Blog index route: loads posts and renders a list view. |
app/routes/blog/$slug.tsx |
Blog post route: loads a post by slug and renders MDX output. |
app/lib/format-date.ts |
Adds a shared Intl.DateTimeFormat instance for post dates. |
posts/hello.mdx |
Adds a sample MDX post with frontmatter and content. |
app/components/NavBar.tsx |
Adds a “Blog” nav link and scroll-based styling behavior. |
app/routes/home.tsx |
Updates OG meta tags and adjusts hero layout styling. |
app/components/ui/card.tsx |
Tweaks card background styling. |
app/app.css |
Enables Tailwind typography plugin. |
.vscode/settings.json |
Adds MDX to the formatter language list. |
.vscode/extensions.json |
Recommends the VS Code MDX extension. |
package.json / pnpm-lock.yaml |
Adds MDX/blog-related dependencies and updates lockfile. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 15 out of 18 changed files in this pull request and generated 8 comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Use relative paths for components - Run getComponentFiles once and cache - Clean up mdx and rename to mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.