doc: update github-actions.md 88c09562a2

This commit is contained in:
jaywcjlove
2022-11-25 01:58:01 +00:00
parent 02741d16b5
commit 7d8a89d0bc
6 changed files with 135 additions and 120 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,7 @@
<p>这个快速参考备忘单提供了使用 <a href="https://stedolan.github.io/jq/">jq</a> 命令的各种方法。</p>
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#介绍">介绍</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#选项">选项</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#学习示例">学习示例</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#获取一个键的值">获取一个键的值</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#数组运算">数组运算</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#构造一个数组对象">构造一个数组/对象</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#计算一个值的长度">计算一个值的长度</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#取出数组中的键">取出数组中的键</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#使用多个过滤器">使用多个过滤器</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#管道传递给下一个过滤器">管道传递给下一个过滤器</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#条件语句判断">条件语句判断</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#每个输入调用过滤器">每个输入调用过滤器</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#条件判断">条件判断</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串插入值并进行运算">字符串插入值并进行运算</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串转-json-数组">字符串转 JSON 数组</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#介绍">介绍</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#选项">选项</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#学习示例">学习示例</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#获取一个键的值">获取一个键的值</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#数组运算">数组运算</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#构造一个数组对象">构造一个数组/对象</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#计算一个值的长度">计算一个值的长度</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#取出数组中的键">取出数组中的键</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#使用多个过滤器">使用多个过滤器</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#管道传递给下一个过滤器">管道传递给下一个过滤器</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#条件语句判断">条件语句判断</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#每个输入调用过滤器">每个输入调用过滤器</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#条件判断">条件判断</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串插入值并进行运算">字符串插入值并进行运算</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串转-json-数组">字符串转 JSON 数组</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#更改发布注册表">更改发布注册表</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="介绍"><a aria-hidden="true" tabindex="-1" href="#介绍"><span class="icon icon-link"></span></a>介绍</h3><div class="wrap-body">
<p>jq 就像用于 JSON 数据的 <a href="./sed.html">sed</a> - 您可以使用它来切片、过滤、映射和转换结构化数据</p>
<ul>
@ -249,6 +249,12 @@
</span><span class="code-line"><span class="token punctuation">]</span>
</span></code></pre>
<!--rehype:className=wrap-text -->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="更改发布注册表"><a aria-hidden="true" tabindex="-1" href="#更改发布注册表"><span class="icon icon-link"></span></a>更改发布注册表</h3><div class="wrap-body">
<pre class="language-bash"><code class="language-bash code-highlight"><span class="code-line"><span class="token builtin class-name">echo</span> <span class="token string">"<span class="token variable"><span class="token variable">$(</span>jq <span class="token string">'.publishConfig.registry = "https://npm.pkg.github.com"'</span> package.json<span class="token variable">)</span></span>"</span> <span class="token operator">></span> package.json
</span></code></pre>
<p>将组织范围添加到包名称</p>
<pre class="language-bash"><code class="language-bash code-highlight"><span class="code-line"><span class="token builtin class-name">echo</span> <span class="token string">"<span class="token variable"><span class="token variable">$(</span>jq <span class="token string">'.name = "@scope/package"'</span> package.json<span class="token variable">)</span></span>"</span> <span class="token operator">></span> package.json
</span></code></pre>
</div></div></div></div></div><div class="wrap h2body-not-exist"><div class="wrap-header h2wrap"><h2 id="另见"><a aria-hidden="true" tabindex="-1" href="#另见"><span class="icon icon-link"></span></a>另见</h2><div class="wrap-body">
<ul>
<li><a href="https://stedolan.github.io/jq/">jq 官网</a> <em>(stedolan.github.io)</em></li>

File diff suppressed because one or more lines are too long

View File

@ -385,6 +385,9 @@ body.home .max-container a.home-button:visited:hover {
gap: 2rem;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-card br {
display: none;
}
.home-card :is(a.contributing, a.tag) {
position: relative;
}