Esc

Start typing to search the docs

Architecture

Content pipeline, routing strategy, and theme boundaries.

1 min read · 122 words

View as Markdown

Content pipeline

Markdown -> transform -> compile -> page map.

SVOCS currently uses mdsvex for markdown compilation and a small content registry for routing and sidebar navigation.

content/*.md

mdsvex

Svelte component

page map

sidebar + routes

Theme boundary

Themes render the page-map and content components. They do not own parsing or route generation.

Routing

Docs are served from /docs/* via an optional catch-all route, and prerendered with adapter-static.

Reading time

Every page’s reading time comes from its word count, rounded up to whole minutes at a fixed 200 words-per-minute rate, with a one-minute floor for very short pages:

t=max(1,w200)t = \max\left(1, \left\lceil \frac{w}{200} \right\rceil\right)

where ww is the page’s word count (code fences excluded) and tt is the reading time shown in minutes.