inire/docs/documentation-improvement-plan.md

7.6 KiB

Documentation improvement plan

Give readers a direct path to their task. A new user should be able to route a layout and diagnose a failure. A developer should be able to run a benchmark, explain a routing decision, or find the right diagnostic. Before the reorganization, the benchmark link opened on corridor algorithms and several pages buried steps and choices in long paragraphs. The original combined page is available with git show 24559bb:docs/topological-routing.md.

Proposed navigation

  • README.md gives the project purpose, installation, and one runnable route with an inline result plot. Link directly to User guide, Developer guide, and Benchmarks.
  • DOCS.md is the user landing page.
    • Route a layout in docs/user/route-a-layout.md. Define ports, headings, widths, and keepouts. Show preplaced crossings, movable seeds, and fixed routes where each matters in the workflow.
    • Tune and troubleshoot in docs/user/tune-and-troubleshoot.md. Read a result, distinguish a geometric bound from an unfinished search or a collision, and choose the next setting to test.
    • API reference in docs/user/api-reference.md. Look up public signatures, fields, units, and defaults. Link back to a worked example when an option's effect needs explanation.
    • Examples in examples/README.md. Show a small visual gallery grouped by task, with links to runnable scripts and advanced examples.
  • docs/development.md is the developer landing page.
    • Benchmarks in docs/benchmarks.md. Choose a case and profile, run a command, and compare the results.
    • Architecture in docs/architecture.md. Explain the automatic stage sequence, what gets locked or retried, and what must be verified before selection. Link to docs/topological-routing.md for corridor and lane algorithms.
    • Diagnostics in docs/routing-diagnostics.md. Start from a symptom and select a report, counter, or trace. Use a worked trace to show what the evidence can establish.
    • Design and experiment records link to prior goals, refactor plans, measured results, and generated traces with their original context.

Split benchmarks from topological routing

  1. Make the README's Benchmarks link lead directly to docs/benchmarks.md. Open with overloaded-gate under corpus-regression, where three of four nets route at the three-track bound. Use the output to explain how to judge coverage. Follow with choices for the full regression corpus, mode comparisons, and holdout validation.
  2. Move case groups, profile definitions, coverage and cost interpretation, and comparison commands to the benchmark guide. Put fixture provenance, import commands, and Terminal-Bench reproduction in docs/benchmark-fixtures.md. Put probe and retry findings in docs/benchmark-results.md, with the decision, the conditions, and the evidence needed to reproduce it.
  3. Keep docs/topological-routing.md focused on free-space triangulation, portals, lane assignment, and how guide and seed modes use them. Use a contextual link to the benchmark guide when a reader wants to measure the algorithms.
  4. Update inbound links as part of the move. Map old section links to their new destinations and keep brief forwarding links for useful bookmarks. Preserve the source pins, licenses, and historical commands with the fixture and experiment records.

Write for scanning and use

  • Open each page with the task it supports and put the first action or decision near the top. Name headings after what readers are looking for, such as Run a benchmark or Why a net stopped short.
  • Use numbered lists for procedures, bullets for independent checks and options, and tables for lookup or comparison. Use short paragraphs to explain why a decision follows from the evidence.
  • Keep the public workflows and option reference separate. Explain an option at the point where a user needs to choose it, then link to its canonical default or field definition.
  • Pair an example with its expected result and the next action it demonstrates. Put implementation names and detailed counters beside the developer decisions that use them.
  • Lead benchmark findings with their implication. Include the profile, comparison baseline, and relevant metric. Link to the full measurements when readers need the raw evidence.

Illustrations to add

Place Show Reader takeaway
README quick start A compact plot generated from the exact quick-start snippet, with start and target arrows See what a finished path looks like and how to read arrival direction.
Route a layout A preplaced crossing with the keepout, port access, and the external nets labeled See which geometry belongs to the placed device and which connections to give Inire.
Troubleshooting Two panels of the same best-effort layout showing a partial path and a completed path after increasing the budget See why a partial path can indicate unfinished search.
Examples gallery Inline previews of selected existing plots, including locked paths and S-bends Pick the example that resembles the layout at hand.
Architecture A small flow diagram of construct, probe, widen, recover, verify, and refine See where the router stops, retries, or rejects a candidate.
Topological routing A single fixture shown as free space and portals, a chosen lane, and the verified physical route See where the corridor ends and the detailed router's work begins.

Use the existing plots where they read clearly at page width. Regenerate focused figures from the documented inputs with the existing plotting tools. Give each figure a caption that explains what to notice and alt text that conveys the takeaway. Distinguish states with labels or line styles as well as color. Use a checked-in image for diagrams when the repository renderer needs one. Example plots · Plotting helpers

Order of work

  1. Fix navigation. Split the benchmark and topology pages, add the developer landing page, and update links. This is the first reviewable change.
  2. Rebuild the user path. Turn DOCS.md into a guide index, move the field tables into the reference, and write the layout and troubleshooting pages as steps and decisions. Add the quick-start, crossing, and partial-route figures.
  3. Finish the developer path. Rework the architecture and diagnostics headings, add the flow and corridor figures, and connect the benchmark guide to fixtures and dated results. Embed the selected existing plots in the examples gallery.
  4. Check the paths as a reader. Preview the rendered docs at normal and narrow widths. Check links, old anchors, image paths, and command output. Run the quick start, a benchmark smoke case, and a diagnostic capture from the published instructions.

Acceptance checks

  • From the README, a new user can install, run the first route, see the expected result inline, and find what to check if a real layout returns a partial path.
  • From the README, a developer can click Benchmarks and immediately find how to run a case. The landing page gives enough context to compare verified IDs, path cost, and work under a chosen profile.
  • A developer looking for corridor internals reaches the topology page through Architecture and can follow the stages in an annotated figure.
  • Each main page has one clear job. The headings alone make the path through it apparent, and procedural sections can be followed from their lists.
  • Figures match the current snippets or fixtures, remain legible at ordinary page width, and have descriptive captions. Historical measurements and fixture attributions remain findable from the relevant guide.