Skip to content

Commit aebbc62

Browse files
authored
Merge pull request #14 from Space-DF/feat/selfhost-docs
Feat/selfhost docs
2 parents 7bd6351 + 8589980 commit aebbc62

25 files changed

Lines changed: 2495 additions & 213 deletions

File tree

components.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/app/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"iconLibrary": "lucide",
14+
"aliases": {
15+
"components": "@/components",
16+
"utils": "@/lib/utils",
17+
"ui": "@/components/ui",
18+
"lib": "@/lib",
19+
"hooks": "@/hooks"
20+
},
21+
"registries": {}
22+
}

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,30 @@
99
"start": "next start"
1010
},
1111
"dependencies": {
12+
"@base-ui/react": "^1.1.0",
13+
"@radix-ui/react-dropdown-menu": "^2.1.16",
14+
"@radix-ui/react-popover": "^1.1.15",
15+
"@radix-ui/react-slot": "^1.2.4",
1216
"@tailwindcss/postcss": "^4.1.18",
17+
"class-variance-authority": "^0.7.1",
18+
"clsx": "^2.1.1",
19+
"dayjs": "^1.11.19",
20+
"lucide-react": "^0.563.0",
1321
"next": "^16.0.7",
1422
"nextra": "^4.6.1",
1523
"nextra-theme-docs": "^4.6.1",
1624
"postcss": "^8.5.6",
1725
"react": "19.1.0",
1826
"react-dom": "19.1.0",
27+
"tailwind-merge": "^3.4.0",
1928
"tailwindcss": "^4.1.18"
2029
},
2130
"devDependencies": {
2231
"@types/node": "25.0.3",
2332
"@types/react": "19.2.7",
33+
"gray-matter": "^4.0.3",
2434
"pagefind": "^1.3.0",
35+
"tw-animate-css": "^1.4.0",
2536
"typescript": "5.9.3"
2637
}
2738
}

src/app/_components/CardInfo.jsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
export const CardInfo = ({
2+
classNames = {
3+
container: "",
4+
title: "",
5+
description: "",
6+
},
7+
title,
8+
children,
9+
}) => {
10+
return (
11+
<div
12+
className={`mt-10 p-6 bg-gray-100 dark:bg-zinc-800 dark:border-zinc-600 border border-gray-200 shadow rounded-lg ${classNames.container}`}
13+
>
14+
{title && (
15+
<p className={`font-semibold text-xl ${classNames.title}`}>{title}</p>
16+
)}
17+
<ul className={`list-disc ${classNames.description}`}>{children}</ul>
18+
</div>
19+
)
20+
}

src/app/_meta.js

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
export default {
22
index: {
3-
display: 'hidden'
3+
display: "hidden",
44
},
55
docs: {
6-
type: 'page',
7-
title: 'Documentation'
6+
type: "page",
7+
title: "Documentation",
88
},
99
blog: {
10-
type: 'page',
11-
title: 'Blog'
10+
type: "page",
11+
title: "Blog",
1212
},
1313
community: {
14-
type: 'page',
15-
title: 'Community'
16-
}
14+
type: "page",
15+
title: "Community",
16+
},
17+
troubleshooting: {
18+
theme: {
19+
sidebar: false, // Hide sidebar on this page
20+
toc: false,
21+
},
22+
type: "page",
23+
},
1724
}

src/app/globals.css

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,80 @@
11
@import "tailwindcss";
22

3+
@custom-variant dark (&:is(.dark *));
4+
35
@variant dark (&:where(.dark *));
46
/* SpaceDF Theme Color Configuration */
57
:root {
68
--nextra-primary-hue: 255deg;
79
--nextra-primary-saturation: 84%;
810
--nextra-primary-lightness: 80%;
11+
--radius: 0.625rem;
12+
--background: oklch(1 0 0);
13+
--foreground: oklch(0.145 0 0);
14+
--card: oklch(1 0 0);
15+
--card-foreground: oklch(0.145 0 0);
16+
--popover: oklch(1 0 0);
17+
--popover-foreground: oklch(0.145 0 0);
18+
--primary: oklch(0.205 0 0);
19+
--primary-foreground: oklch(0.985 0 0);
20+
--secondary: oklch(0.97 0 0);
21+
--secondary-foreground: oklch(0.205 0 0);
22+
--muted: oklch(0.97 0 0);
23+
--muted-foreground: oklch(0.556 0 0);
24+
--accent: oklch(0.97 0 0);
25+
--accent-foreground: oklch(0.205 0 0);
26+
--destructive: oklch(0.577 0.245 27.325);
27+
--border: oklch(0.922 0 0);
28+
--input: oklch(0.922 0 0);
29+
--ring: oklch(0.708 0 0);
30+
--chart-1: oklch(0.646 0.222 41.116);
31+
--chart-2: oklch(0.6 0.118 184.704);
32+
--chart-3: oklch(0.398 0.07 227.392);
33+
--chart-4: oklch(0.828 0.189 84.429);
34+
--chart-5: oklch(0.769 0.188 70.08);
35+
--sidebar: oklch(0.985 0 0);
36+
--sidebar-foreground: oklch(0.145 0 0);
37+
--sidebar-primary: oklch(0.205 0 0);
38+
--sidebar-primary-foreground: oklch(0.985 0 0);
39+
--sidebar-accent: oklch(0.97 0 0);
40+
--sidebar-accent-foreground: oklch(0.205 0 0);
41+
--sidebar-border: oklch(0.922 0 0);
42+
--sidebar-ring: oklch(0.708 0 0);
943
}
1044

