Skip to content

Commit 8723261

Browse files
committed
docs: update docs
1 parent 550c622 commit 8723261

File tree

72 files changed

+2061
-317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2061
-317
lines changed

docs/.vitepress/config/default-theme-config/default-theme-navbar/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { PYTHON_ROOT } from "../default-theme-sidebar/web-backend/_python";
99
// ------------------------------------------------------------------------------------------------------------------------
1010
import { REACT_JS_ROOT } from "../default-theme-sidebar/web-frontend/_react";
1111
import { DJANGO_ROOT } from "../default-theme-sidebar/web-backend/_django";
12-
import { FLUTTER_ROOT } from "../default-theme-sidebar/mobile-app/_flutter";
12+
import { FLUTTER_ROOT } from "../default-theme-sidebar/cross-platform/_flutter";
1313

1414
// 常用工具
1515
// ------------------------------------------------------------------------------------------------------------------------

docs/.vitepress/config/default-theme-config/default-theme-sidebar/mobile-app/_dart.ts renamed to docs/.vitepress/config/default-theme-config/default-theme-sidebar/cross-platform/_dart.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { type DefaultTheme } from "vitepress";
2-
import { FLUTTER_ROOT } from "./_flutter";
32

4-
export const DART_ROOT = "/notes/mobile-app/languages/dart";
3+
export const DART_ROOT = "/notes/cross-platform/languages/dart";
54

65
export const DART_SIDEBAR: Array<DefaultTheme.SidebarItem> = [
76
{

docs/.vitepress/config/default-theme-config/default-theme-sidebar/mobile-app/_flutter.ts renamed to docs/.vitepress/config/default-theme-config/default-theme-sidebar/cross-platform/_flutter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type DefaultTheme } from "vitepress";
22

3-
export const FLUTTER_ROOT = "/notes/mobile-app/frameworks/flutter";
3+
export const FLUTTER_ROOT = "/notes/cross-platform/frameworks/flutter";
44

55
export const FLUTTER_SIDEBAR: Array<DefaultTheme.SidebarItem> = [
66
{

docs/.vitepress/config/default-theme-config/default-theme-sidebar/dev-tools/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const DEV_TOOLS_ROOT__GIT = `${DEV_TOOLS_ROOT}/version/git`;
55
export const DEV_TOOLS_ROOT__ASDF = `${DEV_TOOLS_ROOT}/version/asdf`;
66
export const DEV_TOOLS_ROOT__MAKEFILE = `${DEV_TOOLS_ROOT}/auto-build/makefile`;
77
export const DEV_TOOLS_ROOT__CURL = `${DEV_TOOLS_ROOT}/debugging/curl`;
8+
export const DEV_TOOLS_ROOT__VIM = `${DEV_TOOLS_ROOT}/editor/vim`;
89

910
export const DEV_TOOLS_SIDEBAR: Array<DefaultTheme.SidebarItem> = [
1011
{
@@ -44,6 +45,17 @@ export const DEV_TOOLS_SIDEBAR: Array<DefaultTheme.SidebarItem> = [
4445
],
4546
},
4647

48+
{
49+
text: "编辑器",
50+
collapsed: false,
51+
items: [
52+
{
53+
text: "Vim",
54+
link: `${DEV_TOOLS_ROOT__VIM}/`,
55+
},
56+
],
57+
},
58+
4759
{
4860
text: "返回首页",
4961
link: `${DEV_TOOLS_ROOT}/`,

docs/.vitepress/config/default-theme-config/default-theme-sidebar/index.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,19 @@ import { DEV_TOOLS_ROOT, DEV_TOOLS_SIDEBAR } from "./dev-tools";
1919

2020
// web-infrastructure
2121
// ------------------------------------------------------------------------------------------------------------------------
22+
import { SHELL_ROOT, SHELL_SIDEBAR } from "./web-infrastructure/_shell";
2223
import {
2324
DOCKER_COMPOSE_ROOT,
2425
DOCKER_ROOT,
2526
DOCKER_SIDEBAR,
2627
} from "./web-infrastructure/_docker";
2728

28-
// mobile-app
29+
// cross-platform
30+
// ------------------------------------------------------------------------------------------------------------------------
31+
import { DART_ROOT, DART_SIDEBAR } from "./cross-platform/_dart";
32+
import { FLUTTER_ROOT, FLUTTER_SIDEBAR } from "./cross-platform/_flutter";
33+
2934
// ------------------------------------------------------------------------------------------------------------------------
30-
import { DART_ROOT, DART_SIDEBAR } from "./mobile-app/_dart";
31-
import { FLUTTER_ROOT, FLUTTER_SIDEBAR } from "./mobile-app/_flutter";
3235

3336
export const DEFAULT_THEME_SIDEBAR: DefaultTheme.Sidebar = {
3437
/**
@@ -58,11 +61,12 @@ export const DEFAULT_THEME_SIDEBAR: DefaultTheme.Sidebar = {
5861
* web-infrastructure
5962
* ------------------------------------------------------------------------------------------------------------------------
6063
*/
64+
[SHELL_ROOT]: SHELL_SIDEBAR,
6165
[DOCKER_ROOT]: DOCKER_SIDEBAR,
6266
[DOCKER_COMPOSE_ROOT]: DOCKER_SIDEBAR,
6367

6468
/**
65-
* mobile-app
69+
* cross-platform
6670
* ------------------------------------------------------------------------------------------------------------------------
6771
*/
6872
[DART_ROOT]: DART_SIDEBAR,

docs/.vitepress/config/default-theme-config/default-theme-sidebar/web-infrastructure/_linux.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { type DefaultTheme } from "vitepress";
2+
3+
export const SHELL_ROOT = `/notes/web-infrastructure/operating-system/shell`;
4+
5+
export const SHELL_SIDEBAR: Array<DefaultTheme.SidebarItem> = [
6+
{
7+
text: "Shell 基础",
8+
collapsed: false,
9+
items: [
10+
{
11+
text: "变量",
12+
link: `${SHELL_ROOT}/__base__/variable`,
13+
},
14+
// {
15+
// text: "函数",
16+
// link: `${SHELL_ROOT}/__base__/function`,
17+
// },
18+
{
19+
text: "运算符",
20+
link: `${SHELL_ROOT}/__base__/operators`,
21+
},
22+
{
23+
text: "流程控制",
24+
link: `${SHELL_ROOT}/__base__/control-flow`,
25+
},
26+
],
27+
},
28+
29+
{
30+
text: "返回首页",
31+
link: `${SHELL_ROOT}/`,
32+
},
33+
];

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ features:
2020
link: /notes/web-backend/
2121
icon:
2222
src: /static/cartoon-images/hero--spiderman.webp
23-
- title: 移动端开发
24-
details: Mobile App Dev
25-
link: /notes/mobile-app/
23+
- title: 跨平台开发
24+
details: Cross Platform Dev
25+
link: /notes/cross-platform/
2626
icon:
2727
src: /static/cartoon-images/hero--daredevil.webp
2828
- title: 基础设施
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
prev: false
3+
next: false
4+
---
5+
6+
# Electron
7+
8+
![](/static/skill-images/cross-platform--electron.png)
9+
10+
Electron 是一个基于 JavaScript 的桌面应用程序开发框架
11+
12+
## 下载安装
13+
14+
```zsh
15+
% cd [项目名]
16+
17+
# 1. 初始化项目
18+
% npm init -y
19+
20+
# 2. 下载 Electron 依赖包并构建项目
21+
% npm install electron --save-dev
22+
```
File renamed without changes.

0 commit comments

Comments
 (0)