Skip to content

Commit

Permalink
fix: wrong variable when checking available documentation plugins
Browse files Browse the repository at this point in the history
Use `docsPlugins` instead of `pagesPlugins`
  • Loading branch information
pinkiebell committed Jan 12, 2022
1 parent a1ea0d4 commit 8b04bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-search-local/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export const tokenize = (input) => lunr.tokenizer(input)
"docusaurus-plugin-content-pages"
);

if (indexDocs && pagesPlugins.size === 0) {
if (indexDocs && docsPlugins.size === 0) {
throw new Error(
'The "indexDocs" option is enabled but no docs plugin has been found.'
);
Expand Down

0 comments on commit 8b04bbf

Please sign in to comment.