Skip to content

Commit 1c2bb55

Browse files
authored
Merge pull request #217 from objectstack-ai/copilot/restructure-website-docs
2 parents 0296b47 + 313dae9 commit 1c2bb55

File tree

231 files changed

+23869
-17018
lines changed

Some content is hidden

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

231 files changed

+23869
-17018
lines changed

apps/docs/app/[lang]/blog/[[...slug]]/page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ interface BlogPostData {
1616
body: React.ComponentType;
1717
}
1818

19+
const components = {
20+
...defaultMdxComponents,
21+
} as any;
22+
1923
export default async function BlogPage({
2024
params,
2125
}: {
@@ -159,7 +163,7 @@ export default async function BlogPage({
159163
)}
160164
</header>
161165

162-
<MDX components={defaultMdxComponents} />
166+
<MDX components={components} />
163167
</article>
164168
</main>
165169
</HomeLayout>

apps/docs/app/[lang]/page.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,37 +38,37 @@ export default async function HomePage({
3838
<FeatureCard
3939
icon={<Database className="h-6 w-6" />}
4040
title={t.features.objectql.title}
41-
href="/docs/specifications/data/architecture"
41+
href="/docs/objectql"
4242
description={t.features.objectql.description}
4343
/>
4444
<FeatureCard
4545
icon={<Layers className="h-6 w-6" />}
4646
title={t.features.objectui.title}
47-
href="/docs/specifications/ui/sdui-protocol"
47+
href="/docs/objectui"
4848
description={t.features.objectui.description}
4949
/>
5050
<FeatureCard
5151
icon={<Zap className="h-6 w-6" />}
5252
title={t.features.objectos.title}
53-
href="/docs/specifications/server/kernel-architecture"
53+
href="/docs/objectos"
5454
description={t.features.objectos.description}
5555
/>
5656
<FeatureCard
5757
icon={<ShieldCheck className="h-6 w-6" />}
5858
title={t.features.security.title}
59-
href="/docs/specifications/server/permission-governance"
59+
href="/docs/objectql/security"
6060
description={t.features.security.description}
6161
/>
6262
<FeatureCard
6363
icon={<FileJson className="h-6 w-6" />}
6464
title={t.features.zodFirst.title}
65-
href="/docs/specifications/data/schema-definition"
65+
href="/docs/objectql/schema"
6666
description={t.features.zodFirst.description}
6767
/>
6868
<FeatureCard
6969
icon={<Globe className="h-6 w-6" />}
7070
title={t.features.universal.title}
71-
href="/docs/concepts/architecture"
71+
href="/docs/introduction/architecture"
7272
description={t.features.universal.description}
7373
/>
7474
</div>
@@ -83,21 +83,21 @@ export default async function HomePage({
8383
icon={<LayoutTemplate className="w-8 h-8 text-blue-500" />}
8484
title={t.personas.architect.title}
8585
description={t.personas.architect.description}
86-
href="/docs/concepts/enterprise-patterns"
86+
href="/docs/introduction/architecture"
8787
action={t.personas.architect.action}
8888
/>
8989
<PersonaCard
9090
icon={<Bot className="w-8 h-8 text-purple-500" />}
9191
title={t.personas.aiEngineer.title}
9292
description={t.personas.aiEngineer.description}
93-
href="/docs/concepts/ai-codex"
93+
href="/docs/introduction/metadata-driven"
9494
action={t.personas.aiEngineer.action}
9595
/>
9696
<PersonaCard
9797
icon={<Cpu className="w-8 h-8 text-green-500" />}
9898
title={t.personas.frameworkBuilder.title}
9999
description={t.personas.frameworkBuilder.description}
100-
href="/docs/specifications/data/architecture"
100+
href="/docs/developers"
101101
action={t.personas.frameworkBuilder.action}
102102
/>
103103
</div>

apps/docs/app/layout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@ export const metadata: Metadata = {
1818
export default function RootLayout({ children }: { children: ReactNode }) {
1919
// Root layout is only used for redirects with middleware
2020
// The actual layout is in [lang]/layout.tsx
21-
return children;
21+
return (
22+
<html lang="en" suppressHydrationWarning>
23+
<body>{children}</body>
24+
</html>
25+
);
2226
}

apps/docs/components/hero-section.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ export function HeroSection({ badge, title, subtitle, cta, className }: HeroSect
5252
{/* CTA Buttons */}
5353
<div className="flex flex-col sm:flex-row items-center justify-center gap-4 pt-4">
5454
<Link
55-
href="/docs/guides/getting-started"
56-
className="inline-flex h-12 items-center justify-center rounded-lg bg-primary px-8 text-sm font-medium text-primary-foreground shadow-lg shadow-primary/20 transition-all hover:bg-primary/90 hover:scale-105 hover:shadow-xl hover:shadow-primary/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"
55+
href="/docs/introduction"
56+
className="inline-flex h-12 items-center justify-center rounded-lg bg-primary px-8 text-sm font-medium text-primary-foreground shadow transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"
5757
>
5858
{cta.primary}
5959
</Link>

apps/docs/lib/homepage-i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export interface HomepageTranslations {
8686
export const en: HomepageTranslations = {
8787
badge: {
8888
status: 'Protocol Specification',
89-
version: 'v1.0',
89+
version: 'v0.3.3 (Draft)',
9090
},
9191
hero: {
9292
title: {

apps/docs/lib/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { defineI18n } from 'fumadocs-core/i18n';
99
*/
1010
export const i18n = defineI18n({
1111
defaultLanguage: 'en',
12-
languages: ['en', 'cn'],
12+
languages: ['en'],
1313
// Hide locale prefix for default language (e.g., /docs instead of /en/docs)
1414
hideLocale: 'default-locale',
1515
});

apps/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"description": "ObjectStack Protocol Documentation Site",
66
"scripts": {
7-
"site:dev": "next dev",
7+
"dev": "next dev",
88
"build": "NEXT_PRIVATE_BUILD_WORKER=1 next build",
99
"site:start": "next start",
1010
"site:lint": "next lint"

content/docs/concepts/ai-codex.cn.mdx

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

content/docs/concepts/ai-codex.mdx

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

0 commit comments

Comments
 (0)