Skip to content

Commit e259674

Browse files
Copilothotlong
andcommitted
Fix Card component hrefs to use absolute /docs/ paths
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent c3525ee commit e259674

11 files changed

Lines changed: 52 additions & 52 deletions

File tree

content/docs/index.cn.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ import { Book, Compass, FileText, Layers } from 'lucide-react';
1616
<Card
1717
icon={<FileText />}
1818
title="快速开始"
19-
href="./guides/getting-started"
19+
href="/docs/guides/getting-started"
2020
description="5 分钟内构建你的第一个对象。通过实际示例学习基础知识。"
2121
/>
2222
<Card
2323
icon={<Compass />}
2424
title="概念"
25-
href="./concepts/manifesto"
25+
href="/docs/concepts/manifesto"
2626
description="理解「意图优于实现」和「本地优先」架构的理念。"
2727
/>
2828
<Card
2929
icon={<Layers />}
3030
title="规范"
31-
href="./specifications/data/architecture"
31+
href="/docs/specifications/data/architecture"
3232
description="架构蓝图。深入了解 ObjectQL(数据)、ObjectUI(视图)和 ObjectOS(控制)。"
3333
/>
3434
<Card
3535
icon={<Book />}
3636
title="协议参考"
37-
href="./references/data/core/Object"
37+
href="/docs/references/data/core/Object"
3838
description="字典。每个模式、字段类型和配置选项的全面参考。"
3939
/>
4040
</Cards>

content/docs/index.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ This documentation is the authoritative reference for the ObjectStack Protocol.
1616
<Card
1717
icon={<FileText />}
1818
title="Quick Start"
19-
href="./quick-start"
19+
href="/docs/quick-start"
2020
description="Get started in under 5 minutes. Choose your learning path based on your role."
2121
/>
2222
<Card
2323
icon={<Book />}
2424
title="Tutorials"
25-
href="./tutorials"
25+
href="/docs/tutorials"
2626
description="Hands-on step-by-step tutorials to build real applications and learn by doing."
2727
/>
2828
<Card
2929
icon={<Compass />}
3030
title="Concepts"
31-
href="./concepts/manifesto"
31+
href="/docs/concepts/manifesto"
3232
description="Understand the philosophy of 'Intent over Implementation' and the 'Local-First' architecture."
3333
/>
3434
<Card
3535
icon={<Layers />}
3636
title="Specifications"
37-
href="./specifications"
37+
href="/docs/specifications"
3838
description="The Architecture Blueprints. Deep dive into ObjectQL (Data), ObjectUI (View), and ObjectOS (Control)."
3939
/>
4040
</Cards>
@@ -45,25 +45,25 @@ This documentation is the authoritative reference for the ObjectStack Protocol.
4545
<Card
4646
icon={<FileText />}
4747
title="Developer Guides"
48-
href="./guides/getting-started"
48+
href="/docs/guides/getting-started"
4949
description="Comprehensive guides for building with ObjectStack. Field types, views, workflows, and more."
5050
/>
5151
<Card
5252
icon={<Book />}
5353
title="API Reference"
54-
href="./references/data/core/Object"
54+
href="/docs/references/data/core/Object"
5555
description="Complete API documentation for every schema, field type, and configuration option."
5656
/>
5757
<Card
5858
icon={<FileText />}
5959
title="FAQ"
60-
href="./faq"
60+
href="/docs/faq"
6161
description="Frequently asked questions about ObjectStack and how to use it."
6262
/>
6363
<Card
6464
icon={<FileText />}
6565
title="Troubleshooting"
66-
href="./troubleshooting"
66+
href="/docs/troubleshooting"
6767
description="Common issues and how to resolve them."
6868
/>
6969
</Cards>

