Documentation
¶
Overview ¶
Command levelgen generates the specification-level table (concept v11 §C.5, brief S3 part 2) from parity/levels/*.json: schema/levels_gen.go, then the generated block of docs/reference/spec-levels.md. It fails when the last level is not the pin's revision or does not know an element of the pin (parity/schema.json), naming the element.
The doc's server-internal section is measured on the reference daemon: levelgen builds examples/reference-bridge (after writing levels_gen.go, which the build needs) and runs it with --dump-surface --spec-level <level> for every level below the pin. It imports neither schema nor surface itself, so it runs while levels_gen.go is missing or stale. When the measurement or the doc fails, levels_gen.go is put back as it was: a failed run leaves both files as they were (R2-P6-err-2709).
go run ./script/levelgen # from the module root go run ./script/levelgen -doc=false
Directories
¶
| Path | Synopsis |
|---|---|
|
Package leveltable reads the specification level files (parity/levels/<level>.json, extracted from matter.js's release tags by script/extract-levels-from-matter-js.ts) and renders what is generated from them: schema/levels_gen.go and the generated block of docs/reference/spec-levels.md (concept v11 §C.5, brief S3 part 2).
|
Package leveltable reads the specification level files (parity/levels/<level>.json, extracted from matter.js's release tags by script/extract-levels-from-matter-js.ts) and renders what is generated from them: schema/levels_gen.go and the generated block of docs/reference/spec-levels.md (concept v11 §C.5, brief S3 part 2). |