Skip to content

Commit ecf7d93

Browse files
committed
docs: 更新文档
1 parent 797126f commit ecf7d93

Some content is hidden

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

63 files changed

+5638
-22265
lines changed

.github/workflows/deploy.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
name: 部署文档
32

43
on:
54
push:
65
branches:
7-
# 确保这是你正在使用的分支名称
86
- main
97

108
permissions:
@@ -15,29 +13,32 @@ jobs:
1513
runs-on: ubuntu-latest
1614
steps:
1715
- name: Checkout
18-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1917
with:
2018
fetch-depth: 0
2119
# 如果你文档需要 Git 子模块,取消注释下一行
2220
# submodules: true
2321

24-
- name: 设置 Node.js
25-
uses: actions/setup-node@v3
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
2627
with:
27-
node-version: 16.19
28-
cache: npm
28+
node-version: 22
29+
cache: pnpm
2930

30-
- name: 安装依赖
31-
run: npm ci
31+
- name: Install dependencies
32+
run: pnpm install --frozen-lockfile
3233

33-
- name: 构建文档
34+
- name: Build docs
3435
env:
3536
NODE_OPTIONS: --max_old_space_size=8192
3637
run: |-
37-
npm run build
38+
pnpm build
3839
> docs/.vuepress/dist/.nojekyll
3940
40-
- name: 部署文档
41+
- name: Deploy Github Pages
4142
uses: JamesIves/github-pages-deploy-action@v4
4243
with:
4344
# 这是文档部署到的分支名称

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -488,14 +488,14 @@
488488

489489
### [分布式综合](docs/15.分布式/分布式理论)
490490

491-
- [分布式简介](docs/15.分布式/分布式理论/分布式简介.md)
491+
- [分布式简介](docs/15.分布式/分布式理论/分布式简介.md) - 关键词:`发展``指标``分类``挑战`
492492
- [逻辑时钟](docs/15.分布式/分布式理论/逻辑时钟.md) - 关键词:`逻辑时钟``向量时钟``版本时钟``全序``偏序`
493493
- [CAP 和 BASE](docs/15.分布式/分布式理论/CAP&BASE.md) - 关键词:`ACID``CAP``BASE``一致性`
494494
- [拜占庭将军问题](docs/15.分布式/分布式理论/拜占庭将军问题.md) - 关键词:`共识`
495-
- [分布式算法 Paxos](docs/15.分布式/分布式理论/Paxos.md) - 关键词:`共识``Paxos`
496-
- [分布式算法 Raft](docs/15.分布式/分布式理论/Raft.md) - 关键词:`共识``Raft`
497-
- [分布式算法 Gossip](docs/15.分布式/分布式理论/Gossip.md) - 关键词:`Gossip`
495+
- [分布式算法 Paxos](docs/15.分布式/分布式理论/Paxos.md) - 关键词:`共识``Paxos``两阶段提交``多数派决议`
496+
- [分布式算法 Raft](docs/15.分布式/分布式理论/Raft.md) - 关键词:`共识``Raft``选主``日志复制``安全性`
498497
- [ZAB 协议](docs/15.分布式/分布式理论/Zab.md) - 关键词:`共识``ZAB``ZooKeeper`
498+
- [分布式算法 Gossip](docs/15.分布式/分布式理论/Gossip.md) - 关键词:`Gossip``去中心化``最终一致性``反熵``谣言传播`
499499
- [分布式理论面试](docs/15.分布式/分布式理论/分布式理论面试.md) 💯
500500

501501
### [分布式协同](docs/15.分布式/分布式协同)
@@ -506,7 +506,7 @@
506506
- [分布式事务](docs/15.分布式/分布式协同/分布式事务.md) - 关键词:`2PC``3PC``TCC``本地消息表``消息事务``SAGA`
507507
- [分布式锁](docs/15.分布式/分布式协同/分布式锁.md) - 关键词:`互斥``可重入``死锁``容错``自旋尝试``公平性`
508508
- [分布式 ID](docs/15.分布式/分布式协同/分布式ID.md) - 关键词:`UUID``自增序列``雪花算法``Leaf`
509-
- [服务容错](docs/15.分布式/分布式协同/服务容错.md)
509+
- [服务容错](docs/15.分布式/分布式治理/服务容错.md)
510510
- [分布式协同面试](docs/15.分布式/分布式协同/分布式协同面试.md) 💯
511511
- **ZooKeeper**
512512
- [ZooKeeper 原理](docs/15.分布式/分布式协同/ZooKeeper/ZooKeeper_原理.md)
@@ -519,9 +519,9 @@
519519
### [分布式调度](docs/15.分布式/分布式调度)
520520

