|
|
@ -132,7 +132,7 @@ export async function localSearchPlugin(
|
|
|
|
const html = await render(file)
|
|
|
|
const html = await render(file)
|
|
|
|
const sections =
|
|
|
|
const sections =
|
|
|
|
// user provided generator
|
|
|
|
// user provided generator
|
|
|
|
(await options.miniSearch?.splitIntoSections?.(file, html)) ??
|
|
|
|
(await options.miniSearch?._splitIntoSections?.(file, html)) ??
|
|
|
|
// default implementation
|
|
|
|
// default implementation
|
|
|
|
splitPageIntoSections(html)
|
|
|
|
splitPageIntoSections(html)
|
|
|
|
// add sections to the locale index
|
|
|
|
// add sections to the locale index
|
|
|
|