feat: update hello world

This commit is contained in:
cqh963852 committed 2022-09-23 22:47:49 +08:00
1 parent e3be714551
commit ad6d126ee0
9 files changed
+24 -3

No files matched your search

+4 -2
View File
@@ -1,10 +1,10 @@
---
sidebar_position: 1
sidebar_position: 2
---
# 第一个页面(hello world)
```html title="examples/hello-world/index.html"
```html title="hello-world/index.html"
<!DOCTYPE html>
<html lang="en">
<head>
@@ -19,6 +19,8 @@ sidebar_position: 1
</html>
```
![预览效果](./open_hello_world.png)
将文件在浏览器中打开,你将会看到 `hello world` 字样
![预览效果](./hello_world.png)
Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

+7 -1
View File
@@ -4,8 +4,14 @@ sidebar_position: 2
# 简单的服务
在 `examples/hello-world/index.html` 文件夹下输入
打开控制台
![打开控制台](./open_terminal.png)
输入命令
```
npx http-server
```
![输入命令](./start_http_server.png)
Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

+13
View File
@@ -0,0 +1,13 @@
---
sidebar_position: 1
---
# 使用 VSCode
新建文件夹命名为 hello-world
![打开文件夹](./open_folder.png)
![打开后](./opened.png)
![新建文件](./new_file.png)