Skip to content

Latest commit

Β 

History

History
64 lines (44 loc) Β· 2.17 KB

File metadata and controls

64 lines (44 loc) Β· 2.17 KB

Univer SDK Documentation

This is the official documentation site for Univer SDK, built with Next.js, Fumadocs headless content tooling, and project-owned UI.

Prerequisites

Local Development

Install dependencies:

pnpm install

Start the development server:

pnpm dev

The site will be available at http://localhost:3030.

Build for production:

pnpm build

Project Structure

β”œβ”€β”€ app/              # Next.js application routes and layouts
β”œβ”€β”€ components/       # React components for the documentation site
β”œβ”€β”€ content/          # Documentation content (MDX)
β”‚   β”œβ”€β”€ blog/         # Blog posts
β”‚   β”œβ”€β”€ guides/       # User guides (docs, sheets, slides, pro, recipes)
β”‚   β”œβ”€β”€ icons/        # Icons reference
β”‚   └── reference/    # API reference
β”œβ”€β”€ examples/         # Framework integration examples (React, Vue, Angular, Astro)
β”œβ”€β”€ lib/              # Utility libraries
β”œβ”€β”€ public/           # Static assets
└── scripts/          # Build and automation scripts

Contributing

We welcome contributions to the documentation. Please ensure your changes follow the existing style and conventions. Run pnpm lint and pnpm typecheck before submitting.

For more information about contributing to Univer SDK, see the main repository.

Deploy Using ECS

To deploy the documentation site to ECS through GitHub Actions:

  1. Open Actions and select πŸ•ΆοΈ Deploy Using ECS.
  2. Select the branch to deploy (for example, dev).
  3. Set Environment to deploy to staging or international.
  4. Select the ACR registry region: use cn-shenzhen for the staging environment, or us-east-1 for the international environment.
  5. Enter the required ECS instance size (for example, 32c64g) and click Run workflow.

The workflow dispatches the deployment to runner-machine; the ECS region is derived from the selected ACR region (cn-shenzhen β†’ shenzhen, us-east-1 β†’ us-virginia).