zudo-doc
GitHub repository

Type to search...

to open search from anywhere

Installation

Created Mar 11, 2026Updated Jun 20, 2026Takeshi Takatsudo

How to install and set up zudo-doc for local development.

Prerequisites

  • Node.js 22+ — required by zfb and the toolchain

  • pnpm — recommended package manager

Info

You can also use npm, yarn, or bun, but this guide uses pnpm for all examples.

Create a New Project

The fastest way to get started is with the create-zudo-doc CLI. It scaffolds a new project with an interactive setup wizard.

pnpm create zudo-doc

Or with other package managers:

npm create zudo-doc
yarn create zudo-doc
bunx create-zudo-doc

For non-interactive usage (CI, automation, AI agents), use --yes to accept defaults or pass flags directly:

pnpm create zudo-doc my-docs --yes
pnpm create zudo-doc my-docs --lang ja --scheme Dracula --no-i18n --pm pnpm --install

See the CLI reference for all available flags.

The CLI walks you through the following options:

Project Name

Enter a name for your project directory (default: my-docs).

Default Language

Choose the default language for your documentation site. Supported languages include English, Japanese, Chinese (Simplified/Traditional), Korean, Spanish, French, German, and Portuguese.

Color Scheme Mode

Choose how your site handles color schemes:

  • Light & Dark (toggle) — users can switch between light and dark themes. Pick from pre-configured pairings (GitHub, Catppuccin, Solarized, Rosé Pine, Atom One, Everforest, Gruvbox, Ayu) or choose light and dark schemes individually.

  • Single scheme — one fixed color scheme for the entire site. 40 schemes are available, including Dracula, Nord, TokyoNight, and more.

When using light/dark mode, you can also set the default mode (light or dark) and whether to respect the user's system color scheme preference.

Features

Select which optional features to include:

FeatureDefaultDescription
i18n (multi-language)OffAdd a secondary language with mirrored content directories
Pagefind searchOnFull-text search across all documentation
Sidebar filterOnReal-time filtering of sidebar navigation items
Claude ResourcesOffAuto-generated documentation for Claude Code components
Color scheme previewOffBrowse 50+ preset color schemes via the Color Tweak Panel

Package Manager

Choose your preferred package manager: pnpm (recommended), npm, yarn, or bun. After scaffolding, the CLI will ask whether to install dependencies for you.

Tip

The installer generates a src/config/settings.ts file with your choices. You can change these settings at any time after project creation.

Alternative: Clone the Repository

You can also start by cloning the full repository directly:

git clone https://github.com/zudolab/zudo-doc.git my-docs
cd my-docs
pnpm install

Note

Cloning the repository gives you the complete project including the documentation source and all features enabled. Use this approach if you want to explore the full codebase or contribute to zudo-doc itself.

Development

pnpm dev

The zfb dev server starts on port 4321 with instant hot module replacement.

Warning

Make sure port 4321 is available. If another process is already using it, pnpm dev will fail with EADDRINUSE — kill the conflicting process and retry.

Build

pnpm build

This generates static HTML in the dist/ directory. You can deploy it to any static hosting service.

Type Checking

pnpm check

Runs the project's TypeScript type checker in strict mode.

Danger

Never commit the dist/ directory to source control. It is already excluded via .gitignore.

Project Structure

After installation, your project looks like this:

src/
├── components/          # Preact components (server-rendered + client islands)
│   └── admonitions/     # Note, Tip, Info, Warning, Danger
├── config/
│   ├── settings.ts      # Site name, active color scheme
│   ├── color-schemes.ts # All available color presets
│   └── color-scheme-utils.ts
├── content/
│   ├── docs/            # English MDX content
│   └── docs-ja/         # Japanese MDX content
└── styles/
    └── global.css       # Design tokens & Tailwind config

pages/                   # zfb file-based routing (.tsx page modules)
zfb.config.ts            # zfb engine entry-point config

See the Writing Docs guide for how to create and organize your documentation pages.

Revision History

Takeshi TakatsudoCreated: 2026-03-11T22:32:04+09:00Updated: 2026-06-20T07:18:27Z

AI Assistant

Ask a question about the documentation.