bisheng-plugin-api-doc
v1.0.0
Published
To extract api from Markdown.
Downloads
3
Readme
bisheng-plugin-api-doc
To extract api doc from Markdown.
Usage
Install:
npm i --save bisheng-plugin-api-doc
Add 'bisheng-plugin-api-doc' to bisehng.config.js
's plugins.
module.exports = {
plugins: ['bisheng-plugin-api-doc'],
};
In Markdown:
---
title: ...
...
---
This is description.
---
## API
This is api doc content.
In template:
<div>
{ utils.toReactComponent(pageData.api) }
</div>
Liscense
MIT