Notable additions, shown off with live examples — every page in this section
is itself a .sdoc file exercising the feature it presents. For the full
record of every release, see the changelog.
0.0.156 — a not-found page, and CLI options that are read
An address that resolves to nothing now says so and links back into each
section, instead of quietly rendering the About screen — a dead link used
to look like a working one. The CLI gained --port, --open / --no-open and --out-dir, and it rejects anything it does not understand rather than
accepting a misspelled flag in silence. See the command reference.
0.0.155 — outDir, and a build that won't delete your bundle
sdocs build empties its output directory, and the default is dist/ —
which in a component library is where the library's own build lives. It now
refuses a directory it did not write, names the files it found, and points
at outDir.
0.0.148 — a component describes itself
A .svelte file's <!-- @component --> comment — Svelte's own convention,
the one your editor shows on hover — is read and rendered under the
component's tab. Write the description beside the code once instead of
repeating it in every .sdoc that previews it. See [COMPONENT].
0.0.145 — [GLOSSARY]
A titled list of terms, rendered where it is written: in a [SHOWCASE] it
flows with the other blocks, in a [DOC] it sits mid-prose. search turns
on a filter box. Language reference.
0.0.140 — component status
draft, wip, review, experimental, ready, deprecated — shown as a
glyph on the component's tab, so a strip of tabs says what is safe to use at
a glance. See it live.
0.0.139 — the text blocks
[NOTES], [TODO] and [PROSE] — standing remarks with a status
vocabulary that rolls up into the sidebar, a nested checklist you can tick
from the browser, and markdown anywhere in a component's page. [COMPONENTS] groups several component blocks into the one tab strip they share. Language reference.
0.0.81 — block-level <script> and <style>
Previews and examples can carry their own script and style — a full mini component with lexical scoping. See it live, or read the language reference.
0.0.82 — stage backgrounds
A background for preview/example stages, cascading from config through
entity to block. See it live.
0.0.80–0.0.82 — honest API tables
class/...rest forwarding renders as chips instead of fake required
props; a CSS var used with divergent fallbacks reports Mixed with a
per-property breakdown; union types get per-member badges and a text
control. All on one component.