docslothregistry

steps

Ordered walkthrough steps

pure 1.0.0 Apache-2.0

Install

docsloth component add @docsloth/steps@1.0.0 \
  --registry https://registry.docsloth.dev

Run it in a project that has a docsloth.config.json (docsloth init writes one). The docsloth CLI is not on npm yet: it runs from a checkout of the Docsloth engine, and the quickstart shows the setup. Every official component already renders in Docsloth sites; installing one vendors its props schema and specification and pins this exact version and digest.

What the CLI checks

docsloth component add reads this entry from index.json, recomputes the package digest from the manifest and the digest of every file, and writes nothing if one differs.

index.json, lines 835–852
835    {836      "name": "@docsloth/steps",837      "version": "1.0.0",838      "kind": "block",839      "description": "Ordered walkthrough steps",840      "license": "Apache-2.0",841      "engine": ">=1 <2",842      "publisher": "docsloth",843      "digest": "sha256:be7f72fb3273a4eb8a305bd841377c54dcb1ce71a479028cbd12b0641c64003e",844      "blocks": [845        "steps"846      ],847      "capabilities": [848        "render.html"849      ],850      "manifest_path": "packages/@docsloth/steps/1.0.0/manifest.json",851      "files_base": "packages/@docsloth/steps/1.0.0/files"852    },

Trust signals

Runtime trust class (catalog)
pure. Renders content only: no side effects, no network access and no permission prompts.
Install trust class
interactive, derived from the declared render.html. This is the class docsloth component add and docsloth component list report; it installs under the default policy, with no trust policy.
Package
@docsloth/steps, version 1.0.0
Package digest
sha256:be7f72fb3273a4eb8a305bd841377c54dcb1ce71a479028cbd12b0641c64003e
Files
2 files, each pinned by its own sha256 digest (listed under Package files)
Capabilities declared
render.html. A declaration, never a grant; every official package declares the same.
Publisher
docsloth, a publisher id rather than a verified identity
Licence
Apache-2.0
Engine range
>=1 <2
Index signature
Not signed. Digests prove the bytes match the index, not who published them.
Tools
none
Built from
packages/contracts/component-props/steps.schema.json and packages/contracts/component-specs/steps.md in docsloth-registry

Props

The props schema is packages/contracts/component-props/steps.schema.json; props it does not list are rejected.

PropTypeRequiredNotes
titlestringnomaxLength: 160

No prop is required.

Example props generated from the schema
{
  "title": "Quickstart"
}

Preview

Rendered by @docsloth/renderer from the example document block in the specification.

Document block
{
  "type": "steps",
  "props": {
    "title": "Quickstart"
  },
  "children": [
    {
      "type": "prose",
      "props": {
        "label": "Install the CLI",
        "text": "Add the package."
      }
    },
    {
      "type": "prose",
      "props": {
        "label": "Render a page",
        "text": "Call renderPageToMarkdown."
      }
    }
  ]
}
  1. Install the CLI

    Add the package.
  2. Render a page

    Call renderPageToMarkdown.

This is the renderer's real HTML with this registry's styles. Links and controls in the preview are inactive.

Rendered HTML
<ol class="ds-steps" data-component="steps" aria-label="Quickstart">
<li class="ds-step" data-step="1">
<span class="ds-step-number" aria-hidden="true" data-markdown-ignore="true">1</span>
<p class="ds-step-title">Install the CLI</p>
<div class="ds-prose">Add the package.</div>
</li>
<li class="ds-step" data-step="2">
<span class="ds-step-number" aria-hidden="true" data-markdown-ignore="true">2</span>
<p class="ds-step-title">Render a page</p>
<div class="ds-prose">Call renderPageToMarkdown.</div>
</li>
</ol>

Specification

From packages/contracts/component-specs/steps.md.

Contract

Packaged: this block ships as @docsloth/steps@1.0.0 — an installable component package (kind block, capability render.html, Apache-2.0) whose production props schema is packages/contracts/component-props/steps.schema.json and whose catalog entry is in packages/contracts/component-catalog.json. No protocol manifest fixture is published (manifest_fixture: null): the fixture models a packaged protocol runtime this block does not have.

Intended behavior

Ordered walkthrough: each child renders as an <li> inside a single <ol>, with an optional step title from label/title/summary. Markdown emits a numbered list with the step body nested under its item, and JSON preserves child order and labels. An untitled step starts its body on its marker line (1. …): an empty marker line is no list item for micromark right after indented code, nor past a blank line, so every line under it would leave the step. A step already inside four steps or cards is written flat in Markdown — its marker line, a blank line, then its body at the marker's column — so no line is indented past four list items and the twin stays proportional to the page.

Failure and fallback

Empty children or a non-array children value degrades to the labelled fallback block (data-fallback="true", Markdown note, JSON fallback: true); an empty walkthrough never renders as silent success, and no prop shape throws.

Required acceptance cases

Render two steps and assert <ol>/<li> order, aria-hidden="true" + data-markdown-ignore="true" on the number markers, 1./2. Markdown items, and HTML/Markdown visible-text parity. Also test empty data, a non-array children value, unknown extra props, mobile 360px, dark mode and an explicit constrained agent tool call. The server independently authorizes capability requests; a package manifest cannot grant authority.

Data and maintenance

Data bindings resolve from a specific publication/release vector and permitted fact/evidence graph. Configuration edits create versioned component patches. Update invalidation uses dependency IDs, never indiscriminate whole-page regeneration. Human-owned props survive automatic updates unless invalidated with an explicit conflict. Missing optional resources leave an honest inert/readable fallback, not a broken page or fake success.

Cost and tools

Pure/local interaction must never invoke a model by accident. Any model, remote query or executor call must reserve approved budget before dispatch. Public visitors do not inherit owner resources. The component may call only named tools in its signed manifest with valid typed inputs. A cancelled job stops polling and closes resources. No component gets platform administration, raw credentials or an unlimited execution loop.

Native renderer block

Block type: steps. Renderer: packages/renderer/src/index.ts (native, no permission surface).

Native block props

proptyperequiredbehaviour
titlestringnoAccessible name for the <ol> (aria-label).
childrenDocBlock[]yesOne step per child. Child label/title/summary becomes the step title; the rest of the child renders as the step body.
children[].props.labelstringnoStep title. Omit for an untitled numbered step.

Ordering comes from the <ol> and the Markdown list markers; the visible number badge is interface-only chrome marked data-markdown-ignore and aria-hidden.

Example

{
  "type": "steps",
  "props": { "title": "Quickstart" },
  "children": [
    { "type": "prose", "props": { "label": "Install the CLI", "text": "Add the package." } },
    { "type": "prose", "props": { "label": "Render a page", "text": "Call renderPageToMarkdown." } }
  ]
}

Markdown:

1. **Install the CLI**

   Add the package.

2. **Render a page**

   Call renderPageToMarkdown.

Package files

Served under packages/@docsloth/steps/1.0.0/. The package digest covers manifest.json, which lists each file with its digest.

Filesha256 digestBytes
props.schema.jsonsha256:92d66175b1b96988076fc5bbf0547e300dbf99145e7957483b0b273f3797496b437
spec.mdsha256:e32b23b9419044cedd2fe32b920473bc08b3910a832e84c65ab751c7b6787b4d3948

Sources

SourceLocation
Markdown twinhttps://registry.docsloth.dev/docs/steps.md
JSON metadatahttps://registry.docsloth.dev/api/v1/components/steps.json
Specificationpackages/contracts/component-specs/steps.md
Props schemapackages/contracts/component-props/steps.schema.json
Catalogpackages/contracts/component-catalog.json