Retire routing archives and consolidate documentation tooling
Generate the guide, walkthrough, and gallery figures from one command. Keep benchmark fixtures and attribution with the tests and fold the durable findings from completed plans into the guides.
This commit is contained in:
parent
5c4d32cc3e
commit
a05980e8af
1 changed files with 374 additions and 17204 deletions
|
|
@ -10,32 +10,21 @@
|
|||
- [Routing diagnostics](routing-diagnostics.md)
|
||||
- [Benchmarks](benchmarks.md)
|
||||
- [Benchmark fixtures](benchmark-fixtures.md)
|
||||
- [Benchmark results](benchmark-results.md)
|
||||
- [Public API](user/api-reference.md)
|
||||
|
||||
## Check a change
|
||||
|
||||
1. From the repository root, run `uv sync` to install development dependencies. Activate `.venv` or prefix commands with `uv run`.
|
||||
2. Run `python -m pytest` for the correctness suite and `ruff check inire scripts` for lint. Use `python -m pytest -m "not routing_corpus"` for a shorter local check.
|
||||
3. For a cleanup that should preserve paths, capture both revisions and run an [exact parity comparison](routing-diagnostics.md#reproduce-and-compare). Include callbacks or traces if the change affects them.
|
||||
3. For a cleanup that should preserve paths, use the same fixtures and options in both revisions. Compare the relevant [route results and traces](routing-diagnostics.md#reproduce-and-compare).
|
||||
4. For a policy or budget change, start with a case that exhibits the behavior. Compare verified IDs, cost, and work under the same [benchmark profile](benchmarks.md#choose-a-profile). Check the corpus and related holdouts before adopting the change.
|
||||
|
||||
Build release archives with `uv build`. The wheel contains the runtime. The source archive also includes tests and fixtures. Smoke-test the wheel outside the checkout on Python 3.11 with Shapely 2.1.0 and GEOS 3.10 or newer, once with NumPy 1.26 and once with NumPy 2.x.
|
||||
|
||||
### Check a documentation figure
|
||||
### Regenerate documentation figures
|
||||
|
||||
Run `python -m scripts.render_documentation_figures --output-dir /tmp/inire-figures` to preview the guides' figures. Check the port directions, keepouts, and route against the runnable example before writing its caption. Omit `--output-dir` to write the guide figures to `docs/figures`. The basic example scripts save their own plots in `examples/`.
|
||||
Run `python -m scripts.render_documentation_figures` to regenerate the guides, the complex-routing walkthrough, and the advanced example gallery in `docs/figures`. Pass `--output-dir /tmp/inire-figures` to preview them in a separate directory.
|
||||
|
||||
### Refresh the advanced example gallery
|
||||
The gallery and walkthrough use the checked-in [layout data](../examples/advanced-layouts.json). The [numbered examples](../examples/README.md) save their own plots in `examples/`.
|
||||
|
||||
After changing a stress fixture or the nine-net board, export the inputs again and regenerate the [advanced example figures](../examples/advanced.md). The exporter checks that the saved data reproduces the benchmark geometry and public-default options. Regenerate the intermediate views when the [complex-routing walkthrough](complex-routing-example-1.md) changes.
|
||||
|
||||
```sh
|
||||
python -m scripts.export_advanced_examples
|
||||
python examples/advanced_layouts.py --output-dir docs/figures
|
||||
python -m scripts.render_complex_routing_example
|
||||
```
|
||||
|
||||
## Development history
|
||||
|
||||
- [Routing development archive](../archive/routing/README.md)
|
||||
When editing a guide, state which inputs or earlier example a reader needs to follow a linked section. Run affected examples, check the links and figures, and preserve existing heading anchors.
|
||||
|
|
|
|||
Loading…
Reference in a new issue