#2182 - add: search for docs (#2232)

This commit is contained in:
codingsh
2020-05-05 07:16:39 +02:00
committed by GitHub
parent e83d97c849
commit 94f81db568
4 changed files with 14 additions and 3 deletions
+8 -2
View File
@@ -20,7 +20,8 @@ module.exports = {
},
{ text: 'GitHub', link: 'https://github.com/polkadot-js/api' }
],
search: false,
search: true,
searchMaxSuggestions: 10,
sidebar: [
{
title: 'Getting started',
@@ -97,5 +98,10 @@ module.exports = {
['/types/', '@polkadot/types'],
'/CONTRIBUTING.md'
]
}
},
plugins: [
['@vuepress/search', {
searchMaxSuggestions: 10
}]
]
};
+3
View File
@@ -1,5 +1,8 @@
$accentColor = #fd8824
$textColor = #2c3e50
$borderColor = #eaecef
$codeBgColor = #282c34
$arrowBgColor = #ccc
.home .hero .description,
.home .feature h2,
+1
View File
@@ -31,6 +31,7 @@
"@polkadot/ts": "^0.3.19",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^25.2.1",
"@vuepress/plugin-search": "^1.4.1",
"copyfiles": "^2.2.0"
}
}
+2 -1
View File
@@ -3508,7 +3508,7 @@ __metadata:
languageName: node
linkType: hard
"@vuepress/plugin-search@npm:1.4.1":
"@vuepress/plugin-search@npm:1.4.1, @vuepress/plugin-search@npm:^1.4.1":
version: 1.4.1
resolution: "@vuepress/plugin-search@npm:1.4.1"
checksum: 2/4131f5e8d5ee33bcfb6d6460bbed566c1a2d7ef4c995cfd5842766a69cd037a8938371d1c3a863d6fbf5ef8e4768f9b90bd413047467fde1b0ba15e10884bbc9
@@ -15497,6 +15497,7 @@ __metadata:
"@polkadot/ts": ^0.3.19
"@polkadot/typegen": "workspace:packages/typegen"
"@types/jest": ^25.2.1
"@vuepress/plugin-search": ^1.4.1
copyfiles: ^2.2.0
languageName: unknown
linkType: soft