Skip to content

Restructure documentation following industry best practices - #67

Merged
hotlong merged 3 commits into
mainfrom
copilot/optimize-docs-structure
Jan 22, 2026
Merged

Restructure documentation following industry best practices#67
hotlong merged 3 commits into
mainfrom
copilot/optimize-docs-structure

Conversation

CopilotAI commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

Documentation lacked progressive disclosure and role-based onboarding. Structure did not follow patterns from React, Stripe, Kubernetes docs.

Changes

New Sections

  • Quick Start (/docs/quick-start) - 4 role-based paths (backend, frontend, architect, tutorial)
  • Tutorials (/docs/tutorials) - Learning path framework with categorized hands-on guides
  • FAQ (/docs/faq) - 20+ common questions
  • Troubleshooting (/docs/troubleshooting) - Debugging guide with solutions

Enhanced Navigation

  • Index pages for all specification sections (Data, UI, System protocols)
  • Main specifications overview with protocol versioning info
  • Updated root navigation: quick-start → tutorials → guides → concepts → specifications → references

Content Examples

Role-based quick start pattern:

/docs/quick-start
├── index.mdx (role selector)
├── build-first-app.mdx (10min tutorial)
├── backend-developers.mdx (ORM comparison, query patterns)
├── frontend-developers.mdx (SDUI, view types)
└── architects.mdx (architecture deep dive, multi-tenancy)

Specification index structure:

/docs/specifications
├── index.mdx (protocol overview)
├── /data/index.mdx (ObjectQL overview)
├── /ui/index.mdx (ObjectUI overview)
└── /server/index.mdx (ObjectOS overview)

Structure Change

 /docs
+ /quick-start (5 files)+ /tutorials (framework)
/guides
/concepts
- /specifications (3 protocols)+ /specifications (3 protocols + 4 index pages)
/references
+ faq.mdx+ troubleshooting.mdx

Files: +21 created, 7 updated. Builds successfully (588 static pages).

Original prompt

从行业最佳实践角度审视,并优化现有/content/docs, 官网fumadocs目录结构,增加必要的文档调整或修改现有的文档


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel

vercelBot commented Jan 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentReviewUpdated (UTC)
specReadyReadyPreview, CommentJan 22, 2026 11:48am

Request Review

- Add Quick Start section with role-based guides
- Add Tutorials landing page
- Add FAQ and Troubleshooting sections
- Add index pages for all specification sections
- Improve navigation hierarchy
- Update main index with new sections
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Remove unsupported Tabs/Tab components and use simple section headers instead. Build now completes successfully.
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
CopilotAI changed the title [WIP] Optimize documentation structure for best practicesRestructure documentation following industry best practicesJan 22, 2026
CopilotAI requested a review from hotlongJanuary 22, 2026 11:46
@github-actionsgithub-actionsBot added documentation Improvements or additions to documentation size/xl labels Jan 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR is very large. Consider breaking it into smaller PRs for easier review.

@hotlong
hotlong marked this pull request as ready for review January 22, 2026 12:24
CopilotAI review requested due to automatic review settings January 22, 2026 12:24
@hotlong
hotlong merged commit a7cb2cf into mainJan 22, 2026
14 checks passed

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restructures the documentation to follow industry best practices, implementing progressive disclosure and role-based onboarding patterns inspired by React, Stripe, and Kubernetes documentation.

Changes:

  • Introduced Quick Start section with 4 role-based learning paths (backend developers, frontend developers, architects, and a 10-minute tutorial)
  • Added Tutorials framework with categorized hands-on guides and learning paths
  • Created FAQ and Troubleshooting sections for better self-service support
  • Enhanced Specifications with index pages providing clear navigation and protocol versioning information

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 2 comments.

Show a summary per file
FileDescription
content/docs/meta.jsonAdded new top-level sections (quick-start, tutorials, faq, troubleshooting) to documentation navigation
content/docs/index.mdxUpdated landing page to feature new Quick Start and Tutorials sections alongside existing documentation
content/docs/quick-start.mdxNew role selector page introducing ObjectStack and directing users to appropriate learning paths
content/docs/quick-start/build-first-app.mdxComplete 10-minute tutorial for building a task management application
content/docs/quick-start/backend-developers.mdxBackend-focused introduction covering data modeling, business logic, and API generation
content/docs/quick-start/frontend-developers.mdxFrontend-focused introduction covering UI configuration and server-driven UI concepts
content/docs/quick-start/architects.mdxArchitecture deep dive covering design philosophy, industry comparisons, and technical decisions
content/docs/tutorials.mdxTutorial framework index with categorized learning paths and progression guidance
content/docs/faq.mdxComprehensive FAQ covering general, technical, development, and business questions
content/docs/troubleshooting.mdxDebugging guide with common issues and solutions across installation, runtime, and development
content/docs/specifications/index.mdxProtocol specifications overview with versioning information and audience guidance
content/docs/specifications/data/index.mdxData protocol (ObjectQL) overview and navigation hub
content/docs/specifications/ui/index.mdxUI protocol (ObjectUI) overview and navigation hub
content/docs/specifications/server/index.mdxSystem protocol (ObjectOS) overview and navigation hub
Comments suppressed due to low confidence (1)

content/docs/troubleshooting.mdx:1

  • This creates a circular reference - the troubleshooting guide is linking to itself at /docs/guides/troubleshooting instead of the correct path /docs/troubleshooting.
---

## Get Help

Stuck on a tutorial?
- Check the [Troubleshooting Guide](/docs/guides/troubleshooting)

CopilotAIJan 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The troubleshooting guide link points to /docs/guides/troubleshooting but the actual file is at /docs/troubleshooting.

Suggested change
- Check the [Troubleshooting Guide](/docs/guides/troubleshooting)
- Check the [Troubleshooting Guide](/docs/troubleshooting)

Copilot uses AI. Check for mistakes.
Stuck on a tutorial?
- Check the [Troubleshooting Guide](/docs/guides/troubleshooting)
- Ask in [GitHub Discussions](https://github.com/objectstack-ai/spec/discussions)
- Review the [FAQ](/docs/guides/faq)

CopilotAIJan 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The FAQ link points to /docs/guides/faq but the actual file is at /docs/faq.

Suggested change
- Review the [FAQ](/docs/guides/faq)
- Review the [FAQ](/docs/faq)

Copilot uses AI. Check for mistakes.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationImprovements or additions to documentationsize/xl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@hotlong