themes-terminal/schemas/toc.schema.json
Alex Dunmow 0a9b177f7c initial: theme plugin terminal
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/terminal.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:44 +08:00

40 lines
984 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Section TOC",
"description": "Fixed left-rail table of contents for article pages",
"type": "object",
"properties": {
"heading": {
"type": "string",
"title": "Heading",
"description": "Heading shown above the list",
"default": "Sections",
"x-editor": "text"
},
"items": {
"type": "array",
"title": "Items",
"description": "Anchor links into the page body",
"default": [],
"x-editor": "collection",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"title": "Label",
"x-editor": "text"
},
"anchor": {
"type": "string",
"title": "Anchor",
"description": "Anchor slug (no leading '#')",
"x-editor": "slug"
}
},
"required": ["label"]
}
}
}
}