This directory contains the source for the Synapse DB documentation, built with mdBook.
Install mdBook:
cargo install mdbook
Build the documentation:
mdbook build
Serve locally with live reload:
mdbook serve
Then open http://localhost:3000 in your browser.
book/
├── SUMMARY.md # Table of contents (mdBook structure)
├── introduction.md # Home page
├── getting-started/
│ ├── installation.md
│ ├── quick-start.md
│ └── configuration.md
├── guide/
│ ├── overview.md
│ ├── storage.md
│ ├── query-engine.md
│ ├── examples.md
│ └── best-practices.md
├── api/
│ ├── overview.md
│ ├── storage.md
│ └── query.md
├── development/
│ ├── contributing.md
│ ├── architecture.md
│ ├── testing.md
│ ├── release.md
│ ├── cicd.md
│ └── hooks.md
├── changelog.md # Generated from ../CHANGELOG.md
├── faq.md
└── glossary.md
SUMMARY.md in the correct locationmdBook supports standard Markdown plus these features:
use synapse_db::Storage;
fn main() {
let storage = Storage::new();
}
Not natively supported, but you can use blockquotes:
Note: This is an important note
Warning: Be careful with this
[Link to another page](/synapse-db/book/guide/overview.html)
[External link](https://rust-lang.org)

The documentation is configured in ../book.toml. Key settings:
title: Book titleauthors: Authors listsrc: Source directory (this directory)build-dir: Output directory (target/book)output.html.*: HTML output settingsThe changelog is automatically generated from git commits using git-cliff.
To update the changelog:
./scripts/generate-changelog.sh
This generates ../CHANGELOG.md and copies it to book/changelog.md.
# Build the book
mdbook build
# Serve with live reload
mdbook serve
# Serve on custom port
mdbook serve --port 8080
# Open in browser
mdbook serve --open
# Clean build directory
mdbook clean
# Test code examples (requires mdbook-test)
mdbook test
Documentation is automatically built and deployed via GitHub Actions:
See .github/workflows/docs.yml for details.
# Ensure mdBook is installed
mdbook --version
# Clean and rebuild
mdbook clean
mdbook build
Check that the page is listed in SUMMARY.md.
Use mdBook’s built-in link checker:
mdbook build
# Check the build output for warnings
See development/contributing.md for contribution guidelines.