Reusable project documentation sites with Rabbita
| Package | Responsibility | Targets |
|---|---|---|
| model | Configuration, routes, diagnostics, search, API metadata and version navigation | wasm, wasm-gc, JS, native |
| content | Front matter, HTML facts, heading IDs, text and URL rewriting | wasm, wasm-gc, JS, native |
| markdown | Native CommonMark rendering into content.Document | native |
| views | Rabbita document shell, landing pages, docs, articles and ToC | native |
| site | In-memory source preparation and rendering into output instructions | native |
| host | Contained async IO, provider builds, staged promotion, checks, preview and assembly | native |
| gallery | Supplied artifact manifest validation and presentation | portable |
| extensions | Explicit page, fence and island adapter contracts | portable |
| editor | General document state, open Formatter trait and registrations, independent of tutorials | portable |
| editor/browser | Plain/rich editing, shipped MoonBit mode and formatter worker bridge | JS |
| editor/views | Static editor fallback controls | native, JS |
| tutorial/model | Strict TOML catalogs and versioned neutral execution contracts | portable |
| tutorial/workspace | Portable execution state and editor composition | portable |
| tutorial/check | Case comparison, source policies and reference evidence | portable |
| tutorial/views | Static course and lesson rendering | native, JS |
| islands | Search, theme, navigation, ToC, copy buttons and version selection | JS |
{
"schema_version": 1,
"title": "Observatory",
"description": "Tools for observing projects",
"base_path": "/observatory/",
"site_url": "https://example.org/observatory/",
"repo_url": "https://github.com/example/observatory",
"repo_ref": "reviewed-ref",
"docs_dir": "guide",
"pages_dir": "site/pages",
"articles_dir": "site/articles",
"source_roots": ["guide", "site/pages", "site/articles"],
"nav": [{"group": "Guide", "items": ["start.md", "reference/"]}],
"footer": "Observatory contributors",
"packages": [],
"api": []
}mise exec -- moon check pkgs/telescope/model pkgs/telescope/content --target all --deny-warn
mise exec -- moon test pkgs/telescope/model pkgs/telescope/content --target all --deny-warn
mise exec -- moon test pkgs/telescope/markdown pkgs/telescope/site pkgs/telescope/views --target native --deny-warn