Module

PuduLangDocgen.Site.Search

View source

The searchable text of published pages

Functions

Name Description
index The search index as JSON: href, title, summary, and text of every indexable page. Pages with `_noindex` and redirect pages are left out.
plainText Visible text of HTML with white space collapsed and common references decoded.

index

fn index(pages: &Array[Docgen.Page]) -> Str

The search index as JSON: href, title, summary, and text of every indexable page. Pages with _noindex and redirect pages are left out.

Parameters

pages
&Array[Docgen.Page]

Returns

Str

View source

plainText

fn plainText(html: Str) -> Str

Visible text of HTML with white space collapsed and common references decoded.

Parameters

html
Str

Returns

Str

View source