deno.land / x / fuse@v6.4.1 / docs / .vuepress / config.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
const pckg = require('../../package.json')const VERSION = process.env.VERSION || pckg.versionconst GA_MEASUREMENT_ID = 'UA-82107035-1'
module.exports = { locales: { '/': { lang: 'en-US', title: 'Fuse.js', description: 'Lightweight fuzzy-search library, in JavaScript' } }, head: getHead(), plugins: getPlugins(), serviceWorker: true, themeConfig: { logo: '/assets/img/logo.png', repo: 'krisk/fuse', base: 'docs', lastUpdated: 'Last Updated', docsDir: 'docs', docsBranch: 'master', editLinks: true, version: VERSION, GA_MEASUREMENT_ID, displayAllHeaders: true, locales: { '/': { label: 'English', selectText: 'Languages', editLinkText: 'Edit this page on GitHub', nav: require('./nav/en'), sidebar: { // '/blog': getBlogSidebar(), '/': getGuideSidebar() } } } }}
function getGuideSidebar() { return [ { title: 'Getting Started', collapsable: false, children: [ '/getting-started/installation', '/getting-started/different-builds' ] }, '/demo', { title: 'API Reference', collapsable: false, sidebarDepth: 0, children: [ '/api/options', '/api/config', '/api/methods', '/api/indexing', '/api/query' ] }, '/examples', { title: 'Concepts', collapsable: false, children: ['/concepts/scoring-theory'] } ]}
function getCcomponent(name) { return { name, path: `${__dirname}/components/${name}/${name}.vue` }}
function getPlugins() { return [ require('./plugins/google-analytics'), 'vuepress-plugin-smooth-scroll', 'vuepress-plugin-element-tabs', [ '@vuepress/register-components', { components: [ getCcomponent('Stories'), getCcomponent('Demo'), getCcomponent('Team') ] } ], [ ('social-share', { networks: ['twitter', 'facebook', 'reddit', 'email', 'linkedin'], extendsNetworks: { email: { sharer: 'mailto:?subject=@title&body=@url%0D%0A%0D%0A@description', type: 'direct', icon: '/assets/img/email.png' }, linkedin: { sharer: 'https://www.linkedin.com/sharing/share-offsite/?mini=true&url=@url&title=@title&summary=@description', type: 'popup', color: '#1786b1', icon: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path d="M910.336 0H113.664A114.005333 114.005333 0 0 0 0 113.664v796.672A114.005333 114.005333 0 0 0 113.664 1024h796.672A114.005333 114.005333 0 0 0 1024 910.336V113.664A114.005333 114.005333 0 0 0 910.336 0zM352.256 796.330667H207.189333V375.466667h145.066667z m-72.021333-477.866667a77.824 77.824 0 0 1-81.237334-74.069333A77.824 77.824 0 0 1 280.234667 170.666667a77.824 77.824 0 0 1 81.237333 73.728 77.824 77.824 0 0 1-81.237333 73.386666z m582.314666 477.866667H716.8v-227.669334c0-46.762667-18.432-93.525333-73.045333-93.525333a84.992 84.992 0 0 0-81.237334 94.549333v226.304h-140.629333V375.466667h141.653333v60.757333a155.989333 155.989333 0 0 1 136.533334-71.338667c60.416 0 163.498667 30.378667 163.498666 194.901334z" /></svg>' } }, twitterUser: 'kirorisk', autoQuote: true, isPlain: false, noGlobalSocialShare: true }) ] ]}
function getHead() { const appleTouchIcons = [ { sizes: '57x57', href: 'apple-icon-57x57.png' }, { sizes: '60x60', href: 'apple-icon-60x60.png' }, { sizes: '72x72', href: 'apple-icon-72x72.png' }, { sizes: '76x76', href: 'apple-icon-76x76.png' }, { sizes: '114x114', href: 'apple-icon-114x114.png' }, { sizes: '120x120', href: 'apple-icon-120x120.png' }, { sizes: '144x144', href: 'apple-icon-144x144.png' }, { sizes: '152x152', href: 'apple-icon-152x152.png' }, { sizes: '180x180', href: 'apple-icon-180x180.png' } ].map(({ sizes, href }) => [ 'link', { rel: 'apple-touch-icon', sizes, href: `/icons/${href}` } ])
const sizedIcons = [ { sizes: '192x192', href: 'android-icon-192x192.png' }, { sizes: '32x32', href: 'favicon-32x32.png' }, { sizes: '96x96', href: 'favicon-96x96.png' }, { sizes: '16x16', href: 'favicon-16x16.png' } ].map(({ sizes, href }) => [ 'link', { rel: 'icon', type: 'image/png', sizes, href: `/icons/${href}` } ])
const meta = [ { name: 'msapplication-TileColor', content: '#ffffff' }, { name: 'msapplication-TileImage', content: '/icons/ms-icon-144x144.png' }, { name: 'theme-color', content: '#ffffff' }, { name: 'google-site-verification', content: '4nm40QLVcDJmEJSAbrMfZ7fpBJZIXL1oSngBAYrZopY' } ].map(({ name, content }) => ['meta', { name, content }])
return [ ...appleTouchIcons, ...sizedIcons, ...meta, ['link', { rel: 'manifest', href: '/icons/manifest.json' }] ]}
fuse

Version Info

Tagged at
3 years ago