Last active
June 26, 2018 04:03
-
-
Save Mine77/7ce611b4afbd24b83737dafe75bb0b03 to your computer and use it in GitHub Desktop.
The index.html file for making a Nervos Network related document.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
}, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var initDocsify = function () { | |
var configs = [common,customization] | |
var docsify = {} | |
configs.forEach(function (conf) { | |
_.assign(docsify, conf) | |
}) | |
window.$docsify = docsify | |
} | |
var main = function () { | |
initDocsify() | |
} | |
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var log = console.log.bind(console) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment