Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indexPages option not working #456

Open
arbcar opened this issue Sep 19, 2024 · 1 comment
Open

indexPages option not working #456

arbcar opened this issue Sep 19, 2024 · 1 comment

Comments

@arbcar
Copy link

arbcar commented Sep 19, 2024

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

@Warsheep-GER
Copy link

indexPages: true, = all own sites in src/pages/xxx

the starting page isnt indexed jet, i search this too. would be great when the homesite also get a variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants