Skip to content

indexPages option not working #456

@arbcar

Description

@arbcar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions