Commit Graph

9 Commits

Author SHA1 Message Date
javayhu
0929d93342 chore: enhance MDX component fix copy button and localization updates
- Add __rawString__ property to MDX component for improved code handling.
- Refactor pre element to extract code content dynamically and support copy functionality.
- Update login translation in English to "Log in" for consistency.
2025-03-15 11:27:07 +08:00
javayhu
805a871146 feat: enhance MDX rendering with code copy functionality
- Add code copy button to code blocks with internationalized label
- Modify MDX component to support raw code string extraction
- Update content collections to inject raw code string into pre elements
- Improve code block styling and add hover-based copy button
- Remove unnecessary prose wrapper from various components
- Enhance code block presentation with better overflow and border handling
2025-03-11 00:33:14 +08:00
javayhu
bc4b5527eb feat: add changelog page with localized release notes
- Implement releases collection in content-collections.ts for tracking version updates
- Create changelog page with dynamic release rendering for multiple locales
- Add ReleaseCard component to display version details and changes
- Implement getReleases utility function to fetch and sort release notes
- Update internationalization messages for changelog page
- Add English and Chinese release notes for v1.0.0, v1.1.0, and v1.2.0
2025-03-09 14:42:04 +08:00
javayhu
9bd85d7b6f feat: add legal pages with content collections and localization support
- Implement pages collection in content-collections.ts for legal documents
- Add cookie policy, privacy policy, and terms of service pages for English and Chinese locales
- Create custom page layout and component for rendering legal documents
- Add metadata generation and custom page fetching logic
- Update not-found page to use LocaleLink for internationalization
- Enhance blog post page with prose styling
- Modify all posts button variant
2025-03-09 12:22:53 +08:00
javayhu
cb418af07c refactor: remove base URL generation and remote image patterns
- Remove `getBaseUrl()` usage in content collections
- Update base URL environment variable from `NEXT_PUBLIC_APP_URL` to `NEXT_PUBLIC_BASE_URL`
- Remove localhost remote image pattern from Next.js configuration
- Add cursor pointer to locale selector items
2025-03-07 10:43:05 +08:00
javayhu
11e1df01ed feat: improve multilingual blog content handling and documentation
- Enhance content collections to support cross-language content matching
- Update blog post categories from "guide" to "product"
- Add documentation for multilingual blog implementation
- Modify category and blog post pages to handle localized content
- Update locale routing with more detailed language information
- Improve content relationship resolution in content collections
2025-03-07 00:54:15 +08:00
javayhu
43d9c798b5 refactor: enhance content collections with multilingual support
- Update content collections to support locale-based content filtering
- Modify blog post, author, and category schemas to include optional locale
- Implement dynamic locale detection from file path or fallback to default locale
- Update blog components to filter posts by current locale
- Remove sample blog posts and categories from default content
2025-03-05 02:03:53 +08:00
javayhu
ddf2c49312 feat: optimize blog list and blog post page 2025-02-22 16:52:36 +08:00
javayhu
f3c844b426 feat: support blog module (v1) 2025-02-20 00:33:50 +08:00