docs: 格式化文档 (#9450)

* Format doc

* Update api.md

* Add <code> tag for <route> and fix English documentation

* Update docs/parameter.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update docs/parameter.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
This commit is contained in:
Chenxing Luo
2022-04-04 08:21:24 -04:00
committed by GitHub
parent 300af73187
commit 5012e71c87
6 changed files with 39 additions and 39 deletions

View File

@@ -15,7 +15,7 @@
<div v-if="path.match(/(?<=:).*?(?=\/|$)/g)">
<p>
Parameters:
<ul><li class="params" v-for="(item, index) in path.match(/(?<=:).*?(?=\/|$)/g)">{{item.replace('?','')}}, {{(item.includes('?'))?'optional':'required'}} - <span v-html="renderMarkdown(paramsDesc[index])"></span></li></ul> </p>
<ul><li class="params" v-for="(item, index) in path.match(/(?<=:).*?(?=\/|$)/g)"><code>{{item.replace('?','')}}</code>, {{(item.includes('?'))?'optional':'required'}} - <span v-html="renderMarkdown(paramsDesc[index])"></span></li></ul> </p>
</div>
<div v-else><p>Parameters: N/A</p></div>
<slot></slot>