Skip to content

docs: build a Bonito website and simplify modeling guides - #214

Merged
VEZY merged 6 commits into
mainfrom
codex/bonito-docs-logo
Sep 6, 2026
Merged

docs: build a Bonito website and simplify modeling guides#214
VEZY merged 6 commits into
mainfrom
codex/bonito-docs-logo

Conversation

@VEZY

@VEZY VEZY commented Sep 6, 2026

Copy link
Copy Markdown
Member

This replaces Documenter.HTML with Bonito.DocumenterBonito and makes the manual easier to enter from a scientific modeling task. It follows the documentation website direction explored in #69, using Bonito without a separate Node/VitePress build step.

The homepage explains where PlantSimEngine fits in plant and crop modeling, with 2D/3D examples, the botanical logo, and concrete guidance for AI-assisted work. The manual now has separate Couple models and Write models paths, with installation and a first simulation up front, followed by progressively deeper guides.

The manual is reduced from 79 to 58 pages. Duplicate introductions are consolidated, and nine completed design plans, audits, and handoffs are deleted. Lasting explanations remain in the guides, API reference, and tested examples; the agent skill remains part of the repository. No temporary planning archive or logo explorations are kept.

The revised examples explain their assumptions and units, show actual results and plots, and cover observed inputs, model replacement, per-object state, timing, and growth. The MAESPA-style teaching example now converts PAR energy to photon flux and allocates each cumulative carbon increment only once, with focused regression coverage. These remain illustrative examples, not calibrated biological models.

Documentation export adjustments handle nested assets and anchors, preview version navigation, search, embedded graphs, and generated code blocks/tables. The theme also works on narrow screens. Bonito 5.2 and Julia 1.11+ are required by the docs environment; package runtime dependencies and Julia compatibility are unchanged. The site is a static export: rerunning Julia simulations requires an execution backend.

Validation

  • Full Documenter/Bonito build and documentation tests pass, including executable examples, doctests, and generated code/table rendering checks.
  • 58 pages and 58 serialized Bonito states validated; all 1,225 local fragment links resolve.
  • 313 search entries, with no removed work notes remaining in the index.
  • 224 focused MAESPA example tests pass, including three-day carbon balance and radiation conversions.
  • Browser checks cover desktop and narrow layouts, search, example plots, navigation, theme, and embedded graph interaction. Preview version navigation was checked using a local fixture.
  • git diff --check passes.

The full package and downstream test suites were not rerun locally for this documentation update. Hosted previews and CI checks are handled by GitHub Actions.

VEZY added 4 commits September 6, 2026 09:34
Use DocumenterBonito with a botanical homepage, the original PlantSimEngine logo, and a matching light/dark palette. Keep the new dependencies in the documentation environment and document local builds.

Normalize nested page paths for search and finish static exports with working asset, anchor, and preview-version URLs. Check exported pages and session assets before deployment.

Validation: 120 documentation checks passed; 79 pages and states verified; 1,421 fragment links resolved; all 67 navigation pages indexed. Browser checks covered search, API links, version navigation, light/dark themes, and the interactive graph.
Organize the Bonito manual around coupling existing models and writing new
ones, with runnable examples, explicit scientific assumptions, and practical
guidance for AI coding agents. Consolidate duplicate introductions and
downstream testing guidance, and remove completed design plans, audits, and
handoffs rather than preserving a separate archive.

Correct the teaching examples' radiation units and cumulative carbon
accounting, preserve generated code/table rendering, and improve narrow-screen
navigation. Keep only source files needed to build and validate the manual.
@VEZY VEZY changed the title docs: build the documentation website with Bonito docs: build a Bonito website and simplify modeling guides Sep 6, 2026
VEZY added 2 commits September 6, 2026 15:02
Use plain English throughout the manual, simplify the first results table with collect_outputs and sink, and replace verbose CompositeModel dumps with a bounded summary.

Validation: 41 display checks, full executable documentation build, and 1212 internal fragment links passed.
@VEZY
VEZY merged commit 4942d2e into main Sep 6, 2026
11 of 15 checks passed
@VEZY
VEZY deleted the codex/bonito-docs-logo branch September 6, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant