Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/intro/quickstart-ChatGPT.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Quickstart ChatGPT
ai_start: true
description: Preview and iterate on tscircuit designs directly inside ChatGPT using a small CDN bundle and a simple repo convention.
sidebar_position: 5
unlisted: true
---

### Configuring ChatGPT
Expand Down
25 changes: 22 additions & 3 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,30 @@ const config: Config = {
],
],
sidebarPath: "./sidebars.ts",
sidebarItemsGenerator: ({ defaultSidebarItemsGenerator, ...args }) =>
defaultSidebarItemsGenerator({
sidebarItemsGenerator: async ({
defaultSidebarItemsGenerator,
...args
}) => {
const items = await defaultSidebarItemsGenerator({
...args,
docs: args.docs.filter((doc) => !doc.frontMatter.unlisted),
}),
})
return items.map((item) =>
item.type === "category" && item.label === "Intro"
? {
...item,
items: [
...item.items,
{
type: "link",
label: "Quickstart AI",
href: "/guides/circuit-generation/generating-circuit-boards-with-ai",
},
],
}
: item,
)
},
routeBasePath: "/", // Serve docs at root
editUrl: "https://github.com/tscircuit/docs/tree/main/",
breadcrumbs: false,
Expand Down
Loading