Skip to content

Commit fdcfcb2

Browse files
committed
feat: quickreference add auto-wrap class.
1 parent 3003e3d commit fdcfcb2

File tree

7 files changed

+31
-10
lines changed

7 files changed

+31
-10
lines changed

docs/cron.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Min Hour Day Mon Weekday
9595
`L` | 仅允许用于 `月份中的某天``星期几` 字段,`星期几` 中的 `2L` 表示每个月的最后一个星期二
9696
`井号 (#)` | 仅允许用于 `星期几` 字段,后面必须在 1 到 5 的范围内。例如,`4#1` 表示给定月份的“第一个星期四”。
9797
`问号(?)` | 可以代替“*”并允许用于月份和星期几。使用仅限于 cron 表达式中的 `月份中的某天``星期几`
98-
<!--rehype:className=show-header -->
98+
<!--rehype:className=show-header auto-wrap-->
9999

100100

101101
## Also see

docs/curl.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ apk add --update curl # alpine linux 中安装
110110
`curl --connect-timeout 10 -I -k https://www.baidu.com` | `curl` 默认没有超时
111111
`curl --verbose --header "Host: www.mytest.com:8182" www.baidu.com` | `curl` 得到额外的标题
112112
`curl -k -v https://www.google.com` | `curl` 获取带有标题的响应
113-
113+
<!--rehype:class=auto-wrap-->
114114

115115
### 多文件上传
116116
<!--rehype:wrap-class=col-span-2-->
@@ -136,6 +136,7 @@ $ curl -XGET http://${elasticsearch_ip}:9200/_cluster/nodes | python -m json.too
136136
:- | :-
137137
`curl -d "name=username&password=123456" <URL>` | `curl` 发请求
138138
`curl <URL> -H "content-type: application/json" -d "{ \"woof\": \"bark\"}"` | `curl` 发送 json
139+
<!--rehype:class=auto-wrap-->
139140

140141
### CURL 脚本安装 rvm
141142
<!--rehype:wrap-class=col-span-2-->
@@ -156,6 +157,7 @@ curl -sSL https://get.rvm.io | bash
156157
`curl -T cryptopp552.zip -u test:test ftp://10.32.99.187/` | curl `ftp` 上传
157158
`curl -u test:test ftp://10.32.99.187/cryptopp552.zip -o cryptopp552.zip` | curl `ftp` 下载
158159
`curl -v -u admin:admin123 --upload-file package1.zip http://mysever:8081/dir/package1.zip` | 使用凭证 `curl` 上传
160+
<!--rehype:class=auto-wrap-->
159161

160162
### 检查网站响应时间
161163
<!--rehype:wrap-class=col-span-4-->

docs/dockerfile.md

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ RUN true | false # 将脱离管道
110110
`CMD ["executable","param1","param2"]` | (exec 形式,这是首选形式)
111111
`CMD ["param1","param2"]` | (作为 ENTRYPOINT 的默认参数)
112112
`CMD command param1 param2` | (shell形式)
113+
<!--rehype:class=auto-wrap-->
113114

