diff options
| author | ruki <waruqi@gmail.com> | 2019-06-22 09:44:47 +0800 |
|---|---|---|
| committer | ruki <waruqi@gmail.com> | 2019-06-22 09:44:47 +0800 |
| commit | 0f4577a0a110c73796fd1e65c343bb9199da65d7 (patch) | |
| tree | 9c383ad026c06844e104307f97503eede971b999 /index.html | |
| parent | eb349bcce1c18b3823194c62c532c1ca96503a4f (diff) | |
| download | xmake-docs-0f4577a0a110c73796fd1e65c343bb9199da65d7.tar.gz xmake-docs-0f4577a0a110c73796fd1e65c343bb9199da65d7.zip | |
add docute links
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 46 |
1 files changed, 43 insertions, 3 deletions
@@ -25,11 +25,51 @@ subMaxLevel: 4, alias: { <!-- compatible with previous links --> - '/home': '/', - '/zh/(.*)': '/zh/$1' - } + '/home': '/docute/README', + '/plugins': '/docute/plugins', + '/manual': '/docute/manual', + '/zh/': '/docute/zh/README', + '/zh/plugins': '/docute/zh/plugins', + '/zh/manual': '/docute/zh/manual', + <!-- multi-languages --> + '/zh-cn/(.*)': '/zh-cn/$1' + }, + search: { + noData: { + '/zh-cn/': '没有结果!', + '/': 'No results!' + }, + paths: 'auto', + placeholder: { + '/zh-cn/': '搜索', + '/': 'Search' + } + }, + formatUpdated: '{MM}/{DD} {HH}:{mm}', + plugins: [ + function (hook, vm) { + hook.beforeEach(function (html) { + if (/githubusercontent\.com/.test(vm.route.file)) { + url = vm.route.file + .replace('raw.githubusercontent.com', 'github.com') + .replace(/\/master/, '/blob/master') + } else { + url = 'https://github.com/xmake-io/xmake-docs/blob/master/' + vm.route.file + } + var editHtml = '[:memo: Edit Document](' + url + ')\n' + return editHtml + + html + + '\n\n----\n\n' + + '<a href="https://xmake.io" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>' + }) + } + ] } </script> <script src="//unpkg.com/docsify/lib/docsify.min.js"></script> + <script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script> + <script src="//unpkg.com/prismjs/components/prism-c.min.js"></script> + <script src="//unpkg.com/prismjs/components/prism-lua.min.js"></script> + <script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script> </body> </html> |
