File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 151151 if ( isFirstRender ) {
152152 const input = document . createElement ( 'input' )
153153 input . classList . add ( 'ais-SearchBox-input' )
154- input . placeholder = `Search in the current documentation ${ config . pageVersion } `
154+ input . placeholder = `Search in the current documentation ${ config . pageGeneration } `
155155 const loadingIndicator = document . createElement ( 'span' )
156156 loadingIndicator . textContent = 'Loading...'
157157 const button = document . createElement ( 'button' )
209209 // selected
210210 search . addWidgets ( [
211211 instantsearch . widgets . configure ( {
212- facetFilters : [ `version :${ config . pageVersion } ` , `component:${ config . pageComponent } ` ] ,
212+ facetFilters : [ `generation :${ config . pageGeneration } ` , `component:${ config . pageComponent } ` ] ,
213213 attributesToSnippet : [ 'content' ] ,
214214 attributesToHighlight : [ 'hierarchy' ] ,
215215 distinct : true ,
Original file line number Diff line number Diff line change 2424<script src =" https://unpkg.com/hotkeys-js/dist/hotkeys.min.js" ></script >
2525<
script src =" https://cdn.jsdelivr.net/npm/[email protected] /dist/algoliasearch-lite.umd.js" integrity =" sha256-Lf9DrpGmcRip6OQzbcL6lnvNmoZNSKpyQX5pMlwatWE=" crossorigin =" anonymous" ></
script >
2626<
script src =" https://cdn.jsdelivr.net/npm/[email protected] /dist/instantsearch.production.min.js" integrity =" sha256-xYsZPDeNjYNTBWLvqD2Lxe98hOxcDgOHyMPfz4tVAbk=" crossorigin =" anonymous" ></
script >
27- <script async id =" search-script" src =" {{{ uiRootPath }}} /js/vendor/search.js" {{ #if env.ALGOLIA_APP_ID }} data-app-id =" {{ env.ALGOLIA_APP_ID }} " {{ /if }} data-api-key =" {{ env.ALGOLIA_API_KEY }} " data-index-name =" {{ env.ALGOLIA_INDEX_NAME }} " data-stylesheet =" {{{ uiRootPath }}} /css/vendor/search.css" data-page-version =" {{{ page.version }}} " data-page-component =" {{{ page.component.name }}} " ></script >
27+ <script async id =" search-script" src =" {{{ uiRootPath }}} /js/vendor/search.js" {{ #if env.ALGOLIA_APP_ID }} data-app-id =" {{ env.ALGOLIA_APP_ID }} " {{ /if }} data-api-key =" {{ env.ALGOLIA_API_KEY }} " data-index-name =" {{ env.ALGOLIA_INDEX_NAME }} " data-stylesheet =" {{{ uiRootPath }}} /css/vendor/search.css" data-page-version =" {{{ page.version }}} " data-page-generation = " {{{ page.componentVersion.versionSegment }}} " data-page- component =" {{{ page.component.name }}} " ></script >
2828{{ #if (eq page.attributes.article ' search' )}}
29- <script id =" page-search-script" async src =" {{{ uiRootPath }}} /js/vendor/page-search.js" {{ #if env.ALGOLIA_APP_ID }} data-app-id =" {{ env.ALGOLIA_APP_ID }} " {{ /if }} data-api-key =" {{ env.ALGOLIA_API_KEY }} " data-index-name =" {{ env.ALGOLIA_INDEX_NAME }} " data-stylesheet =" {{{ uiRootPath }}} /css/vendor/search.css" data-page-version =" {{{ page.version }}} " data-page-component =" {{{ page.component.name }}} " ></script >
29+ <script id =" page-search-script" async src =" {{{ uiRootPath }}} /js/vendor/page-search.js" {{ #if env.ALGOLIA_APP_ID }} data-app-id =" {{ env.ALGOLIA_APP_ID }} " {{ /if }} data-api-key =" {{ env.ALGOLIA_API_KEY }} " data-index-name =" {{ env.ALGOLIA_INDEX_NAME }} " data-stylesheet =" {{{ uiRootPath }}} /css/vendor/search.css" data-page-version =" {{{ page.version }}} " data-page-generation = " {{{ page.componentVersion.versionSegment }}} " data-page- component =" {{{ page.component.name }}} " ></script >
3030{{ /if }}
3131{{ /if }}
You can’t perform that action at this time.
0 commit comments