Skip to content

Commit 31c63b1

Browse files
authored
Merge pull request #183 from deploystackio/feat/categories
Feat/categories
2 parents 479c100 + 20bd3df commit 31c63b1

File tree

127 files changed

+5075
-6494
lines changed

Some content is hidden

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

127 files changed

+5075
-6494
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,6 @@ coverage/
7575
._*.json
7676
._*.ts
7777
._*.tsx
78+
._*.css
79+
._*.cjs
7880
out/

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DeployStack Documentation
22

3-
This repository contains the official documentation site for the [DeployStack](https://deploystack.io/docs/) ecosystem, built with [fumadocs](https://fumadocs.vercel.app/). Visit [deploystack.io](https://deploystack.io) to learn more about our platform.
3+
This repository contains the official documentation site for [DeployStack](https://deploystack.io/docs/), The Complete MCP Management Platform, built with [fumadocs](https://fumadocs.vercel.app/). Visit [deploystack.io](https://deploystack.io) to learn more about our platform.
44

55
## Technology Stack
66

@@ -15,9 +15,14 @@ This repository contains the official documentation site for the [DeployStack](h
1515
```text
1616
.
1717
├── docs/ # Documentation content (MDX files)
18-
│ ├── deploystack/ # DeployStack documentation
19-
│ ├── docker-to-iac/ # Docker-to-IaC documentation
20-
│ └── assets/ # Images and static assets
18+
│ ├── development/ # Development documentation
19+
│ │ ├── backend/ # Backend development guides
20+
│ │ ├── frontend/ # Frontend development guides
21+
│ │ └── gateway/ # Gateway architecture & implementation
22+
│ ├── self-hosted/ # Self-hosting guides
23+
│ ├── deploystack/ # Core DeployStack documentation
24+
│ ├── assets/ # Images and static assets
25+
│ └── ... # MCP guides and configuration docs
2126
├── app/ # Next.js app directory (fumadocs framework)
2227
├── lib/ # Documentation utilities & components
2328
└── source.config.ts # Fumadocs configuration
@@ -54,8 +59,9 @@ npm run lint:links # Link validation
5459
3. **Navigation**: Use `meta.json` files in each directory to control navigation structure
5560
4. **Assets**: Place images in `docs/assets/images/` with appropriate subdirectories
5661
5. **Links**: Use absolute paths for all references:
57-
- Documentation: `/docs/docker-to-iac/`
62+
- Documentation: `/docs/development/gateway/`
5863
- Images: `/docs/assets/images/example.png`
64+
6. **Brand Colors**: Use the primary color (`text-primary`, `bg-primary`) for consistency - avoid introducing other accent colors
5965

6066
### Navigation Structure
6167

app/[[...slug]]/page.tsx

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { DocsLayout } from 'fumadocs-ui/layouts/docs';
33
import { HomeLayout } from 'fumadocs-ui/layouts/home';
44
import { DocsPage, DocsBody } from 'fumadocs-ui/page';
55
import { notFound } from 'next/navigation';
6-
import { source } from '@/lib/source';
6+
import { source, mainSource, developmentSource, selfHostedSource } from '@/lib/source';
77
import { generatePageMetadata, getCanonicalUrl } from '@/lib/seo-utils';
88
import { getFinalPageTitle } from '@/lib/h1-extractor';
99
import { readFile } from 'fs/promises';
@@ -41,12 +41,25 @@ export default async function Page({
4141
);
4242
}
4343

44+
// Determine which section we're in and get the appropriate page tree
45+
const firstSegment = slug[0];
46+
let pageTree = mainSource.pageTree;
47+
let navTitle = 'DeployStack Docs';
48+
49+
if (firstSegment === 'development') {
50+
pageTree = developmentSource.pageTree;
51+
navTitle = 'Development Docs';
52+
} else if (firstSegment === 'self-hosted') {
53+
pageTree = selfHostedSource.pageTree;
54+
navTitle = 'Self-Hosted Docs';
55+
}
56+
4457
return (
4558
<DocsLayout
4659
{...docsOptions}
47-
tree={source.pageTree}
60+
tree={pageTree}
4861
nav={{
49-
title: 'DeployStack Docs',
62+
title: navTitle,
5063
url: '/',
5164
}}
5265
sidebar={{
@@ -63,18 +76,8 @@ export default async function Page({
6376
}
6477

6578
export async function generateStaticParams() {
66-
const params = source.generateParams();
67-
68-
const result = [
69-
...params,
70-
...docs.docs
71-
.filter((page: any) => page._file.flattenedPath)
72-
.map((page: any) => ({
73-
slug: page._file.flattenedPath.split('/'),
74-
})),
75-
];
76-
77-
return result;
79+
// Simply use the unified source generateParams
80+
return source.generateParams();
7881
}
7982

8083
export async function generateMetadata({

app/global.css

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
1-
/* Import Fumadocs UI complete styles */
2-
@import 'fumadocs-ui/css/style.css';
1+
/* Import Tailwind CSS v4 and Fumadocs UI presets */
2+
@import 'tailwindcss';
3+
@import 'fumadocs-ui/css/neutral.css';
4+
@import 'fumadocs-ui/css/preset.css';
5+
6+
/* Include Fumadocs UI source for Tailwind v4 */
7+
@source '../node_modules/fumadocs-ui/dist/**/*.js';
8+
9+
/* Define primary color in Tailwind v4 @theme directive */
10+
@theme {
11+
/* Primary color - Teal theme matching DeployStack brand */
12+
--color-primary: hsl(177, 79%, 28%); /* Teal-700 */
13+
--color-primary-foreground: hsl(0, 0%, 100%); /* White text on primary */
14+
15+
/* Additional variants */
16+
--color-primary-hover: hsl(176, 79%, 23%); /* Darker teal for hover states */
17+
--color-primary-light: hsl(174, 72%, 56%); /* Lighter teal variant */
18+
--color-primary-dark: hsl(176, 100%, 16%); /* Darker teal variant */
19+
}
20+
21+
/* Dark mode color overrides */
22+
:root {
23+
/* Light mode is default, defined in @theme above */
24+
}
25+
26+
.dark {
27+
/* Dark mode primary colors */
28+
--color-primary: hsl(174, 72%, 56%); /* Lighter teal for dark mode */
29+
--color-primary-foreground: hsl(176, 100%, 6%); /* Dark text on primary in dark mode */
30+
31+
--color-primary-hover: hsl(173, 68%, 64%); /* Lighter on hover in dark mode */
32+
--color-primary-light: hsl(172, 66%, 70%); /* Even lighter variant */
33+
--color-primary-dark: hsl(177, 79%, 28%); /* Original teal for contrast */
34+
}
335

436
/* Custom navbar styling to match main site */
537
/* Navbar height override removed since navbar is now inside content area */
@@ -12,21 +44,21 @@
1244

1345
/* Style the login button to match main site */
1446
[data-fumadocs-nav] a[href*="login"] {
15-
background: hsl(var(--primary));
16-
color: hsl(var(--primary-foreground));
47+
background: var(--color-primary);
48+
color: var(--color-primary-foreground);
1749
border-radius: 9999px;
1850
padding: 0.5rem 1rem;
1951
font-weight: 500;
2052
transition: background-color 0.2s ease;
2153
}
2254

2355
[data-fumadocs-nav] a[href*="login"]:hover {
24-
background: hsl(var(--primary) / 0.9);
56+
background: var(--color-primary-hover);
2557
}
2658

2759
/* Ensure Documentation link is highlighted when active */
2860
[data-fumadocs-nav] a[href="/docs"][data-active="true"] {
29-
color: hsl(var(--primary));
61+
color: var(--color-primary);
3062
font-weight: 600;
3163
}
3264

app/layout.config.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ const baseConfig = {
1313
export const homeOptions: BaseLayoutProps = {
1414
...baseConfig,
1515
links: [
16-
{
17-
text: 'MCP Server',
18-
url: 'https://deploystack.io/mcp',
19-
external: true,
20-
},
2116
{
2217
text: 'Changelog',
2318
url: 'https://deploystack.io/changelog',

docs/deploystack/auth.mdx renamed to docs/auth.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,4 @@ For developers and integrations, DeployStack provides REST API endpoints for aut
229229

230230
---
231231

232-
For technical implementation details, see the [Backend Authentication Documentation](/deploystack/development/backend/api) and [Global Settings Management](/deploystack/global-settings).
232+
For technical implementation details, see the [Backend Authentication Documentation](/development/backend/api) and [Global Settings Management](/global-settings).

docs/deploystack/development/index.mdx

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

0 commit comments

Comments
 (0)