Files
supabase/apps/docs/generator/templates/CliTemplate.ts
T
2022-12-12 18:41:25 +08:00

53 lines
905 B
TypeScript

const template = `
---
id: usage
slug: /usage
title: Usage
toc_max_heading_level: 3
---
{/* <!-- AUTOGENERATED: DO NOT EDIT DIRECTLY --> */}
<%- info.description %>
<% commands.forEach(function(command){ %>
{/* <!-- AUTOGENERATED: DO NOT EDIT DIRECTLY --> */}
<br /><br />
<%- command.heading %>
{/* <!-- AUTOGENERATED: DO NOT EDIT DIRECTLY --> */}
<%- command.description %>
<% if(command.usage){ %>
<%- command.usage %>
<% }; %>
{/* <!-- AUTOGENERATED: DO NOT EDIT DIRECTLY --> */}
<% if(command.subcommands.length > 0){ %>
**Available Commands**
<% command.subcommandList.forEach(function(subcommand){ %>
- <a href="#<%- subcommand.id %>"><code><%- subcommand.title %></code></a>
<% }); %>
<% } %>
{/* <!-- AUTOGENERATED: DO NOT EDIT DIRECTLY --> */}
**Options**
<%- command.options %>
<% }); %>
{/* <!-- AUTOGENERATED: DO NOT EDIT DIRECTLY --> */}
`.trim()
export default template