Architecture
Current pipeline
The current implementation is intentionally small.
Docsmithexposes the public API.Buildercollects configuration (versions, llms-export, readme-index, theme, etc.).BuildConfigvalidates source and output paths.SourceScannerdiscovers Markdown files (respects per-version source directories).CommonMarkRendererconverts Markdown into HTML.SiteBuilderwrites HTML pages, version switcher, search overlay, and publishes CSS/JS assets.AssetPublishergeneratessearch-index.json,sitemap.xml,.nojekyll,llms.txt,llms-full.txt, andexport/docs.md.
Current source model
Every discovered Markdown file is normalized into a Document object containing:
- source path
- relative path
- output path
- title
- raw Markdown
- rendered HTML
Current renderer
The current renderer produces:
- a sidebar navigation
- a main content area
- a generated landing page when needed
- local CSS under
assets/app.css
This is the minimal implementation baseline, not the final architecture.