2
0

📝 Introduce auto generate API doc

This commit is contained in:
Baptiste Arnaud
2022-11-22 17:30:20 +01:00
parent 04af489119
commit 11695efb57
60 changed files with 1480 additions and 914 deletions

View File

@@ -1,10 +1,10 @@
/** @type {import('@docusaurus/types').DocusaurusConfig} */
/** @type {import('@docusaurus/types').Config} */
module.exports = {
title: 'Typebot docs',
tagline: 'Get to Typebot next level with its documentation',
url: 'https://docs.typebot.io',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
organizationName: 'baptisteArno', // Usually your GitHub org/user name.
@@ -16,6 +16,16 @@ module.exports = {
src: 'img/logo.svg',
},
items: [
{
href: '/',
label: 'Docs',
position: 'left',
},
{
href: '/api',
label: 'API Reference',
position: 'left',
},
{
href: 'https://github.com/baptisteArno/typebot.io/tree/main/apps/docs',
label: 'Contribute',
@@ -73,14 +83,18 @@ module.exports = {
],
},
colorMode: {
disableSwitch: false,
respectPrefersColorScheme: true,
},
},
presets: [
[
'@docusaurus/preset-classic',
'docusaurus-preset-openapi',
/** @type {import('docusaurus-preset-openapi').Options} */
{
api: {
path: 'openapi',
routeBasePath: '/api',
},
docs: {
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: '/',