Skip to content

Commit 8437659

Browse files
committed
小幅修改
1 parent 9222f2c commit 8437659

4 files changed

Lines changed: 54 additions & 54 deletions

File tree

.vitepress/config.mts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@ import { defineConfig } from 'vitepress'
33
// https://vitepress.dev/reference/site-config
44
export default defineConfig({
55
base: '/',
6-
title: "SurveyController 文档",
7-
description: "A VitePress Site",
6+
title: "SurveyController",
7+
description: "基于 VitePress 的文档站点",
88
themeConfig: {
99
// https://vitepress.dev/reference/default-theme-config
1010
nav: [
11-
{ text: 'Home', link: '/' },
12-
{ text: 'Examples', link: '/markdown-examples' }
11+
{ text: '首页', link: '/' },
12+
{ text: '示例', link: '/markdown-examples' }
1313
],
1414

1515
sidebar: [
1616
{
17-
text: 'Examples',
17+
text: '示例',
1818
items: [
19-
{ text: 'Markdown Examples', link: '/markdown-examples' },
20-
{ text: 'Runtime API Examples', link: '/api-examples' }
19+
{ text: 'Markdown 示例', link: '/markdown-examples' },
20+
{ text: '运行时 API 示例', link: '/api-examples' }
2121
]
2222
}
2323
],
2424

2525
socialLinks: [
26-
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
26+
{ icon: 'github', link: 'https://github.com/hungryM0/SurveyController' }
2727
]
2828
}
2929
})

api-examples.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
outline: deep
33
---
44

5-
# Runtime API Examples
5+
# 运行时 API 示例
66

7-
This page demonstrates usage of some of the runtime APIs provided by VitePress.
7+
本页演示了 VitePress 提供的一些运行时 API 用法。
88

9-
The main `useData()` API can be used to access site, theme, and page data for the current page. It works in both `.md` and `.vue` files:
9+
主要的 `useData()` API 可用于获取当前页面的站点、主题和页面数据,它在 `.md` `.vue` 文件中都可以使用:
1010

1111
```md
1212
<script setup>
@@ -15,15 +15,15 @@ import { useData } from 'vitepress'
1515
const { theme, page, frontmatter } = useData()
1616
</script>
1717

18-
## Results
18+
## 结果
1919

20-
### Theme Data
20+
### 主题数据
2121
<pre>{{ theme }}</pre>
2222

23-
### Page Data
23+
### 页面数据
2424
<pre>{{ page }}</pre>
2525

26-
### Page Frontmatter
26+
### 页面 Frontmatter
2727
<pre>{{ frontmatter }}</pre>
2828
```
2929

@@ -33,17 +33,17 @@ import { useData } from 'vitepress'
3333
const { site, theme, page, frontmatter } = useData()
3434
</script>
3535

36-
## Results
36+
## 结果
3737

38-
### Theme Data
38+
### 主题数据
3939
<pre>{{ theme }}</pre>
4040

41-
### Page Data
41+
### 页面数据
4242
<pre>{{ page }}</pre>
4343

44-
### Page Frontmatter
44+
### 页面 Frontmatter
4545
<pre>{{ frontmatter }}</pre>
4646

47-
## More
47+
## 更多
4848

49-
Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata).
49+
查看 [运行时 API 完整列表](https://vitepress.dev/reference/runtime-api#usedata) 了解更多内容。

index.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
layout: home
44

55
hero:
6-
name: "SurveyController 文档"
7-
text: "A VitePress Site"
8-
tagline: My great project tagline
6+
name: "SurveyController"
7+
text: ""
8+
tagline: "一站式问卷自动化处理程序,适配问卷星与腾讯问卷平台"
99
actions:
1010
- theme: brand
11-
text: Markdown Examples
11+
text: 查看文档
1212
link: /markdown-examples
1313
- theme: alt
14-
text: API Examples
15-
link: /api-examples
14+
text: 下载最新版本
15+
link: https://dl.hungrym0.top/SurveyController_latest_setup.exe
1616

1717
features:
18-
- title: Feature A
19-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
20-
- title: Feature B
21-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
22-
- title: Feature C
23-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
18+
- title: 支持二维码解析
19+
details: 对于问卷星平台的问卷二维码,自动解析成url链接
20+
- title: 定制答案配置
21+
details: 支持自定义选项作答比例,自定义目标信度系数(仅针对量表题型)
22+
- title: 指定作答ip
23+
details: 可选择指定地区或随机处理作答ip地址
2424
---
2525

markdown-examples.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Markdown Extension Examples
1+
# Markdown 扩展示例
22

3-
This page demonstrates some of the built-in markdown extensions provided by VitePress.
3+
本页演示了 VitePress 提供的一些内置 Markdown 扩展能力。
44

5-
## Syntax Highlighting
5+
## 语法高亮
66

7-
VitePress provides Syntax Highlighting powered by [Shiki](https://github.com/shikijs/shiki), with additional features like line-highlighting:
7+
VitePress 使用 [Shiki](https://github.com/shikijs/shiki) 提供语法高亮,并支持行高亮等额外功能:
88

9-
**Input**
9+
**输入**
1010

1111
````md
1212
```js{4}
@@ -20,7 +20,7 @@ export default {
2020
```
2121
````
2222

23-
**Output**
23+
**输出**
2424

2525
```js{4}
2626
export default {
@@ -32,54 +32,54 @@ export default {
3232
}
3333
```
3434

35-
## Custom Containers
35+
## 自定义容器
3636

37-
**Input**
37+
**输入**
3838

3939
```md
4040
::: info
41-
This is an info box.
41+
这是一个信息提示框。
4242
:::
4343

4444
::: tip
45-
This is a tip.
45+
这是一个提示框。
4646
:::
4747

4848
::: warning
49-
This is a warning.
49+
这是一个警告框。
5050
:::
5151

5252
::: danger
53-
This is a dangerous warning.
53+
这是一个危险警告框。
5454
:::
5555

5656
::: details
57-
This is a details block.
57+
这是一个详情折叠块。
5858
:::
5959
```
6060

61-
**Output**
61+
**输出**
6262

6363
::: info
64-
This is an info box.
64+
这是一个信息提示框。
6565
:::
6666

6767
::: tip
68-
This is a tip.
68+
这是一个提示框。
6969
:::
7070

7171
::: warning
72-
This is a warning.
72+
这是一个警告框。
7373
:::
7474

7575
::: danger
76-
This is a dangerous warning.
76+
这是一个危险警告框。
7777
:::
7878

7979
::: details
80-
This is a details block.
80+
这是一个详情折叠块。
8181
:::
8282

83-
## More
83+
## 更多
8484

85-
Check out the documentation for the [full list of markdown extensions](https://vitepress.dev/guide/markdown).
85+
查看 [Markdown 扩展完整列表](https://vitepress.dev/guide/markdown) 了解更多内容。

0 commit comments

Comments
 (0)