docs(plugin): add search doc

This commit is contained in:
qingwei.li 2017-02-19 11:22:34 +08:00 committed by cinwell.li
commit 515331763d
2 changed files with 16 additions and 4 deletions

View file

@ -23,7 +23,13 @@ By default, the hyperlink on the current page is recognized and the content is s
search: {
maxAge: 86400000, // Expiration time, the default one day
paths: [], // or 'auto'
placeholder: 'Type to search'
placeholder: 'Type to search',
// Localization
placeholder: {
'/zh-cn/': '搜索',
'/': 'Type to search'
}
}
}
</script>
@ -101,7 +107,7 @@ window.$docsify = {
}
```
!> You can get internal methods through `window.Docsify.utils`.
!> You can get internal methods through `window.Docsify`. Get the current instance through the second argument.
#### Example