Reference: https://docusaurus.io/docs/en/site-creation
- Create a new
md
file indocs/components
folder. For example:Label.md
. The newmd
file must contain a proper header for Docusaurus.- Minimum headers:
--- id: label title: Label sidebar_label: Label ---
- For full list of Docusaurus markdown headers, follow this link
- Minimum headers:
- To add
Edit on CodeSandbox
button, add a CodeSandbox snippet id to code snippet. For examplevar button = new kintoneUIComponent.Button({ text: 'Submit', type: "submit" }); var body = document.getElementsByTagName("BODY")[0]; body.appendChild(button.render());
- To add live sample, insert a custome fence Javascript snippets and provide a unique id. For example:
var component = new kintoneUIComponent.Button({ text: 'Submit', type: 'submit' });
- Open
website/sitebars.json
- Add path of new document into
API Reference
section (identify document file by theid
in document's header section). Sample result:{ "docs": { "Developer Guide": ["getting-started"], "API Reference": ["components/button", "components/label"] } }