@svartz/theme-minimal/runtime
22 exported symbols.
Classes
| c ThemeSelectionError |
Interfaces
| i Composition | A composed site's themes: the first styles the site; all of them render pages. |
| i FrameProps | A frame lays out the regions; minimal's is three columns. |
| i PageChoice | The theme that renders a page, and the renderer and data when one of its renderers claimed the page. Plain notes in the primary theme have no choice. |
| i PageRenderer | Renders one kind of page, chosen from the page's frontmatter: an endpoint from `operation`, a symbol from `symbol`, a wiki article from `infobox`. |
| i ReadingStop | A stop in reading order: a folder's page, or a note. |
| i RegionProps | |
| i RendererProps | |
| i ShellState | Everything minimal works out once per page and hands to every region, so a theme that swaps a region keeps minimal's behaviour. |
| i ThemeBuildExtension | The Node-safe part of an extension, for the build: no components. |
| i ThemeChrome | Minimal's optional furniture. |
| i ThemeExtension | What a theme adds to theme-minimal. Everything is optional: minimal itself is the empty extension. In a composition the first extension's frame, regions, list pages, and chrome style the site; every extension's renderers render pages. |
Types
| t ListPageName | The list pages a theme can provide; each receives the usual page props. |
| t RegionName |
Functions
| f choosePage | The theme and renderer for a page. The page's own `theme:` wins, then the nearest folder note's (`folderNotes`, nearest first), then whichever renderer detects the page from its frontmatter. A page none of that picks is a plain note in the primary theme, and gets `undefined`. |
| f composeThemes | A runtime manifest that composes themes on minimal's shell. The first theme styles the site; each page renders with the theme that claims it. |
| f compositionOf | The composition a runtime manifest carries; minimal alone for any other manifest. |
| f definePageRenderer | Keeps a renderer's data type flowing from `detect` to its components. |
| f folderTheme | The theme that lists a folder's page: the folder note's `theme:`, then its ancestors' (`folderNotes`, nearest first), then the primary theme. |
| f theme | Vite-bundled runtime manifest. Lazy entries load before SSR and hydration. |
Variables
| v extensions | Minimal's own extension: the base every theme extends. |
| v minimalExtension | Minimal itself: the extension every composition falls back to. |