# guidebook
A fast, HonKit/GitBook-compatible static site generator written in Rust.
[](https://crates.io/crates/guidebook)
[](LICENSE)
[](https://github.com/guide-inc-org/guidebook-feedback)
## Quick Start
### Install
**macOS / Linux:**
```bash
**Windows (PowerShell):**
```powershell
**Via Cargo (alternative):**
```bash
cargo install guidebook
```
### Create and Preview a Book
```bash
# Navigate to your book folder (with SUMMARY.md)
cd your-book
# Start preview server with hot reload
guidebook serve
# Open http://localhost:4000
```
### Build for Production
```bash
guidebook build -o _book
```
### Update
```bash
guidebook update
```
## Features
- **Fast** - Built with Rust for maximum performance
- **HonKit/GitBook Compatible** - Drop-in replacement
- **Hot Reload** - Live preview with auto-refresh
- **Multi-language Support** - Build books in multiple languages
- **Mermaid Diagrams** - Native support for diagrams
- **Collapsible Chapters** - Expandable sidebar navigation
- **Full-text Search** - Built-in search functionality
- **Self-update** - Update with a single command
## Project Structure
```
your-book/
├── book.json # Configuration (optional)
├── README.md # Introduction
├── SUMMARY.md # Table of contents
└── chapter1.md
```
### SUMMARY.md
```markdown
# Summary
* [Introduction](README.md)
* [Chapter 1](chapter1.md)
* [Section 1.1](chapter1/section1.md)
```
## Migration from HonKit
guidebook is a drop-in replacement for HonKit. Just install and run:
```bash
# Replace: npx honkit build
guidebook build
# Replace: npx honkit serve
guidebook serve
```
No configuration changes required.
## Feedback
Found a bug? Have a feature request?
👉 [guidebook-feedback](https://github.com/guide-inc-org/guidebook-feedback)
You can write in English, Japanese, or Vietnamese.
## License
MIT