update: create new docs

This commit is contained in:
cqh963852 committed 2022-05-09 21:25:32 +08:00
1 parent 0e43007dd0
commit 4cf1fd7667
26 files changed
+90 -1

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
{
"label": "快速开始",
"position": 2,
"link": {
"type": "generated-index"
}
}
+24
View File
@@ -0,0 +1,24 @@
---
sidebar_position: 1
---
# 第一个页面(hello world)
```html title="examples/hello-world/index.html"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<div>hello world</div>
</body>
</html>
```
将文件在浏览器中打开,你将会看到 `hello world` 字样
![预览效果](./hello_world.png)
Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

+11
View File
@@ -0,0 +1,11 @@
---
sidebar_position: 2
---
# 简单的服务
在 `examples/hello-world/index.html` 文件夹下输入
```
npx http
```