Commit Graph

19 Commits

Author SHA1 Message Date
javayhu
a3444c334a chore: optimize content collections remove logs 2025-04-01 01:45:05 +08:00
javayhu
cd73bf8282 feat: add locale extraction helper and new blog documentation
- Introduced `extractLocaleAndBase` function to streamline locale and base name extraction from filenames.
- Added new blog documentation files covering comparisons, internationalization, manual installation, and markdown usage in both English and Chinese.
- Removed outdated author and blog content files to enhance content organization and clarity.
- Updated `content-collections.ts` to utilize the new locale extraction function for improved file handling.
2025-04-01 01:43:51 +08:00
javayhu
fe1159a8f5 refactor: change blog content file structure to docs content file structure
- Introduced `cleanup-old-content.js` for backing up and cleaning up old content directories.
- Added `migrate-content.js` to facilitate the migration of content types across locales.
- Created new author and blog content files in both English and Chinese, enhancing the content structure.
- Updated `content-collections.ts` to reflect new slug formats for authors.
- Added new category files for better content organization.
- Included privacy, cookie, and terms of service pages in both languages.
- Implemented initial release notes for versioning.
2025-03-31 23:50:27 +08:00
javayhu
16aaf55a91 refactor: enhance documentation feature and update dependencies
- Updated content collections to include new schemas for better document handling.
- Added new documentation files for comparisons, customization, and internationalization.
- Introduced a manual installation guide and improved markdown support.
- Updated package.json with new dependencies for enhanced functionality.
- Added new images for documentation and improved layout components for better user experience.
- Adjusted TypeScript configurations for better path management.
2025-03-30 22:34:16 +08:00
javayhu
5636a917ef refactor: enhance content collections and update localization
- Modified the meta collection to include files with 'meta**.json' for improved matching.
- Added new translation keys for 'blog' in English and Chinese localization files.
- Updated social links in the layout to use the XTwitterIcon for consistency.
- Adjusted image paths in the features page for better organization.
- Removed unused LocaleSwitcher import from the footer component.
2025-03-30 21:10:47 +08:00
javayhu
516cd70bba fix: update reading time display and enhance localization
- Changed the comment for average reading speed in content-collections.ts for clarity.
- Added a new translation key for reading time in English and Chinese localization files.
- Updated the BlogPostPage to utilize the new translation key for displaying estimated reading time, improving user experience and localization support.
2025-03-30 14:09:34 +08:00
javayhu
08fee6d1ec refactor: streamline MDX handling and enhance content collections
- Replaced the custom Mdx component with MDXContent from @content-collections/mdx/react for improved MDX processing.
- Updated content handling in various legal and blog pages to directly use the transformed body from content collections.
- Introduced estimated reading time calculation in the posts collection for better user experience.
- Added a new mdx.css file for consistent styling across MDX components.
- Removed the obsolete shared mdx-component file to reduce redundancy.
2025-03-30 13:27:30 +08:00
javayhu
83f5760126 feat: enhance documentation and internationalization support
- Updated content-collections.ts to clarify usage for Fumadocs.
- Added new ISSUES.md file to track known issues.
- Introduced @orama/orama and @orama/tokenizers dependencies in package.json for improved search functionality.
- Enhanced search API route to support internationalization and custom tokenizers for Chinese.
- Added new introduction and documentation files in both English and Chinese.
- Removed outdated test.mdx file to streamline documentation.
- Improved error handling and metadata generation in page.tsx for better user experience.
2025-03-29 14:30:29 +08:00
javayhu
c15980b32a feat: update documentation and enhance internationalization support
- Updated documentation links in content-collections.ts for accuracy.
- Modified index.mdx and test.mdx files to improve content structure and clarity.
- Added new Chinese documentation file (index.zh.mdx) to support localization.
- Enhanced layout.tsx to include translations for English and Chinese.
- Updated page.tsx to handle locale parameters for improved routing.
- Refactored source.ts to streamline imports and maintain consistency.
2025-03-29 12:32:25 +08:00
javayhu
45d46082f2 feat: add documentation structure and enhance content collections
- Introduced new content collections for documentation and metadata using Fumadocs.
- Created initial documentation files and layout for the docs section.
- Updated routing and middleware to support the new docs structure.
- Enhanced localization support by adding new entries for documentation in English and Chinese.
- Implemented a new API route for search functionality within the documentation.
2025-03-27 00:09:13 +08:00
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