docs: update api-reference project for v2 (#7307)

* remove everything v1 and make v2 default

* move main v2 rewrites to book

* move rewrites to book + other fixes
This commit is contained in:
Shahed Nasser
2024-05-16 09:02:35 +02:00
committed by GitHub
parent 9b1998b9b2
commit 22f30f54fd
2148 changed files with 8965 additions and 140283 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
import { DocsConfig } from "types"
import { mobileSidebarItemsV1, legacyMobileSidebarItems } from "docs-ui"
import { mobileSidebarItemsV2 } from "docs-ui"
export const config: DocsConfig = {
baseUrl: process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000",
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
// sidebar is auto generated
sidebar: {
top: [
@@ -13,6 +14,6 @@ export const config: DocsConfig = {
},
],
bottom: [],
mobile: process.env.NEXT_PUBLIC_SHOW_V2 ? mobileSidebarItemsV1 : legacyMobileSidebarItems,
mobile: mobileSidebarItemsV2,
},
}