Official website for inclusionAI, built with Docusaurus 3.
- Node.js β₯ 20
- pnpm (used as the package manager)
pnpm install
pnpm startpnpm start launches a local dev server at http://localhost:3000 with hot-reload.
| Command | Description |
|---|---|
pnpm start |
Start local dev server (English locale) |
pnpm start -- --locale zh |
Start dev server in Chinese locale |
pnpm build |
Production build (output in build/) |
pnpm serve |
Serve the production build locally |
pnpm clear |
Clear Docusaurus cache |
pnpm typecheck |
Run TypeScript type-checking |
pnpm write-translations |
Extract i18n translation strings |
blog/<post-slug>/index.mdx
---
title: "Your Post Title"
date: 2025-01-01
authors: [inclusionai]
tags: [model, release]
---Frontmatter fields:
| Field | Required | Description |
|---|---|---|
title |
Yes | Post title (shown in listings and page <title>) |
date |
Yes | Publication date (YYYY-MM-DD) |
authors |
Yes | Author key(s) from blog/authors.yml |
tags |
No | Tag list for filtering |
draft |
No | Set true to hide from build output |
custom_edit_url |
No | Set null to hide the "Edit this page" link |
Create the same file at:
i18n/zh/docusaurus-plugin-content-blog/<post-slug>/index.mdx
The Chinese version needs the same frontmatter; only the body content needs to be translated.
Place images and other assets in the same directory as index.mdx:
blog/<post-slug>/
βββ index.mdx
βββ assets/
βββ figure1.png
Reference them with a relative path: .
Edit blog/authors.yml:
your-handle:
name: Your Name
title: Your Title
url: https://github.com/your-handle
image_url: https://github.com/your-handle.png
email: you@example.comKaTeX is enabled. Use standard LaTeX syntax:
- Inline:
$E = mc^2$ - Block:
$$\sum_{i=1}^{n} x_i$$
The site ships with English (en, default) and Simplified Chinese (zh) locales.
To extract new translation strings after adding content:
pnpm write-translations --locale zhThe site is deployed to GitHub Pages via CI. The production build is triggered by pushing to main.
To build and preview locally:
pnpm build && pnpm serve