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?
optionalindexName?:string
Defined in: packages/docs/src/docs.ts:20
Names the vector index in the browser's storage. Default docs.
meaning?
optionalmeaning?:boolean
Defined in: packages/docs/src/docs.ts:18
Search by meaning, with the reader's embedding model. Default true.
navigate?
optionalnavigate?: (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?
optionalstorage?:VectorStorage
Defined in: packages/docs/src/docs.ts:22
Where vectors are kept. Default IndexedDB (memory when the browser has none).
version?
optionalversion?: () =>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