feat: quickreference add auto-wrap class.

This commit is contained in:
jaywcjlove 2022-10-22 22:37:46 +08:00
parent 3003e3db66
commit fdcfcb287b
7 changed files with 31 additions and 10 deletions

View File

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

View File

@ -110,7 +110,7 @@ apk add --update curl # alpine linux 中安装
`curl --connect-timeout 10 -I -k https://www.baidu.com` | `curl` 默认没有超时 `curl --connect-timeout 10 -I -k https://www.baidu.com` | `curl` 默认没有超时
`curl --verbose --header "Host: www.mytest.com:8182" www.baidu.com` | `curl` 得到额外的标题 `curl --verbose --header "Host: www.mytest.com:8182" www.baidu.com` | `curl` 得到额外的标题
`curl -k -v https://www.google.com` | `curl` 获取带有标题的响应 `curl -k -v https://www.google.com` | `curl` 获取带有标题的响应
<!--rehype:class=auto-wrap-->
### 多文件上传 ### 多文件上传
<!--rehype:wrap-class=col-span-2--> <!--rehype:wrap-class=col-span-2-->
@ -136,6 +136,7 @@ $ curl -XGET http://${elasticsearch_ip}:9200/_cluster/nodes | python -m json.too
:- | :- :- | :-
`curl -d "name=username&password=123456" <URL>` | `curl` 发请求 `curl -d "name=username&password=123456" <URL>` | `curl` 发请求
`curl <URL> -H "content-type: application/json" -d "{ \"woof\": \"bark\"}"` | `curl` 发送 json `curl <URL> -H "content-type: application/json" -d "{ \"woof\": \"bark\"}"` | `curl` 发送 json
<!--rehype:class=auto-wrap-->
### CURL 脚本安装 rvm ### CURL 脚本安装 rvm
<!--rehype:wrap-class=col-span-2--> <!--rehype:wrap-class=col-span-2-->
@ -156,6 +157,7 @@ curl -sSL https://get.rvm.io | bash
`curl -T cryptopp552.zip -u test:test ftp://10.32.99.187/` | curl `ftp` 上传 `curl -T cryptopp552.zip -u test:test ftp://10.32.99.187/` | curl `ftp` 上传
`curl -u test:test ftp://10.32.99.187/cryptopp552.zip -o cryptopp552.zip` | curl `ftp` 下载 `curl -u test:test ftp://10.32.99.187/cryptopp552.zip -o cryptopp552.zip` | curl `ftp` 下载
`curl -v -u admin:admin123 --upload-file package1.zip http://mysever:8081/dir/package1.zip` | 使用凭证 `curl` 上传 `curl -v -u admin:admin123 --upload-file package1.zip http://mysever:8081/dir/package1.zip` | 使用凭证 `curl` 上传
<!--rehype:class=auto-wrap-->
### 检查网站响应时间 ### 检查网站响应时间
<!--rehype:wrap-class=col-span-4--> <!--rehype:wrap-class=col-span-4-->

View File

