living-docs

v0.3.2
@bytesbybrandon/living-docs Checked 1 day ago Published 21 days ago

Turn a source document into a designed, self-contained living doc: academic paper, dark reading notes, or telemetry console.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

living_docs_themes

List the living-doc themes and what each is best for.

living_docs_schema

Show the document-model schema: block types and fields, or one block in detail.

ParameterTypeDescription
blockstringBlock type for detailed fields, e.g. figure

living_docs_ingest

Read a source (path, URL, or text) and return its outline. With draft=true, also build a renderable model from the source.

ParameterTypeDescription
draftbooleanInclude a draft document model built from the source
max_charsnumberSection text limit, default 12000
outstringWrite the draft model JSON to this path
pathstringSource file: md, txt, html, pdf
sectionstringReturn one section: 1-based index or id
seedstringHex accent seed for the draft, overriding the one derived from the title
staticbooleanDraft without the auto-generated timeline cues
textstringInline source text
themestringTheme for the draft; omit to let the source pick a look
urlstringSource URL

living_docs_render

Validate a document model and write a self-contained HTML doc, or an mp4, webm, or gif of its timeline. Accepts a model object, a model path, or a source to draft from.

ParameterTypeDescription
formatstringhtml (default) or a video of the timeline; video needs playwright and ffmpeg
fpsnumberVideo frames per second, default 30
modelobjectDocument model object
model_pathstringPath to a model JSON file
outstringOutput path, default docs/<title>-<theme>.<format>
sizestringVideo stage size, default 1080x1350
sourcestringSource path or URL to ingest and draft from
themestring

living_docs_preview

Serve a built docs directory over HTTP and list the documents. Returns the URL (server stays up in this process).

ParameterTypeDescription
dirstringDirectory to serve, default docs
portnumberPort, default 4600