Update config.js

master
呓喵酱 5 years ago committed by GitHub
parent 45862b0e91
commit 361f91216f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      docs/config.js

@ -1,25 +1,19 @@
const langs = [
{ title: '简体中文', path: '/home', matchPath: /^\/(home|ecosystem|support)/ },
{ title: 'English', path: '/en/', matchPath: /^\/en/ },
{ title: 'English', path: '/home', matchPath: /^\/(home|ecosystem|support)/ },
{ title: '简体中文', path: '/en/', matchPath: /^\/en/ },
];
docute.init({
landing: 'landing.html',
title: 'wIoT',
repo: 'iotcat/wIoT',
title: 'Smart Farming',
repo: 'iotcat/smart-farming',
twitter: 'iotcat',
'edit-link': 'https://github.com/IoTcat/wIoT/blob/master/docs/',
'edit-link': 'https://github.com/IoTcat/smart-farming/blob/master/docs/',
nav: {
default: [
{
title: 'Home', path: '/home'
},
{
title: 'Ecosystem', path: '/ecosystem'
},
{
title: 'Support wIoT', path: '/support'
},
{
title: 'Languages', type: 'dropdown', items: langs
}
@ -28,12 +22,6 @@ docute.init({
{
title: '首页', path: '/en/'
},
{
title: '生态', path: '/en/ecosystem'
},
{
title: '支持 wIoT', path: '/en/support'
},
{
title: '选择语言', type: 'dropdown', items: langs
}
@ -68,4 +56,4 @@ function loadScript (src, callback) {
};
t = document.getElementsByTagName('script')[0];
t.parentNode.insertBefore(s, t);
}
}

Loading…
Cancel
Save