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.
5 lines
2.6 KiB
XML
5 lines
2.6 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 220" role="img" aria-label="The LawSynth loop: observe, discover, understand, use, share">
|
|
<rect width="1200" height="220" fill="#101714"/><rect x="23" y="70" width="194" height="80" rx="12" fill="#18201d" stroke="#3c4a43"/><text x="120" y="108" text-anchor="middle" font-family="Georgia, serif" font-size="22" font-weight="700" fill="#eef3ef">Observe</text><text x="120" y="132" text-anchor="middle" font-family="ui-monospace, monospace" font-size="13" fill="#a9b7b0">CSV</text><line x1="217" y1="110" x2="253" y2="110" stroke="#e0703f" stroke-width="3"/><path d="M253 110 l-14 -7 v14 z" fill="#e0703f"/><rect x="263" y="70" width="194" height="80" rx="12" fill="#18201d" stroke="#3c4a43"/><text x="360" y="108" text-anchor="middle" font-family="Georgia, serif" font-size="22" font-weight="700" fill="#eef3ef">Discover</text><text x="360" y="132" text-anchor="middle" font-family="ui-monospace, monospace" font-size="13" fill="#a9b7b0">laws</text><line x1="457" y1="110" x2="493" y2="110" stroke="#e0703f" stroke-width="3"/><path d="M493 110 l-14 -7 v14 z" fill="#e0703f"/><rect x="503" y="70" width="194" height="80" rx="12" fill="#18201d" stroke="#3c4a43"/><text x="600" y="108" text-anchor="middle" font-family="Georgia, serif" font-size="22" font-weight="700" fill="#eef3ef">Understand</text><text x="600" y="132" text-anchor="middle" font-family="ui-monospace, monospace" font-size="13" fill="#a9b7b0">explain</text><line x1="697" y1="110" x2="733" y2="110" stroke="#e0703f" stroke-width="3"/><path d="M733 110 l-14 -7 v14 z" fill="#e0703f"/><rect x="743" y="70" width="194" height="80" rx="12" fill="#18201d" stroke="#3c4a43"/><text x="840" y="108" text-anchor="middle" font-family="Georgia, serif" font-size="22" font-weight="700" fill="#eef3ef">Use</text><text x="840" y="132" text-anchor="middle" font-family="ui-monospace, monospace" font-size="13" fill="#a9b7b0">forecast / analyze / control</text><line x1="937" y1="110" x2="973" y2="110" stroke="#e0703f" stroke-width="3"/><path d="M973 110 l-14 -7 v14 z" fill="#e0703f"/><rect x="983" y="70" width="194" height="80" rx="12" fill="#18201d" stroke="#3c4a43"/><text x="1080" y="108" text-anchor="middle" font-family="Georgia, serif" font-size="22" font-weight="700" fill="#eef3ef">Share</text><text x="1080" y="132" text-anchor="middle" font-family="ui-monospace, monospace" font-size="13" fill="#a9b7b0">report / .lsworld</text>
|
|
<text x="600" y="188" text-anchor="middle" font-family="Inter, system-ui, sans-serif" font-size="16" fill="#a9b7b0">Every step is one deterministic, offline command in the lawsynth CLI.</text>
|
|
</svg>
|