Skip to content

Commit 1ad31c9

Browse files
v0.3.52: docs updates, deployment version tables, workspace-level api keys, knowledgebase improvements
2 parents ea8762e + 065fc5b commit 1ad31c9

File tree

256 files changed

+18202
-2639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+18202
-2639
lines changed

apps/docs/app/(docs)/[[...slug]]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import defaultMdxComponents from 'fumadocs-ui/mdx'
12
import { DocsBody, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/page'
23
import { notFound } from 'next/navigation'
3-
import mdxComponents from '@/components/mdx-components'
44
import { source } from '@/lib/source'
55

66
export const dynamic = 'force-dynamic'
@@ -36,7 +36,7 @@ export default async function Page(props: { params: Promise<{ slug?: string[] }>
3636
<DocsTitle>{page.data.title}</DocsTitle>
3737
<DocsDescription>{page.data.description}</DocsDescription>
3838
<DocsBody>
39-
<MDX components={mdxComponents} />
39+
<MDX components={defaultMdxComponents} />
4040
</DocsBody>
4141
</DocsPage>
4242
)

apps/docs/app/(docs)/layout.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { ReactNode } from 'react'
22
import { DocsLayout } from 'fumadocs-ui/layouts/docs'
33
import { ExternalLink, GithubIcon } from 'lucide-react'
4+
import Image from 'next/image'
45
import Link from 'next/link'
56
import { source } from '@/lib/source'
67

@@ -23,7 +24,17 @@ export default function Layout({ children }: { children: ReactNode }) {
2324
<DocsLayout
2425
tree={source.pageTree}
2526
nav={{
26-
title: <div className='flex items-center font-medium'>Sim</div>,
27+
title: (
28+
<div className='flex items-center'>
29+
<Image
30+
src='/static/logo.png'
31+
alt='Sim'
32+
width={60}
33+
height={24}
34+
className='h-6 w-auto'
35+
/>
36+
</div>
37+
),
2738
}}
2839
links={[
2940
{
@@ -33,9 +44,10 @@ export default function Layout({ children }: { children: ReactNode }) {
3344
},
3445
]}
3546
sidebar={{
36-
defaultOpenLevel: 1,
47+
defaultOpenLevel: 0,
3748
collapsible: true,
3849
footer: null,
50+
banner: null,
3951
}}
4052
>
4153
{children}

apps/docs/app/global.css

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,150 @@
66
--color-fd-primary: #802fff; /* Purple from control-bar component */
77
}
88

9+
/* Target any potential border classes */
10+
* {
11+
--fd-border-sidebar: transparent !important;
12+
}
13+
14+
/* Override any CSS custom properties for borders */
15+
:root {
16+
--fd-border: transparent !important;
17+
--fd-border-sidebar: transparent !important;
18+
}
19+
20+
/* Sidebar improvements for cleaner design */
21+
[data-sidebar] {
22+
--fd-sidebar-width: 280px;
23+
background-color: rgb(255 255 255);
24+
padding-top: 16px;
25+
}
26+
27+
/* Clean sidebar container */
28+
[data-sidebar] > div {
29+
padding: 0 16px;
30+
}
31+
32+
/* Section headers/separators styling */
33+
[data-sidebar] .text-sm.font-medium.text-muted-foreground,
34+
[data-sidebar] [data-separator] {
35+
font-size: 11px;
36+
font-weight: 600;
37+
text-transform: uppercase;
38+
letter-spacing: 0.05em;
39+
margin-top: 20px;
40+
margin-bottom: 6px;
41+
padding-left: 12px;
42+
padding-right: 12px;
43+
color: rgb(115 115 115);
44+
border: none;
45+
background: none;
46+
}
47+
48+
/* First separator should have less top margin */
49+
[data-sidebar] [data-separator]:first-of-type {
50+
margin-top: 12px;
51+
}
52+
53+
/* Clean sidebar item styling */
54+
[data-sidebar] a {
55+
padding: 8px 12px;
56+
margin: 1px 0;
57+
border-radius: 6px;
58+
font-size: 14px;
59+
font-weight: 400;
60+
line-height: 1.4;
61+
transition: all 0.15s ease;
62+
display: block;
63+
color: rgb(71 85 105);
64+
text-decoration: none;
65+
}
66+
67+
[data-sidebar] a[data-active="true"] {
68+
background-color: rgba(128, 47, 255, 0.08);
69+
color: var(--color-fd-primary);
70+
font-weight: 500;
71+
}
72+
73+
[data-sidebar] a:hover:not([data-active="true"]) {
74+
background-color: rgb(248 250 252);
75+
color: rgb(51 65 85);
76+
}
77+
78+
/* Improve spacing between sidebar items */
79+
[data-sidebar] nav > * + * {
80+
margin-top: 2px;
81+
}
82+
83+
/* Section group styling */
84+
[data-sidebar] [data-folder] {
85+
margin-bottom: 4px;
86+
}
87+
88+
[data-sidebar] [data-folder] > div:first-child {
89+
font-weight: 500;
90+
font-size: 13px;
91+
color: rgb(15 23 42);
92+
padding: 6px 12px;
93+
margin-bottom: 4px;
94+
}
95+
96+
/* Clean up folder toggle buttons */
97+
[data-sidebar] button[data-folder-toggle] {
98+
padding: 4px 8px 4px 12px;
99+
border-radius: 6px;
100+
font-size: 13px;
101+
font-weight: 500;
102+
color: rgb(51 65 85);
103+
}
104+
105+
[data-sidebar] button[data-folder-toggle]:hover {
106+
background-color: rgb(248 250 252);
107+
}
108+
109+
/* Nested item indentation */
110+
[data-sidebar] [data-folder] a {
111+
padding-left: 24px;
112+
font-size: 14px;
113+
}
114+
115+
/* Dark mode adjustments */
116+
@media (prefers-color-scheme: dark) {
117+
[data-sidebar] {
118+
background-color: rgb(2 8 23);
119+
}
120+
121+
[data-sidebar] a {
122+
color: rgb(148 163 184);
123+
}
124+
125+
[data-sidebar] a:hover:not([data-active="true"]) {
126+
background-color: rgb(30 41 59);
127+
color: rgb(226 232 240);
128+
}
129+
130+
[data-sidebar] a[data-active="true"] {
131+
background-color: rgba(128, 47, 255, 0.15);
132+
color: var(--color-fd-primary);
133+
}
134+
135+
[data-sidebar] .text-sm.font-medium.text-muted-foreground,
136+
[data-sidebar] [data-separator] {
137+
color: rgb(148 163 184);
138+
}
139+
140+
[data-sidebar] [data-folder] > div:first-child {
141+
color: rgb(226 232 240);
142+
}
143+
144+
[data-sidebar] button[data-folder-toggle] {
145+
color: rgb(148 163 184);
146+
}
147+
148+
[data-sidebar] button[data-folder-toggle]:hover {
149+
background-color: rgb(30 41 59);
150+
}
151+
}
152+
9153
/* Custom text highlighting styles */
10154
.text-highlight {
11155
color: var(--color-fd-primary);
@@ -16,6 +160,23 @@
16160
color: var(--color-fd-primary);
17161
}
18162

163+
/* Add bottom spacing to prevent abrupt page endings */
164+
[data-content] {
165+
padding-bottom: 4rem;
166+
}
167+
168+
/* Alternative fallback for different Fumadocs versions */
169+
main article,
170+
.docs-page main {
171+
padding-bottom: 4rem;
172+
}
173+
174+
/* Remove any unwanted borders/outlines from video elements */
175+
video {
176+
outline: none !important;
177+
border-style: solid !important;
178+
}
179+
19180
/* Tailwind v4 content sources */
20181
@source '../app/**/*.{js,ts,jsx,tsx,mdx}';
21182
@source '../components/**/*.{js,ts,jsx,tsx,mdx}';

apps/docs/components/mdx-components.tsx

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)