Skip to content

Extend

Part of Dev. A change has one authoritative edit site per kind. Find that site first; the generated pages follow from it.

Edit sites

Change Edit here Then check
Add a BASIC keyword A register_fn or register_custom_syntax call in botserver/crates/botbasic_*/src/keywords/ or in botserver/src/basic/keywords/, wired into that crate's mod.rs. Generated BASIC reference with --check.
Add a suite app An AppDefinition in botserver/src/apps/registry/entries.rs or entries_extra.rs; all_apps() merges both. Generated app registry and the app's HTML under botui/ui/suite/.
Add an HTTP route A router in botserver/src/main_module/routes/ or in the feature crate; mount it in api_setup.rs when it belongs to the main API. Generated API family page with --check.
Add a database table A migration under botserver/migrations/, then table! / joinable! in botschema/src/**, then a pub use botschema::<table> in the owning crate. Generated database reference with --check.
Change a suite surface botui/ui/suite/<app>/, using --id-* tokens, local fonts and inline icons; every user-facing string gets a data-i18n key in all locale catalogs under botlib/locales/. Rendered page, locale catalogs and the book guards.

Rules that decide the edit

Rule Reason
No table! / joinable! outside botschema. The schema crate is the single source for Diesel declarations; feature crates re-export.
No new keyword from a name alone. Only a registration makes a keyword callable; the generated drift report lists advertised names with no registration.
No hand edit to a generated page. The generator owns the table; a manual edit disappears on the next run and fails --check.
No CDN, external font or ad-hoc color. UI identity comes from --id-* tokens and local assets.
No user-facing literal in HTML/JS. data-i18n / gbT() with every locale catalog updated.

From source to published table

Source Intermediate Published result
Migration table! in botschema, then crate re-export Generated database reference
Keyword registration mod.rs wiring in the owning crate Generated BASIC family page
Route literal Router mount in the binary or crate Generated API family page
AppDefinition all_apps() and /api/apps/catalog Generated app registry

These rows describe generation and consumption, not runtime requests. For build commands and feature flags, see Building from Source; for the verification commands, see Quality.