|
@@ -13,8 +13,14 @@ module.exports = {
|
|
|
}
|
|
|
},
|
|
|
head: [
|
|
|
- ['link', { rel: 'icon', href: `/favicon.ico` }],
|
|
|
- ['meta', { name: 'theme-color', content: '#3eaf7c' }],
|
|
|
+ ['link', {
|
|
|
+ rel: 'icon',
|
|
|
+ href: `/favicon.ico`
|
|
|
+ }],
|
|
|
+ ['meta', {
|
|
|
+ name: 'theme-color',
|
|
|
+ content: '#3eaf7c'
|
|
|
+ }],
|
|
|
],
|
|
|
themeConfig: {
|
|
|
repo: 'allpayx/b2c-docs',
|
|
@@ -26,38 +32,31 @@ module.exports = {
|
|
|
selectText: 'Languages',
|
|
|
editLinkText: 'Edit this page on GitHub',
|
|
|
lastUpdated: 'Last Updated',
|
|
|
- nav: [
|
|
|
- {
|
|
|
- text: 'PC Web',
|
|
|
- link: '/pc/',
|
|
|
- },
|
|
|
- {
|
|
|
- text: 'Android',
|
|
|
- link: '/android/'
|
|
|
- },
|
|
|
- {
|
|
|
- text: 'IOS',
|
|
|
- link: '/ios/'
|
|
|
- },
|
|
|
- {
|
|
|
- text: 'HTML5',
|
|
|
- link: '/h5/'
|
|
|
- },
|
|
|
- {
|
|
|
- text: 'ShoppingCart plug-in',
|
|
|
- link: '/cart/'
|
|
|
- },
|
|
|
- {
|
|
|
- text: 'WechatMiniProgram',
|
|
|
- link: '/wx/'
|
|
|
- },
|
|
|
- ],
|
|
|
+ nav: [{
|
|
|
+ text: 'PC Web',
|
|
|
+ link: '/pc/',
|
|
|
+ }, {
|
|
|
+ text: 'Android',
|
|
|
+ link: '/android/'
|
|
|
+ }, {
|
|
|
+ text: 'IOS',
|
|
|
+ link: '/ios/'
|
|
|
+ }, {
|
|
|
+ text: 'HTML5',
|
|
|
+ link: '/h5/'
|
|
|
+ }, {
|
|
|
+ text: 'ShoppingCart plug-in',
|
|
|
+ link: '/cart/'
|
|
|
+ }, {
|
|
|
+ text: 'WechatMiniProgram',
|
|
|
+ link: '/wx/'
|
|
|
+ }, ],
|
|
|
sidebar: {
|
|
|
- '/pc/':genSidebar('pc','PC'),
|
|
|
- '/android/': genSidebar('android','Android'),
|
|
|
- '/ios/': genSidebar('ios','IOS'),
|
|
|
- '/h5/': genSidebar('h5','H5'),
|
|
|
- '/wx/': genSidebar('wx','wechatMiniProgram'),
|
|
|
+ '/pc/': genSidebar('pc', 'PC'),
|
|
|
+ '/android/': genSidebar('android', 'Android'),
|
|
|
+ '/ios/': genSidebar('ios', 'IOS'),
|
|
|
+ '/h5/': genSidebar('h5', 'H5'),
|
|
|
+ '/wx/': genSidebar('wx', 'wechatMiniProgram'),
|
|
|
}
|
|
|
},
|
|
|
'/zh/': {
|
|
@@ -65,38 +64,31 @@ module.exports = {
|
|
|
selectText: '选择语言',
|
|
|
editLinkText: '在 GitHub 上编辑此页',
|
|
|
lastUpdated: '上次更新',
|
|
|
- nav: [
|
|
|
- {
|
|
|
- text: 'PC在线支付',
|
|
|
- link: '/zh/pc/',
|
|
|
- },
|
|
|
- {
|
|
|
- text: 'Android',
|
|
|
- link: '/zh/android/'
|
|
|
- },
|
|
|
- {
|
|
|
- text: 'IOS',
|
|
|
- link: '/zh/ios/'
|
|
|
- },
|
|
|
- {
|
|
|
- text: 'HTML5',
|
|
|
- link: '/zh/h5/'
|
|
|
- },
|
|
|
- {
|
|
|
- text: '开源商城插件',
|
|
|
- link: '/zh/cart/'
|
|
|
- },
|
|
|
- {
|
|
|
- text: '微信小程序',
|
|
|
- link: '/zh/wx/'
|
|
|
- },
|
|
|
- ],
|
|
|
+ nav: [{
|
|
|
+ text: 'PC在线支付',
|
|
|
+ link: '/zh/pc/',
|
|
|
+ }, {
|
|
|
+ text: 'Android',
|
|
|
+ link: '/zh/android/'
|
|
|
+ }, {
|
|
|
+ text: 'IOS',
|
|
|
+ link: '/zh/ios/'
|
|
|
+ }, {
|
|
|
+ text: 'HTML5',
|
|
|
+ link: '/zh/h5/'
|
|
|
+ }, {
|
|
|
+ text: '开源商城插件',
|
|
|
+ link: '/zh/cart/'
|
|
|
+ }, {
|
|
|
+ text: '微信小程序',
|
|
|
+ link: '/zh/wx/'
|
|
|
+ }, ],
|
|
|
sidebar: {
|
|
|
- '/zh/pc/':genSidebar('pc','PC在线支付'),
|
|
|
- '/zh/android/': genSidebar('android','Android'),
|
|
|
- '/zh/ios/': genSidebar('ios','IOS'),
|
|
|
- '/zh/h5/': genSidebar('h5','H5'),
|
|
|
- '/zh/wx/': genSidebar('wx','微信小程序'),
|
|
|
+ '/zh/pc/': genSidebar('pc', 'PC在线支付'),
|
|
|
+ '/zh/android/': genSidebar('android', 'Android'),
|
|
|
+ '/zh/ios/': genSidebar('ios', 'IOS'),
|
|
|
+ '/zh/h5/': genSidebar('h5', 'H5'),
|
|
|
+ '/zh/wx/': genSidebar('wx', '微信小程序'),
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -104,9 +96,9 @@ module.exports = {
|
|
|
}
|
|
|
|
|
|
|
|
|
-function genSidebar(name,title) {
|
|
|
+function genSidebar(name, title) {
|
|
|
var child = {
|
|
|
- pc:[
|
|
|
+ pc: [
|
|
|
'',
|
|
|
'1',
|
|
|
'2',
|
|
@@ -114,7 +106,7 @@ function genSidebar(name,title) {
|
|
|
'4',
|
|
|
'5',
|
|
|
'6',
|
|
|
- ],
|
|
|
+ ],
|
|
|
android: [
|
|
|
'',
|
|
|
'1',
|
|
@@ -122,6 +114,7 @@ function genSidebar(name,title) {
|
|
|
'3',
|
|
|
'4',
|
|
|
'5',
|
|
|
+ '6',
|
|
|
],
|
|
|
ios: [
|
|
|
'',
|
|
@@ -146,11 +139,9 @@ function genSidebar(name,title) {
|
|
|
'4',
|
|
|
],
|
|
|
}
|
|
|
- return [
|
|
|
- {
|
|
|
- title,
|
|
|
- collapsable: false,
|
|
|
- children: child[name]
|
|
|
- }
|
|
|
- ]
|
|
|
-}
|
|
|
+ return [{
|
|
|
+ title,
|
|
|
+ collapsable: false,
|
|
|
+ children: child[name]
|
|
|
+ }]
|
|
|
+}
|