content/docs/quick-start/architects.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,22 +475,22 @@ app.get('/legacy', legacyController);
475475
<Cards>
476476
<Card
477477
title="Architecture Deep Dive"
478-
href="../concepts/architecture"
478+
href="/docs/concepts/architecture"
479479
description="Complete architectural philosophy and patterns"
480480
/>
481481
<Card
482482
title="Security Architecture"
483-
href="../concepts/security_architecture"
483+
href="/docs/concepts/security_architecture"
484484
description="Multi-layered security model"
485485
/>
486486
<Card
487487
title="Plugin Architecture"
488-
href="../concepts/plugin-architecture"
488+
href="/docs/concepts/plugin-architecture"
489489
description="Extension and plugin system design"
490490
/>
491491
<Card
492492
title="Enterprise Patterns"
493-
href="../concepts/enterprise-patterns"
493+
href="/docs/concepts/enterprise-patterns"
494494
description="Scalability, multi-tenancy, and deployment"
495495
/>
496496
</Cards>

content/docs/quick-start/backend-developers.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,22 +366,22 @@ describe('Task Object', () => {
366366
<Cards>
367367
<Card
368368
title="Field Types Reference"
369-
href="../guides/field-types"
369+
href="/docs/guides/field-types"
370370
description="Complete guide to all 23+ field types"
371371
/>
372372
<Card
373373
title="Query AST Structure"
374-
href="../specifications/data/ast-structure"
374+
href="/docs/specifications/data/ast-structure"
375375
description="Deep dive into the query abstraction layer"
376376
/>
377377
<Card
378378
title="Build a Custom Driver"
379-
href="../guides/custom-driver"
379+
href="/docs/guides/custom-driver"
380380
description="Connect ObjectStack to any database"
381381
/>
382382
<Card
383383
title="API Specification"
384-
href="../specifications/server/rest-api"
384+
href="/docs/specifications/server/rest-api"
385385
description="Generated REST API reference"
386386
/>
387387
</Cards>

content/docs/quick-start/build-first-app.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,17 +321,17 @@ npm run validate
321321
<Cards>
322322
<Card
323323
title="Add a Workflow"
324-
href="../guides/workflows-validation"
324+
href="/docs/guides/workflows-validation"
325325
description="Automate status transitions and notifications"
326326
/>
327327
<Card
328328
title="Create a Dashboard"
329-
href="../guides/dashboards"
329+
href="/docs/guides/dashboards"
330330
description="Build analytics and reporting views"
331331
/>
332332
<Card
333333
title="Deploy Your App"
334-
href="../guides/deployment"
334+
href="/docs/guides/deployment"
335335
description="Learn how to run your ObjectStack app in production"
336336
/>
337337
<Card

content/docs/quick-start/frontend-developers.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -533,22 +533,22 @@ function App() {
533533
<Cards>
534534
<Card
535535
title="View Configuration Guide"
536-
href="../guides/view-configuration"
536+
href="/docs/guides/view-configuration"
537537
description="Deep dive into all view types and options"
538538
/>
539539
<Card
540540
title="Component Schema"
541-
href="../specifications/ui/component-schema"
541+
href="/docs/specifications/ui/component-schema"
542542
description="Build custom components and widgets"
543543
/>
544544
<Card
545545
title="Theming Guide"
546-
href="../guides/theming"
546+
href="/docs/guides/theming"
547547
description="Customize colors, fonts, and styling"
548548
/>
549549
<Card
550550
title="UI Protocol Reference"
551-
href="../references/ui/views/View"
551+
href="/docs/references/ui/views/View"
552552
description="Complete API reference for all UI types"
553553
/>
554554
</Cards>

content/docs/specifications/data/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ The **Data Protocol (ObjectQL)** is the foundation of ObjectStack. It defines ho
1717
<Card
1818
icon={<Database />}
1919
title="Architecture"
20-
href="../../specifications/data/architecture"
20+
href="/docs/specifications/data/architecture"
2121
description="High-level overview of the Data Layer design and philosophy"
2222
/>
2323
<Card
2424
icon={<GitBranch />}
2525
title="Schema Definition"
26-
href="../../specifications/data/schema-definition"
26+
href="/docs/specifications/data/schema-definition"
2727
description="How to define Objects, Fields, and Relationships"
2828
/>
2929
<Card
3030
icon={<Zap />}
3131
title="Query AST Structure"
32-
href="../../specifications/data/ast-structure"
32+
href="/docs/specifications/data/ast-structure"
3333
description="Abstract Syntax Tree for database-agnostic queries"
3434
/>
3535
<Card
3636
icon={<Shield />}
3737
title="Advanced Types"
38-
href="../../specifications/data/advanced-types"
38+
href="/docs/specifications/data/advanced-types"
3939
description="Complex field types and their implementations"
4040
/>
4141
</Cards>

content/docs/specifications/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ The ObjectStack Protocol is defined through three core specifications that work
1313
<Card
1414
icon={<Database />}
1515
title="Data Protocol (ObjectQL)"
16-
href="../specifications/data"
16+
href="/docs/specifications/data"
1717
description="Define data structures, queries, and business logic. Database-agnostic abstraction layer."
1818
/>
1919
<Card
2020
icon={<Layout />}
2121
title="UI Protocol (ObjectUI)"
22-
href="../specifications/ui"
22+
href="/docs/specifications/ui"
2323
description="Server-driven UI definitions. Express interfaces as JSON, not code."
2424
/>
2525
<Card
2626
icon={<Server />}
2727
title="System Protocol (ObjectOS)"
28-
href="../specifications/server"
28+
href="/docs/specifications/server"
2929
description="Runtime kernel, plugins, security, and integration. The platform foundation."
3030
/>
3131
</Cards>

content/docs/specifications/server/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@ The **System Protocol (ObjectOS)** defines the runtime environment for ObjectSta
1818
<Card
1919
icon={<Cpu />}
2020
title="Kernel Architecture"
21-
href="../../specifications/server/kernel-architecture"
21+
href="/docs/specifications/server/kernel-architecture"
2222
description="Core runtime engine that orchestrates all components"
2323
/>
2424
<Card
2525
icon={<Package />}
2626
title="Plugin Manifest"
27-
href="../../specifications/server/plugin-manifest"
27+
href="/docs/specifications/server/plugin-manifest"
2828
description="Package structure and plugin loading mechanism"
2929
/>
3030
<Card
3131
icon={<Shield />}
3232
title="Permission Governance"
33-
href="../../specifications/server/permission-governance"
33+
href="/docs/specifications/server/permission-governance"
3434
description="Multi-layered access control and security"
3535
/>
3636
<Card
3737
icon={<Zap />}
3838
title="REST API"
39-
href="../../specifications/server/rest-api"
39+
href="/docs/specifications/server/rest-api"
4040
description="Auto-generated API specification"
4141
/>
4242
</Cards>

content/docs/specifications/ui/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ ObjectUI: Define JSON → Instant Update → No Rebuild Needed
2020
<Card
2121
icon={<Monitor />}
2222
title="SDUI Protocol"
23-
href="../../specifications/ui/sdui-protocol"
23+
href="/docs/specifications/ui/sdui-protocol"
2424
description="Server-Driven UI architecture and philosophy"
2525
/>
2626
<Card
2727
icon={<Layout />}
2828
title="Component Schema"
29-
href="../../specifications/ui/component-schema"
29+
href="/docs/specifications/ui/component-schema"
3030
description="How UI components are defined and composed"
3131
/>
3232
<Card
3333
icon={<Zap />}
3434
title="View Protocol"
35-
href="../../specifications/ui/view-protocol"
35+
href="/docs/specifications/ui/view-protocol"
3636
description="List views, forms, and data visualization"
3737
/>
3838
<Card
3939
icon={<Palette />}
4040
title="Layout System"
41-
href="../../specifications/ui/layout-system"
41+
href="/docs/specifications/ui/layout-system"
4242
description="Grid-based responsive layout engine"
4343
/>
4444
</Cards>

0 commit comments

Comments
 (0)