Skip to content

Commit 674d0f4

Browse files
author
Lasim
committed
feat: Add sidebar title support and new docs pages
1 parent bdf5214 commit 674d0f4

File tree

4 files changed

+13
-33
lines changed

4 files changed

+13
-33
lines changed

docs/meta.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@
1313
"onboard-new-team-members",
1414
"global-settings",
1515
"security",
16+
"device-management",
1617
"---MCP Server---",
1718
"mcp-catalog",
1819
"mcp-installation",
1920
"mcp-categories",
21+
"mcp-admin-schema-workflow",
22+
"---MCP Server Configuration---",
23+
"mcp-configuration",
24+
"mcp-team-installation",
25+
"mcp-user-configuration",
2026
"---Administration---",
2127
"auth",
2228
"github-application",

lib/source.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
// The .source alias will be generated by 'fumadocs-mdx' postinstall script
2-
// or when you run `next dev`.
3-
// If TypeScript complains about '@/.source', you might need to run `npm run postinstall`
4-
// or `npm run dev` once to generate it.
5-
import { docs } from '../.source/index';
1+
import { docs } from '../.source';
62
import { loader } from 'fumadocs-core/source';
73
import { icons } from 'lucide-react';
84
import { createElement } from 'react';
@@ -28,7 +24,11 @@ function createIconHandler() {
2824
}
2925

3026
// Filter docs into separate sections
31-
const allDocs = docs.docs;
27+
type Doc = (typeof docs.docs)[number];
28+
const allDocs = docs.docs.map((doc: Doc) => ({
29+
...doc,
30+
title: doc.sidebar ?? doc.title,
31+
}));
3232
const allMeta = docs.meta;
3333

3434
// Main docs (include all files for complete control via meta.json)

next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference path="./.next/types/routes.d.ts" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

package-lock.json

Lines changed: 0 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)