start to embed api doc into jekyll
This commit is contained in:
6
docs/.api_header.md
Normal file
6
docs/.api_header.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
layout: default
|
||||||
|
title: API
|
||||||
|
permalink: /api
|
||||||
|
nav_order: 8
|
||||||
|
---
|
||||||
20
docs/.api_template.hbs
Normal file
20
docs/.api_template.hbs
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{{#orphans}}
|
||||||
|
|
||||||
|
### {{description}}
|
||||||
|
|
||||||
|
{{type.names}}
|
||||||
|
{: .label .label-green}
|
||||||
|
|
||||||
|
`{{name}}`
|
||||||
|
|
||||||
|
{{#each params}}
|
||||||
|
| {{name}} | `{{type.names}}` | {{{description}}} |
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
{{#each customTags}}
|
||||||
|
> {{tag}} "{{tag}}"
|
||||||
|
> {{{value}}}
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
{{/orphans}}
|
||||||
|
|
||||||
Reference in New Issue
Block a user