aboutsummaryrefslogtreecommitdiff
path: root/config.js
diff options
context:
space:
mode:
authorruki <waruqi@gmail.com>2018-11-08 00:38:48 +0800
committerruki <waruqi@gmail.com>2018-11-07 21:53:09 +0800
commit26105034da4fcce7ac883c899d781f016559310d (patch)
treec459a5dc4e3aa0972d9919033ece511ce76dd129 /config.js
parent2c77f00f1a7ecb6c8192f9c16d3b2001b254a107 (diff)
downloadxmake-docs-26105034da4fcce7ac883c899d781f016559310d.tar.gz
xmake-docs-26105034da4fcce7ac883c899d781f016559310d.zip
switch to vuepress
Diffstat (limited to 'config.js')
-rw-r--r--config.js98
1 files changed, 0 insertions, 98 deletions
diff --git a/config.js b/config.js
deleted file mode 100644
index 4d04d7ac..00000000
--- a/config.js
+++ /dev/null
@@ -1,98 +0,0 @@
-const langs = [
- {title: 'English', path: '/home'},
- {title: '中文', path: '/zh/'},
-]
-
-docute.init({
- landing: true,
- repo: 'tboox/xmake',
- twitter: 'waruqi',
- 'edit-link': 'https://github.com/tboox/xmake-docs/blob/master/',
- announcement(route) {
- const info = { type: 'success' }
- if (/\/zh/.test(route.path)) {
- info.html = '<a style="margin-right:10px;" class="docute-button docute-button-mini docute-button-success" href="/cn/pages/donation.html#donate" target="_blank">捐赠!</a> 通过成为赞助商或者一次性捐赠支持xmake的开发和文档更新。'
- } else {
- info.html = '<a style="margin-right:10px;" class="docute-button docute-button-mini docute-button-success" href="/pages/donation.html#donate" target="_blank">Donate!</a> Support xmake development and documentation updates by becoming a sponsor or one-time donation.'
- }
- return info
- },
- nav: {
- default: [
- {
- title: 'Home', path: '/home'
- },
- {
- title: 'Plugins', path: '/plugins'
- },
- {
- title: 'Manual', path: '/manual'
- },
- {
- title: 'Articles', path: 'http://www.tboox.org/category/#xmake'
- },
- {
- title: 'Feedback', path: 'https://github.com/tboox/xmake/issues'
- },
- {
- title: 'Community', path: 'https://www.reddit.com/r/tboox/'
- },
- {
- title: 'English', type: 'dropdown', items: langs, exact: true
- }
- ],
- 'zh': [
- {
- title: '首页', path: '/zh/'
- },
- {
- title: '插件', path: '/zh/plugins'
- },
- {
- title: '手册', path: '/zh/manual'
- },
- {
- title: '文章', path: 'http://www.tboox.org/cn/category/#xmake'
- },
- {
- title: '反馈', path: 'https://github.com/tboox/xmake/issues'
- },
- {
- title: '社区', path: 'https://www.reddit.com/r/tboox/'
- },
- {
- title: '中文', type: 'dropdown', items: langs, exact: true
- }
- ]
- },
- plugins: [
- docsearch({
- apiKey: 'fbba61eefc60a833d8caf1fa72bd8ef8',
- indexName: 'xmake',
- tags: ['en', 'zh'],
- url: 'https://xmake.io'
- }),
- function valine(context) {
- context.registerComponent('content:end', {
- template: '<div class="markdown-body content"><h2 id="comments">Comments</h2><div id="gitalk_thread"></div></div>',
- mounted() {
- this.init()
- },
- methods: {
- init() {
- const gitalk = new Gitalk({
- clientID: 'cb53dd42b1b654202a55',
- clientSecret: '8a9a0e7feadc575b8bba9770cd9454d7423028ac',
- repo: 'xmake-docs',
- owner: 'waruqi',
- admin: ['waruqi'],
- id: location.pathname,
- distractionFreeMode: false
- })
- gitalk.render('gitalk_thread')
- }
- }
- })
- }
- ]
-})