@apiref/rendererpackage-index
vite-plus-starter
A starter for creating a Vite Plus project.
Development
- Install dependencies:
vp install
- Run the unit tests:
vp test
- Build the library:
vp pack
Interfaces
Breadcrumbproperty
A single breadcrumb in the navigation path.
MemberFlagsproperty
Modifiers and flags for a member.
MemberViewModelproperty
A member (property, method, accessor, etc.) of a class or interface.
Can have optional signatures (for callable members) and/or a type (for properties).
PageViewModelproperty
A single documentation page representing a declaration (class, function, etc.) or the package index.
Renders to a complete HTML document at the specified URL.
ParameterViewModelproperty
A function or method parameter.
RenderOptionsproperty
Options for rendering a site to HTML.
SignatureViewModelproperty
A callable signature (function or method definition).
Includes type parameters (generics), parameters, return type, and documentation.
SiteViewModelproperty
The root object representing an entire API documentation site.
TransformOptionsproperty
Options for transforming TypeDoc JSON to a SiteViewModel.
TypeParameterViewModelproperty
A generic type parameter with optional constraint and default.
Type Aliases
DocNodeproperty
A documentation node, part of a JSDoc/TSDoc comment.
Reassembled from TypeDoc's comment parts to support rendering with Markdown or custom handlers.
PageKindproperty
The kind of declaration a page represents.
package-index: The root documentation pagemodule: A module or namespace grouping exportsclass,interface: Class or interface declarationfunction,variable: Standalone function or variabletype-alias: TypeScript type aliasenum: Enumerationnamespace: TypeScript namespace
Sectionproperty
A content section within a page.
Different section kinds render different content:
summary: Documentation text/descriptionconstructor: Class constructor(s) with signaturessignatures: Callable signatures (functions, methods)members: Listed members (properties, methods, etc.) within a class/interfacetype-declaration: Type alias or variable type definition
TypeViewModelproperty
A TypeScript type, represented as a tagged union.
Covers all TypeScript type constructs including primitives, generics, unions, intersections, conditional types, and reflections (inline object/function types).
Functions
renderSite()method
Render a SiteViewModel to a map of url → HTML string.
This is the second step in the rendering pipeline:
- Transform TypeDoc JSON to SiteViewModel with transform
- Render SiteViewModel to HTML pages (this function)
- Write the Map entries to disk
Each generated HTML document is a complete, standalone page with:
- Full HTML5 structure (doctype, head, body)
- Embedded shell configuration in a
<script id="ar-meta">tag - Links to shell assets (CSS, JS) from the provided CDN URL
- Ready to serve or write to static file storage
- site
The SiteViewModel to render
- options
Render options (e.g., shellBaseUrl for asset CDN)
transform()method
Transform a TypeDoc v2.0 JSON project into a SiteViewModel ready for rendering.
This is the first step in the rendering pipeline:
- Parse TypeDoc JSON (v2.0 schema)
- Build URL map, navigate tree structure
- Create pages, sections, and member view models
- Return a complete SiteViewModel
- input
The TypeDoc JSON project object (or raw JSON to parse)
- options
Transformation options (e.g., override version)