caelum0x 74cd272200 feat(docs-site): publish repo docs/ as site pages and add discovery diagrams
Load the 253 hand-written Markdown files under docs/ through the existing
compileSite pipeline, published under /docs/** with README->index mapping,
internal .md link rewriting, and folder-grouped navigation (254 pages incl.
a /docs landing). Add standalone-image support to the Markdown renderer
(same-origin-only sources matching the img-src 'self' CSP, semantic <figure>
with figcaption, lazy/async loading) and wire the new hero phase-portrait and
discovery-loop SVG diagrams into the landing and getting-started pages.

- load-docs.mjs: fs-backed docs loader (deterministic sorted discovery)
- markdown.ts: image block kind, parser, renderer, alt indexed for search
- theme.ts: .docs-figure styling
- content.ts: hero.svg + loop.svg on / and /getting-started
- tests: image rendering + docs-corpus coverage; determinism preserved

254 pages render; 12/12 tests pass; two renders byte-identical.
2026-08-18 23:47:49 +03:00

24 lines
3.4 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 500" role="img" aria-label="LawSynth: from a trajectory to a governing law">
<rect width="1200" height="500" fill="#101714"/>
<!-- phase portrait -->
<g>
<line x1="120" y1="250" x2="500" y2="250" stroke="#3c4a43" stroke-width="1.5"/>
<line x1="300" y1="70" x2="300" y2="440" stroke="#3c4a43" stroke-width="1.5"/>
<polyline points="450.0,250.0 446.0,269.2 439.7,287.4 431.2,304.3 420.7,319.7 408.6,333.3 395.0,345.0 380.3,354.7 364.8,362.2 348.7,367.5 332.3,370.6 316.0,371.6 300.0,370.4 284.6,367.2 270.0,362.1 256.4,355.3 244.1,346.9 233.1,337.1 223.7,326.3 216.0,314.5 210.0,302.0 205.7,289.1 203.2,275.9 202.4,262.8 203.4,250.0 205.9,237.6 210.0,225.9 215.5,215.0 222.2,205.1 230.1,196.3 238.8,188.8 248.3,182.6 258.3,177.7 268.6,174.3 279.2,172.3 289.7,171.7 300.0,172.5 309.9,174.5 319.3,177.8 328.1,182.2 336.0,187.6 343.1,193.9 349.1,200.9 354.1,208.5 358.0,216.5 360.8,224.8 362.4,233.3 362.8,241.7 362.2,250.0 360.6,258.0 358.0,265.5 354.4,272.5 350.1,278.9 345.1,284.6 339.4,289.4 333.3,293.4 326.9,296.6 320.2,298.8 313.4,300.1 306.6,300.4 300.0,300.0 293.6,298.6 287.5,296.5 281.9,293.7 276.8,290.2 272.3,286.2 268.4,281.6 265.1,276.7 262.6,271.6 260.9,266.2 259.8,260.8 259.5,255.3 259.9,250.0 261.0,244.9 262.7,240.0 264.9,235.5 267.7,231.4 271.0,227.7 274.6,224.6 278.5,222.0 282.7,220.0 287.0,218.6 291.4,217.8 295.7,217.5 300.0,217.8 304.1,218.7 308.0,220.0 311.7,221.9 315.0,224.1 317.9,226.7 320.4,229.6 322.5,232.8 324.1,236.1 325.2,239.6 325.9,243.1 326.1,246.6 325.8,250.0 325.1,253.3 324.0,256.4 322.6,259.4 320.8,262.0 318.7,264.3 316.4,266.4 313.8,268.0 311.2,269.3 308.4,270.2 305.6,270.8 302.8,270.9 300.0,270.7 297.3,270.2 294.8,269.3 292.5,268.1 290.4,266.7 288.5,265.0 286.9,263.1 285.5,261.1 284.5,259.0 283.8,256.7 283.3,254.5 283.2,252.2 283.4,250.0 283.8,247.9 284.5,245.8 285.5,244.0 286.6,242.3 288.0,240.8 289.5,239.5 291.1,238.4 292.8,237.6 294.6,237.0 296.4,236.6 298.2,236.5 300.0,236.6 301.7,237.0 303.3,237.6 304.8,238.3 306.2,239.3 307.4,240.3 308.5,241.5 309.3,242.9 310.0,244.2 310.5,245.7 310.7,247.1 310.8,248.6 310.7,250.0 310.4,251.4 310.0,252.7 309.4,253.9 308.6,255.0 307.8,256.0 306.8,256.8 305.7,257.5 304.6,258.0 303.5,258.4 302.3,258.6 301.1,258.7 300.0,258.6 298.9,258.4 297.9,258.0 296.9,257.5 296.0,256.9 295.2,256.2 294.6,255.4 294.0,254.6 293.6,253.7 293.3,252.8 293.1,251.9 293.0,250.9" fill="none" stroke="#e0703f" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" opacity="0.9"/>
<circle cx="300" cy="250" r="5.5" fill="#eef3ef"/>
<text x="120" y="466" font-family="ui-monospace, monospace" font-size="20" fill="#a9b7b0">observed trajectory</text>
</g>
<!-- arrow -->
<g stroke="#e0703f" fill="#e0703f">
<line x1="560" y1="250" x2="660" y2="250" stroke-width="4"/>
<path d="M660 250 l-16 -9 v18 z"/>
<text x="560" y="228" font-family="Inter, system-ui, sans-serif" font-size="20" fill="#a9b7b0" stroke="none">discover</text>
</g>
<!-- discovered law -->
<g font-family="ui-monospace, SFMono-Regular, monospace" fill="#eef3ef">
<text x="710" y="210" font-size="34">dx/dt = <tspan fill="#e0703f">y</tspan></text>
<text x="710" y="270" font-size="34">dy/dt = <tspan fill="#e0703f">-x - 0.3&#183;y</tspan></text>
<text x="710" y="330" font-size="18" fill="#a9b7b0">interpretable &#183; executable &#183; deterministic</text>
</g>
</svg>