docs: 汉化 CLI 模板

This commit is contained in:
Zhicheng Wang 2018-10-22 19:55:49 +08:00
parent 699b481e01
commit ea64d68962
2 changed files with 13 additions and 13 deletions

View File

@ -2,13 +2,13 @@
{$ doc.description | marked $} {$ doc.description | marked $}
</div> </div>
<h2>Command Overview</h2> <h2 id="command-overview">命令概览</h2>
<table class="is-full-width list-table property-table"> <table class="is-full-width list-table property-table">
<thead> <thead>
<tr> <tr>
<th>Command</th> <th>命令</th>
<th>Alias</th> <th>别名</th>
<th>Description</th> <th>说明</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>

View File

@ -9,12 +9,12 @@
{% macro renderArguments(arguments, level = 2) %} {% macro renderArguments(arguments, level = 2) %}
{% if arguments.length %} {% 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"> <table class="is-full-width list-table property-table">
<thead> <thead>
<tr> <tr>
<th>Argument</th> <th>参数</th>
<th>Description</th> <th>说明</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -41,12 +41,12 @@
{% macro renderNamedOptions(options, level = 2) %} {% macro renderNamedOptions(options, level = 2) %}
{% if options.length %} {% 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"> <table class="is-full-width list-table property-table">
<thead> <thead>
<tr> <tr>
<th>Option</th> <th>选项</th>
<th>Description</th> <th>说明</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -96,7 +96,7 @@
{%- macro renderSubcommands(container) -%} {%- macro renderSubcommands(container) -%}
{% for command in container.positionalOptions %}{% if command.subcommands.length %} {% 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 %} {% for subcommand in command.subcommands %}
<h3><code><a id="{$ subcommand.name $}-command"></a>{$ subcommand.name $}</code></h3> <h3><code><a id="{$ subcommand.name $}-command"></a>{$ subcommand.name $}</code></h3>
{% for name in container.names %} {% for name in container.names %}