We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c3bb7f commit c56b1a0Copy full SHA for c56b1a0
src/main.js
@@ -18,12 +18,13 @@ document.addEventListener('DOMContentLoaded', () => {
18
mounted() {
19
const selector = document.querySelector('.docSearch-input')
20
const lang = document.documentElement.lang || 'en'
21
+ const [version] = window.location.hostname.match(/v\d-\d-\d/) || ['master']
22
23
docsearch({
24
apiKey: '31f842779e5b33726ec73f8f973b2202',
25
indexName: 'nativescript-vue',
26
inputSelector: selector,
- algoliaOptions: {facetFilters: [`lang:${lang}`]},
27
+ algoliaOptions: {facetFilters: [`lang:${lang}`, `version:${version}`]},
28
debug: false
29
})
30
},
0 commit comments