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: [Release, Insights]
---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 β certain tags control which site sections the post appears in (see below) |
draft |
No | Set true to hide from build output |
custom_edit_url |
No | Set null to hide the "Edit this page" link |
Tags serve two purposes: they render as colored badges in the Blog listing and they route posts into dedicated sections on the Research page.
Special routing tags (case-insensitive):
| Tag | Effect |
|---|---|
Release |
Post appears in the Releases section of the Research page (up to 5 most recent) |
Landscape |
Post appears in the Landscapes section of the Research page (up to 5 most recent) |
Badge color palette:
| Tag | Color |
|---|---|
Release |
Blue |
Community |
Green |
Insights |
Purple |
Tutorials |
Amber |
Best Practice |
Amber |
| (anything else) | Grey |
Tags are matched case-insensitively for routing. Use title-case (
Release,Landscape) by convention to match the badge display.
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