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

Deterministic indices #138

Open
SheetJSDev opened this issue Aug 29, 2022 · 0 comments
Open

Deterministic indices #138

SheetJSDev opened this issue Aug 29, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@SheetJSDev
Copy link

Please describe the bug you are seeing

When rebuilding a site that has no content changes, search-index-docs-default-current.json changes.

Ideally the process would generate the same index on each run if neither the content nor the generated pages have changed.

How can we best reproduce the bug?

git clone https://github.com/SheetJS/docs.sheetjs.com
cd docs.sheetjs.com
make init
make build
git status ## verify that docs/search-index-docs-default-current.json has changed
git add docs/search-index-docs-default-current.json
make build
git status ## observe that docs/search-index-docs-default-current.json has changed again

Which version of Docusaurus and @cmfcmf/docusaurus-search-local are you using?

├─┬ @cmfcmf/[email protected]
│ └── @docusaurus/[email protected] deduped
├── @docusaurus/[email protected]
├─┬ @docusaurus/[email protected]
│ └── @docusaurus/[email protected] deduped
├─┬ @docusaurus/[email protected]
│ ├── @docusaurus/[email protected] deduped
│ ├─┬ @docusaurus/[email protected]
│ │ └── @docusaurus/[email protected] deduped
│ ├─┬ @docusaurus/[email protected]
│ │ └── @docusaurus/[email protected] deduped
│ ├─┬ @docusaurus/[email protected]
│ │ └── @docusaurus/[email protected] deduped
│ ├─┬ @docusaurus/[email protected]
│ │ └── @docusaurus/[email protected] deduped
│ ├─┬ @docusaurus/[email protected]
│ │ └── @docusaurus/[email protected] deduped
│ ├─┬ @docusaurus/[email protected]
│ │ └── @docusaurus/[email protected] deduped
│ ├─┬ @docusaurus/[email protected]
│ │ └── @docusaurus/[email protected] deduped
│ ├─┬ @docusaurus/[email protected]
│ │ └── @docusaurus/[email protected] deduped
│ └─┬ @docusaurus/[email protected]
│   └── @docusaurus/[email protected] deduped
└─┬ @docusaurus/[email protected]
  └── @docusaurus/[email protected] deduped

Which Node.js version are you using?

v18.8.0

Which theme are you using?

Yes, I am using @docusaurus/theme-classic

How does your plugin config look like?

No config:

    require.resolve("@cmfcmf/docusaurus-search-local"),

Additional context

Awesome work!

@SheetJSDev SheetJSDev added the bug Something isn't working label Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant