Skip to content
Svartz v2.6.0

@svartz/theme-api-docs

16 exported symbols.

Interfaces

i ApiDocsThemeConfigThe vault's `theme` settings for API docs.
i ApiParameter
i ApiResponse
i GraphqlOperation
i RestOperation
i SocketMessageOne kind of WebSocket message, by who sends it: the client (`send`) or the server (`receive`).
i WebSocketOperationA WebSocket endpoint: the upgrade request's parameters and responses, then the messages over the open socket.

Types

t ApiOperationThe `operation` frontmatter schema, one endpoint or GraphQL field per note. An OpenAPI or GraphQL SDL plugin emits this shape.

Functions

f defaultNode-safe manifest used by the build pipeline.
f themeVite-bundled runtime manifest.

Variables

v apiRenderersREST endpoints, WebSockets, GraphQL operations, and shared schemas.
v extensionsThe Node-safe extension the build composes.
v extensionsREST, GraphQL, and schema pages on theme-minimal, with the reference frame. Compose them with other themes' extensions.
v graphqlRenderer`operation.protocol: graphql`: one query, mutation, or subscription field per page.
v restRenderer`operation.protocol: rest` (the default): one HTTP endpoint per page.
v websocketRenderer`operation.protocol: websocket`: one WebSocket endpoint per page, listed after the path's HTTP methods.