1145
.dark {
1246
--nextra-primary-lightness: 80%;
47+
--background: oklch(0.145 0 0);
48+
--foreground: oklch(0.985 0 0);
49+
--card: oklch(0.205 0 0);
50+
--card-foreground: oklch(0.985 0 0);
51+
--popover: oklch(0.205 0 0);
52+
--popover-foreground: oklch(0.985 0 0);
53+
--primary: oklch(0.922 0 0);
54+
--primary-foreground: oklch(0.205 0 0);
55+
--secondary: oklch(0.269 0 0);
56+
--secondary-foreground: oklch(0.985 0 0);
57+
--muted: oklch(0.269 0 0);
58+
--muted-foreground: oklch(0.708 0 0);
59+
--accent: oklch(0.269 0 0);
60+
--accent-foreground: oklch(0.985 0 0);
61+
--destructive: oklch(0.704 0.191 22.216);
62+
--border: oklch(1 0 0 / 10%);
63+
--input: oklch(1 0 0 / 15%);
64+
--ring: oklch(0.556 0 0);
65+
--chart-1: oklch(0.488 0.243 264.376);
66+
--chart-2: oklch(0.696 0.17 162.48);
67+
--chart-3: oklch(0.769 0.188 70.08);
68+
--chart-4: oklch(0.627 0.265 303.9);
69+
--chart-5: oklch(0.645 0.246 16.439);
70+
--sidebar: oklch(0.205 0 0);
71+
--sidebar-foreground: oklch(0.985 0 0);
72+
--sidebar-primary: oklch(0.488 0.243 264.376);
73+
--sidebar-primary-foreground: oklch(0.985 0 0);
74+
--sidebar-accent: oklch(0.269 0 0);
75+
--sidebar-accent-foreground: oklch(0.985 0 0);
76+
--sidebar-border: oklch(1 0 0 / 10%);
77+
--sidebar-ring: oklch(0.556 0 0);
1378
}
1479

1580
/* Custom SpaceDF primary color #4006AA overrides */
@@ -54,3 +119,71 @@ html[class~="dark"] .dark\:nx-text-primary-600 {
54119
.dark .svg-icon {
55120
filter: brightness(0) invert(1);
56121
}
122+
123+
@theme inline {
124+
--radius-sm: calc(var(--radius) - 4px);
125+
--radius-md: calc(var(--radius) - 2px);
126+
--radius-lg: var(--radius);
127+
--radius-xl: calc(var(--radius) + 4px);
128+
--radius-2xl: calc(var(--radius) + 8px);
129+
--radius-3xl: calc(var(--radius) + 12px);
130+
--radius-4xl: calc(var(--radius) + 16px);
131+
--color-background: var(--background);
132+
--color-foreground: var(--foreground);
133+
--color-card: var(--card);
134+
--color-card-foreground: var(--card-foreground);
135+
--color-popover: var(--popover);
136+
--color-popover-foreground: var(--popover-foreground);
137+
--color-primary: var(--primary);
138+
--color-primary-foreground: var(--primary-foreground);
139+
--color-secondary: var(--secondary);
140+
--color-secondary-foreground: var(--secondary-foreground);
141+
--color-muted: var(--muted);
142+
--color-muted-foreground: var(--muted-foreground);
143+
--color-accent: var(--accent);
144+
--color-accent-foreground: var(--accent-foreground);
145+
--color-destructive: var(--destructive);
146+
--color-border: var(--border);
147+
--color-input: var(--input);
148+
--color-ring: var(--ring);
149+
--color-chart-1: var(--chart-1);
150+
--color-chart-2: var(--chart-2);
151+
--color-chart-3: var(--chart-3);
152+
--color-chart-4: var(--chart-4);
153+
--color-chart-5: var(--chart-5);
154+
--color-sidebar: var(--sidebar);
155+
--color-sidebar-foreground: var(--sidebar-foreground);
156+
--color-sidebar-primary: var(--sidebar-primary);
157+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
158+
--color-sidebar-accent: var(--sidebar-accent);
159+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
160+
--color-sidebar-border: var(--sidebar-border);
161+
--color-sidebar-ring: var(--sidebar-ring);
162+
}
163+
164+
@layer base {
165+
* {
166+
@apply border-border outline-ring/50;
167+
}
168+
body {
169+
@apply bg-background text-foreground;
170+
}
171+
}
172+
173+
html {
174+
font-size: 18px;
175+
}
176+
177+
@media (max-width: 768px) {
178+
html {
179+
font-size: 14px;
180+
}
181+
182+
h1 {
183+
font-size: 24px;
184+
}
185+
186+
h2 {
187+
font-size: 20px;
188+
}
189+
}

src/app/layout.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default async function RootLayout({ children }) {
3636
const navbar = (
3737
<Navbar
3838
logo={
39-
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
39+
<div className="flex flex-col md:flex-row items-center md:gap-2">
4040
<img
4141
src="/spacedf_logo.svg"
4242
alt="SpaceDF"
@@ -56,7 +56,7 @@ export default async function RootLayout({ children }) {
5656
)
5757
const pageMap = await getPageMap()
5858
return (
59-
<html lang="en" dir="ltr" suppressHydrationWarning style={{ fontSize: 18 }}>
59+
<html lang="en" dir="ltr" suppressHydrationWarning>
6060
<Head
6161
faviconGlyph="✦"
6262
color={{

0 commit comments

Comments
 (0)