diff --git a/src/Page.js b/src/Page.js index a5405d90c3..6780991727 100644 --- a/src/Page.js +++ b/src/Page.js @@ -338,7 +338,7 @@ class Page { return; } const $ = cheerio.load(content); - $('modal').remove(); + $('b-modal').remove(); this._collectNavigableHeadings($, $.root()[0], elementSelector); } @@ -405,7 +405,7 @@ class Page { collectHeadingsAndKeywordsInContent(content, lastHeading, excludeHeadings, sourceTraversalStack) { let $ = cheerio.load(content); const headingsSelector = Page.generateHeadingSelector(this.headingIndexingLevel); - $('modal').remove(); + $('b-modal').remove(); $('panel').not('panel panel') .each((index, panel) => { const slotHeader = $(panel).children('[slot="header"]'); @@ -468,7 +468,7 @@ class Page { }); $ = cheerio.load(content); if (this.headingIndexingLevel > 0) { - $('modal').remove(); + $('b-modal').remove(); $('panel').remove(); if (!excludeHeadings) { $(headingsSelector).each((i, heading) => { diff --git a/src/plugins/algolia.js b/src/plugins/algolia.js index 754a34ab7e..02759870e7 100644 --- a/src/plugins/algolia.js +++ b/src/plugins/algolia.js @@ -25,7 +25,7 @@ function addNoIndexClasses(content) { const $ = cheerio.load(content, { xmlMode: false }); const noIndexSelectors = [ 'dropdown', - 'modal', + 'b-modal', 'panel:not([expanded])', 'popover div[slot=content]', 'question div[slot=hint]', diff --git a/test/functional/test_site/expected/index.html b/test/functional/test_site/expected/index.html index 8498974650..6002d95d8e 100644 --- a/test/functional/test_site/expected/index.html +++ b/test/functional/test_site/expected/index.html @@ -709,7 +709,6 @@
Modal content should have algolia-no-index class
-