Skip to content

Instantly share code, notes, and snippets.

@Mine77
Last active June 26, 2018 04:03
Show Gist options
  • Save Mine77/7ce611b4afbd24b83737dafe75bb0b03 to your computer and use it in GitHub Desktop.
Save Mine77/7ce611b4afbd24b83737dafe75bb0b03 to your computer and use it in GitHub Desktop.
The index.html file for making a Nervos Network related document.
var common = {
loadSidebar: true,
autoHeader: true,
subMaxLevel: 6,
loadNavbar: true,
basePath: './',
// search: 'auto', // 默认值
// 完整配置参数
search: {
maxAge: 86400000, // 过期时间,单位毫秒,默认一天
// paths: [
// '/',
// ], // or 'auto'
// 支持本地化
placeholder: {
'/zh-CN/': '搜索',
'/': 'Type to search',
},
// 支持本地化
noData: {
'/zh-CN/': '找不到结果',
'/': 'No Results',
},
// 搜索标题的最大程级, 1 - 6
depth: 6,
},
}
var initDocsify = function () {
var configs = [common,customization]
var docsify = {}
configs.forEach(function (conf) {
_.assign(docsify, conf)
})
window.$docsify = docsify
}
var main = function () {
initDocsify()
}
main()
var log = console.log.bind(console)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment