d2m#1518
Conversation
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: marchantweb <simon@marchantweb.com> Co-authored-by: mdong1909 <mdong1909@users.noreply.github.com> Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Co-authored-by: Michael Dong <220303712+mdong1909@users.noreply.github.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
docs: update content
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ 7f01a8e
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR migrates the Vite documentation from a custom VitePress theme to @voidzero-dev/vitepress-theme, modernizing the codebase and consolidating styles into a shared theme package.
Changes:
- Migrated to
@voidzero-dev/vitepress-themev4.0.4 as a dependency - Replaced custom landing page components with new theme-based components
- Updated logos, added brand assets, and new company logos for "Trusted By" section
Reviewed changes
Copilot reviewed 41 out of 83 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Added @voidzero-dev/vitepress-theme and bumped feed version |
| .vitepress/config.ts | Integrated new theme config, updated footer structure, and added variant/banner config |
| .vitepress/theme/index.ts | Replaced VitePress default theme with new VoidZero theme |
| team.md | Updated imports to use new theme components, removed cnTranslator import |
| index.md | Simplified to use new landing layout component |
| public/* | Added new brand assets (logos, SVGs) and company logos |
| .vitepress/theme/styles/* | Removed custom CSS in favor of theme styles |
| .vitepress/theme/landing/* | Added new landing page component implementations |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)
team.md:32
- The
cnTranslatorvariable is referenced on line 32 but was removed from the imports on line 14. This will cause a runtime error. Either re-addcnTranslatorto the import statement or remove this section from the template.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| // llmstxt({ | ||
| // ignoreFiles: ['blog/*', 'blog.md', 'index.md', 'team.md'], | ||
| // description: 'The Build Tool for the Web', | ||
| // details: `\ | ||
| // - 💡 Instant Server Start | ||
| // - ⚡️ Lightning Fast HMR | ||
| // - 🛠️ Rich Features | ||
| // - 📦 Optimized Build | ||
| // - 🔩 Universal Plugin Interface | ||
| // - 🔑 Fully Typed APIs | ||
|
|
||
| // Vite is a new breed of frontend build tooling that significantly improves the frontend development experience. It consists of two major parts: | ||
|
|
||
| // - A dev server that serves your source files over [native ES modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), with [rich built-in features](https://vite.dev/guide/features.md) and astonishingly fast [Hot Module Replacement (HMR)](https://vite.dev/guide/features.md#hot-module-replacement). | ||
|
|
||
| // - A [build command](https://vite.dev/guide/build.md) that bundles your code with [Rollup](https://rollupjs.org), pre-configured to output highly optimized static assets for production. | ||
|
|
||
| // In addition, Vite is highly extensible via its [Plugin API](https://vite.dev/guide/api-plugin.md) and [JavaScript API](https://vite.dev/guide/api-javascript.md) with full typing support.`, | ||
| // }), |
There was a problem hiding this comment.
Large block of commented-out code should either be removed or uncommented with a TODO comment explaining why it's temporarily disabled. Leaving extensive commented code reduces maintainability.
| // llmstxt({ | |
| // ignoreFiles: ['blog/*', 'blog.md', 'index.md', 'team.md'], | |
| // description: 'The Build Tool for the Web', | |
| // details: `\ | |
| // - 💡 Instant Server Start | |
| // - ⚡️ Lightning Fast HMR | |
| // - 🛠️ Rich Features | |
| // - 📦 Optimized Build | |
| // - 🔩 Universal Plugin Interface | |
| // - 🔑 Fully Typed APIs | |
| // Vite is a new breed of frontend build tooling that significantly improves the frontend development experience. It consists of two major parts: | |
| // - A dev server that serves your source files over [native ES modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), with [rich built-in features](https://vite.dev/guide/features.md) and astonishingly fast [Hot Module Replacement (HMR)](https://vite.dev/guide/features.md#hot-module-replacement). | |
| // - A [build command](https://vite.dev/guide/build.md) that bundles your code with [Rollup](https://rollupjs.org), pre-configured to output highly optimized static assets for production. | |
| // In addition, Vite is highly extensible via its [Plugin API](https://vite.dev/guide/api-plugin.md) and [JavaScript API](https://vite.dev/guide/api-javascript.md) with full typing support.`, | |
| // }), |
| { | ||
| tier: '合作伙伴', | ||
| size: 'big', | ||
| size: 'big' as const, |
There was a problem hiding this comment.
While using as const assertions for literal types works, consider defining the type explicitly in the return type of mapSponsors function instead of using inline type assertions on each property. This would make the code more maintainable.
| "@type-challenges/utils": "^0.1.1", | ||
| "@types/express": "^5.0.6", | ||
| "@types/node": "^24.10.4", | ||
| "@voidzero-dev/vitepress-theme": "^4.0.4", |
There was a problem hiding this comment.
The dependency specifies version ^4.0.4, but pnpm-lock.yaml shows version 4.1.1 is installed. This version mismatch suggests the package.json constraint should be updated to match the actual installed version, or the lock file should be regenerated to match the constraint.
No description provided.