@ -110,6 +110,7 @@ RUN true | false # 将脱离管道
`CMD ["executable","param1","param2"]` | (exec 形式,这是首选形式) `CMD ["executable","param1","param2"]` | (exec 形式,这是首选形式)
`CMD ["param1","param2"]` | (作为 ENTRYPOINT 的默认参数) `CMD ["param1","param2"]` | (作为 ENTRYPOINT 的默认参数)
`CMD command param1 param2` | (shell形式) `CMD command param1 param2` | (shell形式)
<!--rehype:class=auto-wrap-->
```dockerfile ```dockerfile
EXPOSE 5900 EXPOSE 5900
@ -185,6 +186,7 @@ temp?
`*/temp*` | 在根的任何直接子目录中<br />排除名称以 `temp` 开头的文件和目录 `*/temp*` | 在根的任何直接子目录中<br />排除名称以 `temp` 开头的文件和目录
`*/*/temp*` | 从根以下两级的任何子目录中<br />排除以 `temp` 开头的文件和目录 `*/*/temp*` | 从根以下两级的任何子目录中<br />排除以 `temp` 开头的文件和目录
`temp?` | 排除根目录中名称为<br /> `temp` 的单字符扩展名的文件和目录 `temp?` | 排除根目录中名称为<br /> `temp` 的单字符扩展名的文件和目录
<!--rehype:class=auto-wrap-->
如果此文件存在,排除与其中的模式匹配的文件和目录,有利于避免 `ADD``COPY` 将敏感文件添加到镜像中。匹配是使用 Go 的 [filepath.Match](https://golang.org/pkg/path/filepath#Match) 规则完成的。 如果此文件存在,排除与其中的模式匹配的文件和目录,有利于避免 `ADD``COPY` 将敏感文件添加到镜像中。匹配是使用 Go 的 [filepath.Match](https://golang.org/pkg/path/filepath#Match) 规则完成的。
@ -203,6 +205,7 @@ temp?
`CMD command param1 param2` | 设置默认命令 `CMD command param1 param2` | 设置默认命令
`ENV <key>=<value> ...` | 设置环境变量 `ENV <key>=<value> ...` | 设置环境变量
`EXPOSE <port> [<port>/<protocol>...]` | 运行时侦听指定的网络端口 `EXPOSE <port> [<port>/<protocol>...]` | 运行时侦听指定的网络端口
<!--rehype:class=auto-wrap-->
### 服务静态网站的最小 Docker 镜像 ### 服务静态网站的最小 Docker 镜像
<!--rehype:wrap-class=col-span-2--> <!--rehype:wrap-class=col-span-2-->

View File

@ -21,6 +21,7 @@ npm 备忘清单
| `npm install <package_name>@<tag>` | 使用 dist-tags 安装包 | | `npm install <package_name>@<tag>` | 使用 dist-tags 安装包 |
| `npm install -g <package_name>` | 全局安装包 | | `npm install -g <package_name>` | 全局安装包 |
| `npm uninstall <package_name>` | 卸载包 | | `npm uninstall <package_name>` | 卸载包 |
<!--rehype:class=auto-wrap-->
`--save` 是 npm@5 的默认值。 以前,使用不带 `--save``npm install` 不会更新 package.json。 `--save` 是 npm@5 的默认值。 以前,使用不带 `--save``npm install` 不会更新 package.json。
@ -40,6 +41,7 @@ npm 备忘清单
| `npm i /path/to/repo` | 绝对路径 | | `npm i /path/to/repo` | 绝对路径 |
| `npm i ./archive.tgz` | 压缩包 | | `npm i ./archive.tgz` | 压缩包 |
| `npm i https://site.com/archive.tgz` | 通过 HTTP 压缩包 | | `npm i https://site.com/archive.tgz` | 通过 HTTP 压缩包 |
<!--rehype:class=auto-wrap-->
### 清单 ### 清单
@ -49,6 +51,7 @@ npm 备忘清单
| `npm list -g --depth 0` | 列出所有全局安装包的安装版本 | | `npm list -g --depth 0` | 列出所有全局安装包的安装版本 |
| `npm view` | 列出此软件中所有依赖项的最新版本 | | `npm view` | 列出此软件中所有依赖项的最新版本 |
| `npm outdated` | 仅列出此软件中已过时的依赖项 | | `npm outdated` | 仅列出此软件中已过时的依赖项 |
<!--rehype:class=auto-wrap-->
### 更新 ### 更新

View File

@ -602,6 +602,17 @@ H2 部分
`<!--rehype:className=style-list-arrow-->` `<!--rehype:className=style-list-arrow-->`
### 隐藏表头强制小尺寸自动换行
:- | :-
:- | :-
`visualEffectState.inactive` | 后台应一直显示为非激活状态。
`titleBarStyle` _string_ _(win/mac)_ | 窗口标题栏样式。默认值 _(default)_
`titleBarStyle.default` | 分别返回 _mac_ 或者 _win_ 的标准标题栏
<!--rehype:className=auto-wrap-->
`<!--rehype:className=auto-wrap-->`
列表 列表
--- ---

View File

@ -426,9 +426,9 @@ YAML 参考
`"` | 环绕内嵌转义标量 `"` | 环绕内嵌转义标量
`|` | 块标量指示器 `|` | 块标量指示器
`>` | 折叠标量指示器 `>` | 折叠标量指示器
`-` | 剥离 chomp 修饰符(`|-` 或 `>-` `-` | 剥离 chomp 修饰符(`\|-` 或 `>-`
`+` | 保留 chomp 修饰符(`|+` 或 `>+` `+` | 保留 chomp 修饰符(`\|+` 或 `>+`
`1-9` | 显式缩进修饰符(`|1` 或 `>2`)。 <br/> 修饰符可以组合(`|2-`, `>+1` `1-9` | 显式缩进修饰符(`\|1` 或 `>2`)。 <br/> 修饰符可以组合(`\|2-`, `>+1`
### 标签属性(通常未指定) ### 标签属性(通常未指定)
<!--rehype:wrap-class=col-span-2--> <!--rehype:wrap-class=col-span-2-->
@ -441,6 +441,7 @@ YAML 参考
`!!foo` | 次要的(按照惯例,表示 `tag:yaml.org,2002:foo` `!!foo` | 次要的(按照惯例,表示 `tag:yaml.org,2002:foo`
`!h!foo` | 需要 `%TAG !h! <prefix>`(然后表示 `<prefix>foo` `!h!foo` | 需要 `%TAG !h! <prefix>`(然后表示 `<prefix>foo`
`!<foo>` | 逐字标记始终表示“foo” `!<foo>` | 逐字标记始终表示“foo”
<!--rehype:class=auto-wrap-->
### 杂项指标 ### 杂项指标
@ -515,6 +516,7 @@ YAML 参考
| `[.inf, -.Inf, .NAN]` | [无穷大(浮点数),负数,不是数字] | | `[.inf, -.Inf, .NAN]` | [无穷大(浮点数),负数,不是数字] |
| `{Y, true, Yes, ON}` | 布尔真 | | `{Y, true, Yes, ON}` | 布尔真 |
| `{n, FALSE, No, off}` | 布尔假 | | `{n, FALSE, No, off}` | 布尔假 |
<!--rehype:class=auto-wrap-->
另见 另见
--- ---

View File

@ -959,11 +959,14 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
.footer-wrap { .footer-wrap {
font-size: 0.75rem; font-size: 0.75rem;
} }
table { table.auto-wrap {
overflow: auto; overflow: auto;
display: block; display: block;
} }
table td, table th { table.auto-wrap thead {
display: none;
}
table.auto-wrap td, table.auto-wrap th {
display: block; display: block;
text-align: left !important; text-align: left !important;
} }
@ -973,9 +976,6 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
table td:first-child { table td:first-child {
white-space: initial; white-space: initial;
} }
.wrap-header.h3wrap > .wrap-body {
overflow: initial;
}
.tooltip:hover .tooltiptext { .tooltip:hover .tooltiptext {
display: inline-block; display: inline-block;
} }