Skip to main content

Interface: DocsOptions

Defined in: packages/docs/src/docs.ts:7

Properties​

corpus​

corpus: DocsCorpus | (() => Promise<DocsCorpus>)

Defined in: packages/docs/src/docs.ts:9

The corpus, or how to fetch it (called once, when first needed).


indexName?​

optional indexName?: string

Defined in: packages/docs/src/docs.ts:20

Names the vector index in the browser's storage. Default docs.


meaning?​

optional meaning?: boolean

Defined in: packages/docs/src/docs.ts:18

Search by meaning, with the reader's embedding model. Default true.


optional navigate?: (url) => void

Defined in: packages/docs/src/docs.ts:14

Show a page to the reader. Default: location.assign. Single-page sites pass their router's navigation.

Parameters​

url​

string

Returns​

void


storage?​

optional storage?: VectorStorage

Defined in: packages/docs/src/docs.ts:22

Where vectors are kept. Default IndexedDB (memory when the browser has none).


version?​

optional version?: () => string | undefined

Defined in: packages/docs/src/docs.ts:16

The docs version the reader is on (versioned docs). Default: the version of the page open, else the corpus's default.

Returns​

string | undefined