mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user