refactor(terminology): replace user-facing "blog" → "post" across docs and packages#28
refactor(terminology): replace user-facing "blog" → "post" across docs and packages#28haroonwaves wants to merge 2 commits intomainfrom
Conversation
Deploying blog-kit with
|
| Latest commit: |
2e8f8c2
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f208a947.blog-kit.pages.dev |
| Branch Preview URL: | https://codex-replace-all-blog-refer.blog-kit.pages.dev |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e0f312a1f4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| import { getAllBlogsMeta as getAllPostsMeta, getBlog as getPost } from '@haroonwaves/blog-kit-core'; | ||
| import { BlogRenderer as PostRenderer } from '@haroonwaves/blog-kit-react'; |
There was a problem hiding this comment.
Import renamed Post APIs directly in docs pages
This file still imports getAllBlogsMeta, getBlog, and BlogRenderer (aliased to Post names), but the same commit removes those Blog-prefixed exports from packages/blog-kit-core/src/parser.ts and packages/blog-kit-react/src/index.ts; as soon as the app resolves to the updated package version (the dependency ranges are caret-based), these imports become missing exports and the docs build fails. Switching these imports to getAllPostsMeta, getPost, and PostRenderer avoids that version-skew breakage.
Useful? React with 👍 / 👎.
Motivation
Post*types and components when integrating the library.Description
app/content/*,README.md, etc.) from "blog" to "post" and updated examples to usepostpaths and config keys likepostSubdirectory.BlogMeta→PostMeta,Blog→Post,BlogConfig→PostConfig,extractBlogMeta→extractPostMeta,extractBlog→extractPost,getAllBlogsMeta→getAllPostsMeta, andgetBlog→getPostinpackages/blog-kit-core.Post*(BlogRenderer→PostRenderer,BlogCard→PostCard,BlogList→PostList,BlogPlaceholder→PostPlaceholder,useBlogs→usePosts) and updatedpackages/blog-kit-react/src/index.tsexports accordingly.blogSubdirectory→blogSubdirectory/postSubdirectoryusage in calls) and fixed related type errors so the monorepo type-checks cleanly; branding (blog-kit, package names) was intentionally preserved.Testing
pnpm type-check(workspace) and it completed successfully with no TypeScript errors.pnpm format:checkand Prettier reported all matched files use the configured code style.Codex Task