Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default ({ mode }: { mode: string }) => {

banner: {
id: 'viteplus-alpha',
text: 'Announcing Vite+ Alpha: Open source. Unified. Next-gen.',
text: 'Vite+ Alpha 发布:开源、统一、下一代工具链。',
url: 'https://voidzero.dev/posts/announcing-vite-plus-alpha?utm_source=vitest&utm_content=top_banner',
},

Expand All @@ -155,14 +155,14 @@ export default ({ mode }: { mode: string }) => {
],

footer: {
copyright: `© ${new Date().getFullYear()} VoidZero Inc. and Vitest contributors.`,
copyright: `© ${new Date().getFullYear()} VoidZero Inc. Vitest 贡献者。`,
nav: [
{
title: 'Vitest',
items: [
{ text: 'Guides', link: '/guide/' },
{ text: '指南', link: '/guide/' },
{ text: 'API', link: '/api/test' },
{ text: 'Config', link: '/config/' },
{ text: '配置', link: '/config/' },
],
},
{
Expand Down
10 changes: 5 additions & 5 deletions .vitepress/theme/FeatureGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import RiveAnimation from '@components/shared/RiveAnimation.vue'
基于 Vite 驱动
</h5>
<p class="sm:max-w-[30rem] text-pretty">
可以复用 <code
可复用 <code
class="mr-1 outline-none bg-nickel/50 text-vite"
>Vite</code> 的配置和插件,使得应用和测试保持一致。但是使用 Vitest 并不需要使用 Vite!
>Vite</code> 的配置和插件,使得应用和测试之间保持一致。但是使用 Vitest 并不强制使用 Vite!
</p>
</div>
<RiveAnimation
Expand All @@ -32,7 +32,7 @@ import RiveAnimation from '@components/shared/RiveAnimation.vue'
<p class="max-w-[28rem] text-pretty">
支持 Expect 断言、快照测试、覆盖率等功能,从
<code class="mr-1 outline-none bg-nickel/50 text-zest">Jest</code>
迁移过来非常简单
迁移过来也很顺手
</p>
</div>
<div class="flex-1 flex items-center justify-center p-5 sm:p-10">
Expand All @@ -45,7 +45,7 @@ import RiveAnimation from '@components/shared/RiveAnimation.vue'
智能且即时的 watch 模式
</h5>
<p class="max-w-[23rem] text-pretty">
只重新运行相关的更改,就像测试的热模块重载一样
只重新运行相关变更,就像测试版 HMR 一样
Comment thread
NoiseFan marked this conversation as resolved.
</p>
</div>
<div class="card-bg px-5 sm:px-10 pt-5 sm:pt-10 flex justify-center">
Expand All @@ -58,7 +58,7 @@ import RiveAnimation from '@components/shared/RiveAnimation.vue'
ESM、TypeScript、JSX 支持
</h5>
<p class="max-w-[25rem] text-pretty">
内置 ESM、TypeScript 和 JSX 支持,由
开箱即用的 ESM、TypeScript 和 JSX 支持,由
<code class="mx-1 outline-none bg-nickel/50 text-aqua">Oxc</code>
驱动。
</p>
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/Hero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
下一代测试框架
</h1>
<p class="text-white/70 text-lg max-w-[25rem] text-pretty">
一个原生支持 Vite 的测试框架。非常快速
一个原生支持 Vite 的测试框架。快得惊人
</p>
<div class="flex items-center gap-5 mt-8">
<a href="/guide/" class="button button--primary inline-block w-fit">
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import Intro from './Intro.vue'
<Spacer />
<Footer
heading="开始使用 Vitest 进行测试"
subheading="为现代 Web 应用提供超凡性能的测试加速方案"
subheading="凭借专为现代 Web 而生的强劲性能,让测试效率全面跃升。"
button-text="快速起步"
button-link="/guide/"
/>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docs-cn",
"type": "module",
"version": "5.0.0-beta.1",
"version": "5.0.0-beta.2",
"private": true,
"packageManager": "pnpm@9.7.1",
"scripts": {
Expand Down
Loading