521521
- [服务注册和发现](docs/15.分布式/分布式调度/服务注册和发现.md) - 关键词:`服务注册``服务发现``元数据`
522-
- [负载均衡](docs/15.分布式/分布式调度/负载均衡.md) - 关键词:`轮询``随机``最少连接``源地址哈希``一致性哈希``虚拟 hash 槽`
522+
- [服务路由](docs/15.分布式/分布式调度/服务路由.md) - 关键词:`路由``条件路由``脚本路由``标签路由`
523+
- [负载均衡](docs/15.分布式/分布式调度/负载均衡.md) - 关键词:`轮询``随机``最少连接``最少响应时间``哈希``一致性哈希``虚拟哈希`
523524
- [流量控制](docs/15.分布式/分布式调度/流量控制.md) - 关键词:`限流``熔断``降级``计数器法``时间窗口法``令牌桶法``漏桶法`
524-
- [路由和网关](docs/15.分布式/分布式调度/网关路由.md) - 关键词:`路由``条件路由``脚本路由``标签路由`
525525
- [分布式调度面试](docs/15.分布式/分布式调度/分布式调度面试.md) 💯
526526

527527
### [分布式通信](docs/15.分布式/分布式通信)
@@ -673,8 +673,8 @@
673673

674674
### 监控
675675

676-
- [监控体系](docs/04.DevOps/监控/监控体系.md)
677-
- [链路监控](docs/04.DevOps/监控/链路追踪.md)
676+
- [监控体系](docs/15.分布式/分布式治理/服务监控.md)
677+
- [链路监控](docs/15.分布式/分布式治理/链路追踪.md)
678678

679679
### 工具
680680

24.8 KB
Binary file not shown.
50.8 KB
Binary file not shown.
-64.4 KB
Binary file not shown.
-3.71 KB
Binary file not shown.

docs/.vuepress/navbar.ts

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default navbar([
1919
link: 'JavaCore/',
2020
children: ['基础特性/', '高级特性/', '容器/', 'IO/', '并发/', 'JVM/', '面试/']
2121
},
22-
{ text: 'JavaEE', icon: 'mdi:numeric-2-box-multiple-outline', link: 'JavaEE/' },
22+
{ text: 'JavaWeb', icon: 'mdi:numeric-2-box-multiple-outline', link: 'JavaWeb/' },
2323
{ text: '软件', icon: 'mdi:numeric-3-box-multiple-outline', link: '软件/' },
2424
{ text: '工具', icon: 'mdi:numeric-4-box-multiple-outline', link: '工具/' },
2525
{ text: '框架', icon: 'mdi:numeric-5-box-multiple-outline', link: '框架/' },
@@ -114,21 +114,17 @@ export default navbar([
114114
prefix: '/15.分布式/',
115115
children: [
116116
{ text: '分布式理论', link: '分布式理论/' },
117-
{
118-
text: '分布式协同',
119-
prefix: '分布式协同/',
120-
link: '分布式协同/',
121-
children: [{ text: 'ZooKeeper', link: 'ZooKeeper/' }]
122-
},
117+
{ text: '分布式协同', link: '分布式协同/' },
123118
{ text: '分布式调度', link: '分布式调度/' },
119+
{ text: '分布式治理', link: '分布式治理/' },
124120
{
125121
text: '分布式通信',
126-
prefix: '分布式通信/',
127-
link: '分布式通信/',
128-
children: [
129-
{ text: 'RPC', icon: 'file-icons:powerpc', link: 'RPC/' },
130-
{ text: 'MQ', icon: 'mdi:mq', link: 'MQ/' }
131-
]
122+
link: '分布式通信/'
123+
// prefix: '分布式通信/',
124+
// children: [
125+
// { text: 'RPC', icon: 'file-icons:powerpc', link: 'RPC/' },
126+
// { text: 'MQ', icon: 'mdi:mq', link: 'MQ/' }
127+
// ]
132128
},
133129
{ text: '分布式存储', link: '分布式存储/' }
134130
]

docs/.vuepress/public/assets/image/advanced.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)