114115
```dockerfile
115116
EXPOSE 5900
@@ -185,6 +186,7 @@ temp?
185186
`*/temp*` | 在根的任何直接子目录中<br />排除名称以 `temp` 开头的文件和目录
186187
`*/*/temp*` | 从根以下两级的任何子目录中<br />排除以 `temp` 开头的文件和目录
187188
`temp?` | 排除根目录中名称为<br /> `temp` 的单字符扩展名的文件和目录
189+
<!--rehype:class=auto-wrap-->
188190

189191
如果此文件存在,排除与其中的模式匹配的文件和目录,有利于避免 `ADD``COPY` 将敏感文件添加到镜像中。匹配是使用 Go 的 [filepath.Match](https://golang.org/pkg/path/filepath#Match) 规则完成的。
190192

@@ -203,6 +205,7 @@ temp?
203205
`CMD command param1 param2` | 设置默认命令
204206
`ENV <key>=<value> ...` | 设置环境变量
205207
`EXPOSE <port> [<port>/<protocol>...]` | 运行时侦听指定的网络端口
208+
<!--rehype:class=auto-wrap-->
206209

207210
### 服务静态网站的最小 Docker 镜像
208211
<!--rehype:wrap-class=col-span-2-->

docs/npm.md

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ npm 备忘清单
2121
| `npm install <package_name>@<tag>` | 使用 dist-tags 安装包 |
2222
| `npm install -g <package_name>` | 全局安装包 |
2323
| `npm uninstall <package_name>` | 卸载包 |
24+
<!--rehype:class=auto-wrap-->
2425

2526
`--save` 是 npm@5 的默认值。 以前,使用不带 `--save``npm install` 不会更新 package.json。
2627

@@ -40,6 +41,7 @@ npm 备忘清单
4041
| `npm i /path/to/repo` | 绝对路径 |
4142
| `npm i ./archive.tgz` | 压缩包 |
4243
| `npm i https://site.com/archive.tgz` | 通过 HTTP 压缩包 |
44+
<!--rehype:class=auto-wrap-->
4345

4446
### 清单
4547

@@ -49,6 +51,7 @@ npm 备忘清单
4951
| `npm list -g --depth 0` | 列出所有全局安装包的安装版本 |
5052
| `npm view` | 列出此软件中所有依赖项的最新版本 |
5153
| `npm outdated` | 仅列出此软件中已过时的依赖项 |
54+
<!--rehype:class=auto-wrap-->
5255

5356
### 更新
5457

docs/quickreference.md

+11
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,17 @@ H2 部分
602602

603603
`<!--rehype:className=style-list-arrow-->`
604604

605+
### 隐藏表头强制小尺寸自动换行
606+
607+
:- | :-
608+
:- | :-
609+
`visualEffectState.inactive` | 后台应一直显示为非激活状态。
610+
`titleBarStyle` _string_ _(win/mac)_ | 窗口标题栏样式。默认值 _(default)_
611+
`titleBarStyle.default` | 分别返回 _mac_ 或者 _win_ 的标准标题栏
612+
<!--rehype:className=auto-wrap-->
613+
614+
`<!--rehype:className=auto-wrap-->`
615+
605616
列表
606617
---
607618

docs/yaml.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,9 @@ YAML 参考
426426
`"` | 环绕内嵌转义标量
427427
`|` | 块标量指示器
428428
`>` | 折叠标量指示器
429-
`-` | 剥离 chomp 修饰符(`|-` 或 `>-`)
430-
`+` | 保留 chomp 修饰符(`|+` 或 `>+`)
431-
`1-9` | 显式缩进修饰符(`|1` 或 `>2`)。 <br/> 修饰符可以组合(`|2-`, `>+1`)
429+
`-` | 剥离 chomp 修饰符(`\|-` 或 `>-`)
430+
`+` | 保留 chomp 修饰符(`\|+` 或 `>+`)
431+
`1-9` | 显式缩进修饰符(`\|1` 或 `>2`)。 <br/> 修饰符可以组合(`\|2-`, `>+1`)
432432

433433
### 标签属性(通常未指定)
434434
<!--rehype:wrap-class=col-span-2-->
@@ -441,6 +441,7 @@ YAML 参考
441441
`!!foo` | 次要的(按照惯例,表示 `tag:yaml.org,2002:foo`)
442442
`!h!foo` | 需要 `%TAG !h! <prefix>`(然后表示 `<prefix>foo`)
443443
`!<foo>` | 逐字标记(始终表示“foo”)
444+
<!--rehype:class=auto-wrap-->
444445

445446
### 杂项指标
446447

@@ -515,6 +516,7 @@ YAML 参考
515516
| `[.inf, -.Inf, .NAN]` | [无穷大(浮点数),负数,不是数字] |
516517
| `{Y, true, Yes, ON}` | 布尔真 |
517518
| `{n, FALSE, No, off}` | 布尔假 |
519+
<!--rehype:class=auto-wrap-->
518520

519521
另见
520522
---

scripts/style.css

+5-5
Original file line numberDiff line numberDiff line change
@@ -959,11 +959,14 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
959959
.footer-wrap {
960960
font-size: 0.75rem;
961961
}
962-
table {
962+
table.auto-wrap {
963963
overflow: auto;
964964
display: block;
965965
}
966-
table td, table th {
966+
table.auto-wrap thead {
967+
display: none;
968+
}
969+
table.auto-wrap td, table.auto-wrap th {
967970
display: block;
968971
text-align: left !important;
969972
}
@@ -973,9 +976,6 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
973976
table td:first-child {
974977
white-space: initial;
975978
}
976-
.wrap-header.h3wrap > .wrap-body {
977-
overflow: initial;
978-
}
979979
.tooltip:hover .tooltiptext {
980980
display: inline-block;
981981
}

0 commit comments

Comments
 (0)