Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat!: replace algolia with local search #1488

Merged
merged 4 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 13 additions & 20 deletions docs/.vitepress/config.ts → docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ export default defineConfig({

socialLinks: [
{ icon: 'github', link: 'https://github.com/intlify/vue-i18n-next' },
{ icon: 'twitter', link: 'https://twitter.com/intlify' },
{ icon: 'twitter', link: 'https://twitter.com/intlify' }
],

editLink: {
pattern: 'https://github.com/intlify/vue-i18n-next/edit/master/docs/:path',
pattern:
'https://github.com/intlify/vue-i18n-next/edit/master/docs/:path',
text: 'Edit this page on GitHub'
},

Expand All @@ -33,19 +34,11 @@ export default defineConfig({

carbonAds: {
code: 'CWYDVK37',
placement: 'vue-i18nintlifydev',
placement: 'vue-i18nintlifydev'
},

// TODO: we need to upgrade?
// @ts-ignore
algolia: {
appId: 'BH4D9OD16A',
apiKey: '3a9e93ba1069de0ece2ae100daf8f6ea',
indexName: 'vue-i18n',
searchParameters : {
facetFilters: ['language:en-US']
},
// algoliaOptions: { facetFilters: ['tags:guide,api'] }
search: {
provider: 'local',
},

nav: nav(),
Expand Down Expand Up @@ -78,7 +71,7 @@ function nav() {
},
{
text: 'v9.x',
items: [{ text: 'v8.x', link: 'https://kazupon.github.io/vue-i18n/' }],
items: [{ text: 'v8.x', link: 'https://kazupon.github.io/vue-i18n/' }]
},
{
text: 'Changelog',
Expand All @@ -99,7 +92,7 @@ function sidebarGuide() {
},
{
text: 'Getting Started',
link: '/guide/',
link: '/guide/'
},
{
text: 'Installation',
Expand All @@ -117,7 +110,7 @@ function sidebarGuide() {
items: [
{
text: 'Message Format Syntax',
link: '/guide/essentials/syntax',
link: '/guide/essentials/syntax'
},
{
text: 'Pluralization',
Expand Down Expand Up @@ -171,19 +164,19 @@ function sidebarGuide() {
},
{
text: 'Composition API',
link: '/guide/advanced/composition',
link: '/guide/advanced/composition'
},
{
text: 'TypeScript Support',
link: '/guide/advanced/typescript',
link: '/guide/advanced/typescript'
},
{
text: 'Web components',
link: '/guide/advanced/wc',
link: '/guide/advanced/wc'
},
{
text: 'Optimization',
link: '/guide/advanced/optimization',
link: '/guide/advanced/optimization'
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"trash-cli": "^5.0.0",
"tslib": "^2.5.3",
"typescript": "^5.1.3",
"vitepress": "^1.0.0-alpha.76",
"vitepress": "1.0.0-rc.4",
"vitest": "^0.31.1",
"vue": "3.3.4",
"vue-i18n": "workspace:*"
Expand Down
Loading