feat: adds openapi documentation

This commit is contained in:
Iain Learmonth 2025-05-21 13:59:53 +01:00
parent 5ee45209d8
commit b066849d90
6 changed files with 4041 additions and 2 deletions

View file

@ -1,4 +1,5 @@
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
import * as apiSidebar from './docs/api/sidebar';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
@ -14,8 +15,8 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
*/
const sidebars: SidebarsConfig = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
tutorialSidebar: ['intro', {'label': "Censorship 101", 'type': "category", items: [{'type': 'autogenerated', dirName: 'censorship'}]}],
apisidebar: apiSidebar.default,
// But you can create a sidebar manually
/*
tutorialSidebar: [