docs: 汉化 CLI 模板
This commit is contained in:
parent
699b481e01
commit
ea64d68962
@ -2,13 +2,13 @@
|
||||
{$ doc.description | marked $}
|
||||
</div>
|
||||
|
||||
<h2>Command Overview</h2>
|
||||
<h2 id="command-overview">命令概览</h2>
|
||||
<table class="is-full-width list-table property-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Command</th>
|
||||
<th>Alias</th>
|
||||
<th>Description</th>
|
||||
<th>命令</th>
|
||||
<th>别名</th>
|
||||
<th>说明</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -20,4 +20,4 @@
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
@ -9,12 +9,12 @@
|
||||
|
||||
{% macro renderArguments(arguments, level = 2) %}
|
||||
{% if arguments.length %}
|
||||
<h{$ level $} class="no-anchor">Arguments</h{$ level $}>
|
||||
<h{$ level $} class="no-anchor" id="arguments">参数</h{$ level $}>
|
||||
<table class="is-full-width list-table property-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Argument</th>
|
||||
<th>Description</th>
|
||||
<th>参数</th>
|
||||
<th>说明</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -41,12 +41,12 @@
|
||||
|
||||
{% macro renderNamedOptions(options, level = 2) %}
|
||||
{% if options.length %}
|
||||
<h{$ level $} class="no-anchor">Options</h{$ level $}>
|
||||
<h{$ level $} class="no-anchor" id="options">选项</h{$ level $}>
|
||||
<table class="is-full-width list-table property-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Option</th>
|
||||
<th>Description</th>
|
||||
<th>选项</th>
|
||||
<th>说明</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -96,7 +96,7 @@
|
||||
|
||||
{%- macro renderSubcommands(container) -%}
|
||||
{% for command in container.positionalOptions %}{% if command.subcommands.length %}
|
||||
<h2><a id="{$ command.name $}-commands"></a>{$ command.name | title $} commands</h2>
|
||||
<h2><a id="{$ command.name $}-commands"></a>{$ command.name | title $} 命令</h2>
|
||||
{% for subcommand in command.subcommands %}
|
||||
<h3><code><a id="{$ subcommand.name $}-command"></a>{$ subcommand.name $}</code></h3>
|
||||
{% for name in container.names %}
|
||||
@ -108,4 +108,4 @@
|
||||
{$ renderNamedOptions(subcommand.namedOptions, 4) $}
|
||||
{% endfor %}
|
||||
{% endif %}{% endfor %}
|
||||
{%- endmacro -%}
|
||||
{%- endmacro -%}
|
||||
|
Loading…
x
Reference in New Issue
Block a user