Skip to content

Commit 3bce02d

Browse files
authored
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ d96eedd
2 parents aad0688 + df5e574 commit 3bce02d

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

.vitepress/theme/custom.css

+11
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,21 @@
2929
--docsearch-primary-color: var(--c-brand) !important;
3030
}
3131

32+
#play-vite-audio {
33+
padding: 0;
34+
margin-left: 5px;
35+
display: inline-flex;
36+
}
37+
38+
#play-vite-audio img {
39+
opacity: 0.8;
40+
}
41+
3242
/* docs-cn specific */
3343
.cn-footnote {
3444
margin-top: 20px;
3545
}
46+
3647
.cn-footnote .title {
3748
display: block;
3849
margin-bottom: 10px;

guide/index.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# 开始 {#getting-started}
22

3+
<audio id="vite-audio">
4+
<source src="/vite.mp3" type="audio/mpeg">
5+
</audio>
6+
37
## 总览 {#overview}
48

5-
Vite (法语意为 "快速的",发音 `/vit/`) 是一种新型前端构建工具,能够显著提升前端开发体验。它主要由两部分组成:
9+
Vite (法语意为 "快速的",发音 `/vit/`<button id="play-vite-audio" onclick="document.getElementById('vite-audio').play();"><img src="/voice.svg" height="15"></button>) 是一种新型前端构建工具,能够显著提升前端开发体验。它主要由两部分组成:
610

711
- 一个开发服务器,它基于 [原生 ES 模块](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) 提供了 [丰富的内建功能](./features),如速度快到惊人的 [模块热更新(HMR)](./features#hot-module-replacement)
812

public/vite.mp3

3 KB
Binary file not shown.

public/voice.svg

+6
Loading

0 commit comments

Comments
 (0)