Skip to content

Commit a08e994

Browse files
committed
初始化vitepress
1 parent a074837 commit a08e994

File tree

9 files changed

+490
-0
lines changed

9 files changed

+490
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.vitepress/dist
2+
.vitepress/cache
3+
node_modules

.vitepress/config.mts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { defineConfig } from 'vitepress'
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
title: 'missing semester',
6+
lang: 'zh-CN',
7+
themeConfig: {
8+
logo: '/logo.svg',
9+
sidebar: [
10+
{
11+
items: [
12+
{ text: '01 课程概览与 shell', link: '/01/README' },
13+
{ text: '02 Shell 工具和脚本', link: '/02/README' },
14+
],
15+
},
16+
],
17+
socialLinks: [{ icon: 'github', link: 'https://github.com/csfive/missing-semester' }],
18+
search: {
19+
provider: 'local',
20+
},
21+
},
22+
head: [
23+
['link', { rel: 'icon', href: '/logo.svg', type: 'image/svg+xml' }],
24+
['link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }],
25+
['link', { ref: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&display=swap' }]
26+
],
27+
})

01/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# 01. 课程概览与 shell
2+
3+
## 练习1
4+
5+
> 本课程需要使用类 Unix shell,例如 Bash 或 ZSH。如果您在 Linux 或者 MacOS 上面完成本课程的练习,则不需要做任何特殊的操作。如果您使用的是 Windows,则您不应该使用 cmd 或是 Powershell;您可以使用 Windows Subsystem for Linux 或者是 Linux 虚拟机。使用 `echo $SHELL` 命令可以查看您的 shell 是否满足要求。如果打印结果为 `/bin/bash``/usr/bin/zsh` 则是可以的。
6+
7+
```shell
8+
echo $SHELL
9+
/bin/zsh
10+
```

02/README.md

Whitespace-only changes.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
- [课程链接](https://missing-semester-cn.github.io)
44
- [视频链接](https://www.youtube.com/playlist?list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J)
5+
- [课程视频 B 站翻译版](https://www.bilibili.com/video/BV1uc411N7eK/?vd_source=4da426ef9b0e129787ecf66363321458)

bun.lock

Lines changed: 429 additions & 0 deletions
Large diffs are not rendered by default.

index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# MIT 计算机教育中缺失的一课
2+
3+
- [课程链接](https://missing-semester-cn.github.io)
4+
- [视频链接](https://www.youtube.com/playlist?list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J)
5+
- [课程视频 B 站翻译版](https://www.bilibili.com/video/BV1uc411N7eK/?vd_source=4da426ef9b0e129787ecf66363321458)

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"scripts": {
3+
"dev": "vitepress dev",
4+
"build": "vitepress build",
5+
"preview": "vitepress preview",
6+
"format": "prettier -w ."
7+
},
8+
"devDependencies": {
9+
"@mancuoj/prettier-config": "^0.5.3",
10+
"prettier": "^3.6.2",
11+
"vitepress": "^1.6.4"
12+
},
13+
"prettier": "@mancuoj/prettier-config"
14+
}

public/logo.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)