Skip to content

Commit 4f96f83

Browse files
committed
Website in working order.
1 parent 19af787 commit 4f96f83

File tree

5 files changed

+265
-235
lines changed

5 files changed

+265
-235
lines changed

apps/website/.content-collections/generated/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// generated by content-collections at Tue Jun 24 2025 10:53:38 GMT-0500 (Central Daylight Time)
1+
// generated by content-collections at Tue Jun 24 2025 10:57:29 GMT-0500 (Central Daylight Time)
22

33
import allDocs from "./allDocs.js";
44
import allMetas from "./allMetas.js";

apps/website/src/app/docs/[[...slug]]/layout.tsx

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,49 @@ import { RootToggle } from "fumadocs-ui/components/layout/root-toggle";
44
import { DocsLayout } from "fumadocs-ui/layouts/docs";
55
import { TerminalIcon, UserIcon } from "lucide-react";
66
import type { ReactNode } from "react";
7+
import "../../../core/styles/docs.scss";
78

89
export default function Layout({ children }: { children: ReactNode }) {
9-
return (
10-
<DocsLayout
11-
tree={docsSource.pageTree}
12-
{...baseOptions}
13-
containerProps={{
14-
className:
15-
"relative [&_#nd-sidebar]:md:sticky [&_#nd-sidebar]:top-0 [&_#nd-sidebar]:bg-background [&_#nd-sidebar_div[data-fdid]]:w-full bg-background text-foreground [&_#nd-toc]:min-w-[200px] [&_#nd-toc_a[data-active]]:text-foreground/80 hover:[&_#nd-toc_a[data-active]]:text-foreground",
16-
}}
17-
sidebar={{
18-
banner: (
19-
<RootToggle
20-
className="bg-background"
21-
options={[
22-
{
23-
title: "User",
24-
description: "User Documentation",
25-
url: "/docs/user",
26-
props: {
27-
className:
28-
"bg-popover hover:bg-muted/80 transition-colors duration-150",
29-
},
30-
icon: <UserIcon />,
31-
},
32-
{
33-
title: "Developer",
34-
description: "Developer Documentation",
35-
url: "/docs/developer",
36-
props: {
37-
className:
38-
"bg-popover hover:bg-muted/80 transition-colors duration-150",
39-
},
40-
icon: <TerminalIcon />,
41-
},
42-
]}
43-
/>
44-
),
45-
}}
46-
>
47-
{children}
48-
</DocsLayout>
49-
);
10+
return (
11+
<DocsLayout
12+
tree={docsSource.pageTree}
13+
{...baseOptions}
14+
containerProps={{
15+
className: "[&_#nd-sidebar>div[data-fdid]]:w-full",
16+
/* className: */
17+
/* "relative [&_#nd-sidebar]:md:sticky [&_#nd-sidebar]:top-0 [&_#nd-sidebar]:bg-background [&_#nd-sidebar_div[data-fdid]]:w-full bg-background text-foreground [&_#nd-toc]:min-w-[200px] [&_#nd-toc_a[data-active]]:text-foreground/80 hover:[&_#nd-toc_a[data-active]]:text-foreground", */
18+
}}
19+
sidebar={{
20+
banner: (
21+
<RootToggle
22+
className="bg-background"
23+
options={[
24+
{
25+
title: "User",
26+
description: "User Documentation",
27+
url: "/docs/user",
28+
props: {
29+
className:
30+
"bg-popover hover:bg-muted/80 transition-colors duration-150",
31+
},
32+
icon: <UserIcon />,
33+
},
34+
{
35+
title: "Developer",
36+
description: "Developer Documentation",
37+
url: "/docs/developer",
38+
props: {
39+
className:
40+
"bg-popover hover:bg-muted/80 transition-colors duration-150",
41+
},
42+
icon: <TerminalIcon />,
43+
},
44+
]}
45+
/>
46+
),
47+
}}
48+
>
49+
{children}
50+
</DocsLayout>
51+
);
5052
}

apps/website/src/app/globals.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
/* @tailwind base; */
2+
/* @tailwind components; */
3+
/* @tailwind utilities; */
44

55
:root {
66
--radius: 0.5rem;
Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
1-
@import "fumadocs-ui/css/neutral.css";
2-
@import "fumadocs-ui/css/preset.css";
3-
41
div[data-radix-popper-content-wrapper] {
52
background-color: hsl(var(--popover));
63
}
4+
5+
aside#nd-sidebar {
6+
height: 100%;
7+
8+
button[data-theme-toggle],
9+
button[data-collapsed],
10+
button[data-search-full] {
11+
display: none;
12+
}
13+
}
14+
15+
div#nd-toc {
16+
a {
17+
transition-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
18+
transition-property: color;
19+
transition-duration: 200ms;
20+
color: hsl(var(--foreground) / 0.8);
21+
22+
&:hover {
23+
color: hsl(var(--foreground));
24+
}
25+
}
26+
}
27+
28+
div[data-toc-popover] {
29+
background-color: hsl(var(--background));
30+
31+
a {
32+
color: hsl(var(--foreground));
33+
}
34+
}

0 commit comments

Comments
 (0)