Skip to content

docs: rework docs structure, contents and diagrams - #43

Merged
neurolabs merged 7 commits into
mainfrom
feat/docs-diagrams
Aug 31, 2026
Merged

docs: rework docs structure, contents and diagrams#43
neurolabs merged 7 commits into
mainfrom
feat/docs-diagrams

Conversation

@neurolabs

Copy link
Copy Markdown
Member

What

Docs rework: restructured the docs tree, expanded contents, and rendered
architecture diagrams server-side with PlantUML (C4 context/container models,
config precedence, lifecycle).

Also included

While on this branch, the daemon-restart path was tightened so a config
provisioning failure during a restart decision preserves the currently-running
opencode daemon instead of restarting it against stale/partial config
(internal/sandbox/vm/reconfig.go), with the surrounding test suite adapted
and extended:

  • setUpSandbox now tracks whether provisioning succeeded and only calls
    restartDaemons when it did (restoring the pre-refactor behaviour of keeping
    the existing daemon on a write failure).
  • Adapted restartDaemons callers to the changed signature.
  • Added TestSetUpSandboxSkipsRestartOnProvisionError to guard the regression.

Notes

This PR intentionally mixes the docs work with a small code change; if you'd
prefer them split, I can rebase the code change onto its own branch/PR.

Replace the three client-side Mermaid diagrams (system-context C4, VM
lifecycle, config precedence) with server-rendered PlantUML SVGs:

- getting-started.md: C4 container diagram via vendored C4-PlantUML.
- sandboxes.md: lifecycle diagram detailed from the source flow, showing
  opencode-version resolution, the reconfig decision and all user prompts
  (upgrade rebuild, home-volume, VM-recreate, daemon-restart), fresh-boot
  startup hooks/dockerd, and reap-on-last-client.
- configuration.md: precedence diagram.

Add a docs render step that builds each diagram to SVG before the Jekyll
build, a portable 'make docs-diagrams' target, the PlantUML jar + JRE +
truststore in the sandbox Dockerfile, and gitignore the generated SVGs and
docs/superpowers working artifacts.
* created recipes and getting-started sections
* expanded sidebar menus by default
* added docs-serve make target for previewing/developing docs
* simplified code while tracing lifecycle diagram steps
@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.45%. Comparing base (58f70f5) to head (4f731ef).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   88.06%   88.45%   +0.39%     
==========================================
  Files          86       86              
  Lines        5186     5172      -14     
==========================================
+ Hits         4567     4575       +8     
+ Misses        431      414      -17     
+ Partials      188      183       -5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@neurolabs
neurolabs merged commit 2f750e2 into main Aug 31, 2026
6 checks passed
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