docs: Use Algolia DocSearch for docs

This commit is contained in:
Matan Kushner
2020-02-07 12:36:23 -05:00
parent bc600e4321
commit 91008ba5f2
2 changed files with 10 additions and 5 deletions
+7 -2
View File
@@ -29,7 +29,7 @@ module.exports = {
lang: "zh-TW",
title: "Starship",
description: "The cross-shell prompt for astronauts"
},
}
},
// prettier-ignore
head: [
@@ -56,6 +56,11 @@ module.exports = {
docsDir: "docs",
// defaults to false, set to true to enable
editLinks: true,
// enables Algolia DocSearch
algolia: {
apiKey: "107bdc34b894d5d1dd0824b420184c2d",
indexName: "starship"
},
locales: {
"/": {
// text for the language dropdown
@@ -168,7 +173,7 @@ module.exports = {
["/zh-CN/faq/", "常见问题"],
["/zh-CN/presets/", "社区配置分享"]
]
},
}
}
},
plugins: [