diff --git a/docs/en/next/search.html b/docs/en/next/search.html index 7633b34c1a..249c988f04 100644 --- a/docs/en/next/search.html +++ b/docs/en/next/search.html @@ -95,10 +95,20 @@ ... }; +
If you want to change the placeholder (which defaults to Search), add the placeholder
field in your config. For example, you may want the search bar to display Ask me something:
const siteConfig = {
+ ...
+ algolia: {
+ ...
+ placeholder: 'Ask me something'
+ },
+};
+
To disable the search bar, comment out (recommended) or delete the algolia
section in the siteConfig.js
file.
Also, if you have customized the location of the search bar in headerLinks
, set search: false
.