2018-10-21 03:18:58 +00:00
|
|
|
const { doc, type, defaultValue, required, requires } = require('../common/utils').descriptors;
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
[type]: 'object',
|
2018-11-24 07:26:51 +00:00
|
|
|
[doc]: 'Search plugin settings\nhttp://ppoffice.github.io/hexo-theme-icarus/categories/Configuration/Search-Plugins',
|
2018-10-21 03:18:58 +00:00
|
|
|
type: {
|
|
|
|
[type]: 'string',
|
|
|
|
[doc]: 'Name of the search plugin',
|
|
|
|
[defaultValue]: 'insight'
|
|
|
|
},
|
|
|
|
cx: {
|
|
|
|
[type]: 'string',
|
|
|
|
[doc]: 'Google CSE cx value',
|
|
|
|
[required]: true,
|
|
|
|
[requires]: search => search.type === 'google-cse'
|
|
|
|
}
|
|
|
|
};
|