docs: fix download button + other fixes (#8032)

- Fix text of download button
- Small fix to styling on small devies
- Fix mobile sidebar items using incorrect base url
This commit is contained in:
Shahed Nasser
2024-07-09 12:36:02 +00:00
committed by GitHub
parent b6fd82e31e
commit 4c89f91caf
13 changed files with 100 additions and 46 deletions
+8 -3
View File
@@ -1,8 +1,10 @@
import { DocsConfig } from "types"
import { mobileSidebarItemsV2 } from "docs-ui"
import { getMobileSidebarItems } from "docs-ui"
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
export const config: DocsConfig = {
baseUrl: process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000",
baseUrl,
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
// sidebar is auto generated
sidebar: {
@@ -14,6 +16,9 @@ export const config: DocsConfig = {
},
],
bottom: [],
mobile: mobileSidebarItemsV2,
mobile: getMobileSidebarItems({
baseUrl,
version: "v2",
}),
},
}