-
Notifications
You must be signed in to change notification settings - Fork 103
Description
The indexPages option in Docusaurus does not seem to work as expected when trying to index static HTML pages (such as index.html). When setting indexPages: true, the static pages are not being indexed by the search system.
I create a project :
npx create-docusaurus@latest my-website classic --typescript
and then install the plugin:
themes: [
// ... Your other themes.
[
require.resolve("@easyops-cn/docusaurus-search-local"),
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
({
// ... Your options.
// hashed
is recommended as long-term-cache of index file is possible.
hashed: true,
indexPages: true,
// For Docs using Chinese, The language
is recommended to set to:
// // language: ["en", "zh"], //
}),
],
],
I expected to see the index.html indexed.
Am I wrong ?
Thanks