chore(go): 章节通用样式提到 doc.css,并修 5 处内容硬伤
- assets/doc.css 新增 .tag/.tag.s/.figure/.figcap/p.take/article>h4,14 章共用 - 01/02 删除页内 style,改用共享样式 - 04 §4.8 写屏障注释与正文补上「栈未扫完才 shade 新值」,与 §4.6 对齐 - 07 末段锚点 sec-10-9 → sec-10-10 - 06 §6.2 正文「五种」→「四种」,与标题一致 - 08 §8.1 「2014 年」→「2015 年底(Go 1.6)」 - 08 §8.4 发送路径补 panic(send on closed channel),与 §8.6 对齐
This commit is contained in:
@@ -6,16 +6,6 @@
|
||||
<title>第 2 章 GMP 调度器:Go 如何把十万个 goroutine 跑起来 · Go 八股知识库</title>
|
||||
<meta name="description" content="从 GM 为什么不够用讲到 G、M、P、schedt 四个结构体,串起 schedule 到 goexit 的调度循环,讲透 work stealing、系统调用 handoff、异步抢占与 11 个调度场景。">
|
||||
<link rel="stylesheet" href="assets/doc.css">
|
||||
<style>
|
||||
.tag{display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:.04em;color:var(--brand-ink);background:var(--brand-soft);border-radius:5px;padding:1px 7px;margin-right:8px;vertical-align:2px;white-space:nowrap}
|
||||
.tag.s{background:var(--line);color:var(--muted)}
|
||||
.figure{margin:22px 0 26px;padding:14px 10px 8px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
|
||||
.figure svg{display:block;width:100%;height:auto}
|
||||
.figcap{margin:8px 6px 2px;font-size:13px;color:var(--muted);line-height:1.6}
|
||||
p.take{margin:14px 0 4px;padding:8px 14px;border-left:3px solid var(--brand);background:var(--soft);border-radius:0 8px 8px 0;font-size:14.5px}
|
||||
h4{font-size:15.5px;color:var(--brand-ink);margin:24px 0 8px;letter-spacing:.01em}
|
||||
@media print{.figure{break-inside:avoid}}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user