mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-12-17 15:40:37 +00:00
search autocomplete
This commit is contained in:
parent
d47ad5e88d
commit
eccc40a123
15 changed files with 1094 additions and 9924 deletions
14
docs/.vuepress/theme/components/search/index.js
Normal file
14
docs/.vuepress/theme/components/search/index.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const { path } = require('@vuepress/shared-utils')
|
||||
|
||||
module.exports = (options) => ({
|
||||
alias: {
|
||||
'@SRDSearchBox':
|
||||
path.resolve(__dirname, 'SearchBox.vue')
|
||||
},
|
||||
|
||||
define: {
|
||||
SEARCH_MAX_SUGGESTIONS: options.searchMaxSuggestions || 5,
|
||||
SEARCH_PATHS: options.test || null,
|
||||
SEARCH_HOTKEYS: options.searchHotkeys || ['s', '/']
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue