Skip to content

Restructure documentation following industry best practices#67

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

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

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 22, 2026

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
Copy link
Copy Markdown

vercel bot commented Jan 22, 2026

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

Project Deployment Review Updated (UTC)
spec Ready Ready Preview, Comment Jan 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>
Copilot AI changed the title [WIP] Optimize documentation structure for best practices Restructure documentation following industry best practices Jan 22, 2026
Copilot AI requested a review from hotlong January 22, 2026 11:46
@github-actions github-actions bot 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
Copilot AI review requested due to automatic review settings January 22, 2026 12:24
@hotlong hotlong merged commit a7cb2cf into main Jan 22, 2026
14 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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
File Description
content/docs/meta.json Added new top-level sections (quick-start, tutorials, faq, troubleshooting) to documentation navigation
content/docs/index.mdx Updated landing page to feature new Quick Start and Tutorials sections alongside existing documentation
content/docs/quick-start.mdx New role selector page introducing ObjectStack and directing users to appropriate learning paths
content/docs/quick-start/build-first-app.mdx Complete 10-minute tutorial for building a task management application
content/docs/quick-start/backend-developers.mdx Backend-focused introduction covering data modeling, business logic, and API generation
content/docs/quick-start/frontend-developers.mdx Frontend-focused introduction covering UI configuration and server-driven UI concepts
content/docs/quick-start/architects.mdx Architecture deep dive covering design philosophy, industry comparisons, and technical decisions
content/docs/tutorials.mdx Tutorial framework index with categorized learning paths and progression guidance
content/docs/faq.mdx Comprehensive FAQ covering general, technical, development, and business questions
content/docs/troubleshooting.mdx Debugging guide with common issues and solutions across installation, runtime, and development
content/docs/specifications/index.mdx Protocol specifications overview with versioning information and audience guidance
content/docs/specifications/data/index.mdx Data protocol (ObjectQL) overview and navigation hub
content/docs/specifications/ui/index.mdx UI protocol (ObjectUI) overview and navigation hub
content/docs/specifications/server/index.mdx System 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)
Copy link

Copilot AI Jan 22, 2026

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)
Copy link

Copilot AI Jan 22, 2026

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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants