docs: add prepare script to generate sidebar (#11894)
This commit is contained in:
22
www/apps/api-reference/scripts/prepare.mjs
Normal file
22
www/apps/api-reference/scripts/prepare.mjs
Normal file
@@ -0,0 +1,22 @@
|
||||
import { generateSplitSidebars } from "build-scripts"
|
||||
|
||||
async function main() {
|
||||
await generateSplitSidebars({
|
||||
sidebars: [
|
||||
{
|
||||
sidebar_id: "store",
|
||||
title: "Store",
|
||||
items: [],
|
||||
custom_autogenerate: "api-ref",
|
||||
},
|
||||
{
|
||||
sidebar_id: "admin",
|
||||
title: "Admin",
|
||||
items: [],
|
||||
custom_autogenerate: "api-ref",
|
||||
},
|
||||
],
|
||||
})
|
||||
}
|
||||
|
||||
void main()
|
||||
Reference in New Issue
Block a user