1- const {
2- description
3- } = require ( '../../package' ) ;
4- require ( "dotenv" ) . config ( {
5- path : ".env.local"
1+ const { description } = require ( '../../package' ) ;
2+ require ( 'dotenv' ) . config ( {
3+ path : '.env.local' ,
64} ) ;
75// require('dotenv').config()
86const moment = require ( 'moment' ) ;
@@ -15,7 +13,6 @@ console.log('Sidebar Guides: ', sidebar.guides());
1513// console.log('Sidebar: ', sidebar.bar());
1614
1715module . exports = ( ctx ) => ( {
18-
1916 chainWebpack : ( config ) => {
2017 config . module
2118 . rule ( 'yaml' )
@@ -26,62 +23,85 @@ module.exports = (ctx) => ({
2623 . use ( 'yaml-loader' )
2724 . loader ( 'yaml-loader' ) ;
2825 } ,
29-
3026 head : [
31- [ 'link' , {
32- rel : 'apple-touch-icon' ,
33- sizes : '180x180' ,
34- href : '/icons/apple-touch-icon.png'
35- } ] ,
36- [ 'link' , {
37- rel : 'icon' ,
38- type : 'image/png' ,
39- sizes : '32x32' ,
40- href : '/icons/favicon-32x32.png'
41- } ] ,
42- [ 'link' , {
43- rel : 'icon' ,
44- type : 'image/png' ,
45- sizes : '16x16' ,
46- href : '/icons/favicon-16x16.png'
47- } ] ,
27+ [
28+ 'link' ,
29+ {
30+ rel : 'apple-touch-icon' ,
31+ sizes : '180x180' ,
32+ href : '/icons/apple-touch-icon.png' ,
33+ } ,
34+ ] ,
35+ [
36+ 'link' ,
37+ {
38+ rel : 'icon' ,
39+ type : 'image/png' ,
40+ sizes : '32x32' ,
41+ href : '/icons/favicon-32x32.png' ,
42+ } ,
43+ ] ,
44+ [
45+ 'link' ,
46+ {
47+ rel : 'icon' ,
48+ type : 'image/png' ,
49+ sizes : '16x16' ,
50+ href : '/icons/favicon-16x16.png' ,
51+ } ,
52+ ] ,
4853 // ['link', {
4954 // rel: 'manifest',
5055 // href: 'icons/site.webmanifest'
5156 // }],
52- [ 'link' , {
53- rel : 'mask-icon' ,
54- href : '/icons/safari-pinned-tab.svg' ,
55- color : '#ff4731'
56- } ] ,
57- [ 'link' , {
58- rel : 'shortcut icon' ,
59- href : '/icons/favicon.ico'
60- } ] ,
61- [ 'meta' , {
62- name : 'msapplication-TileColor' ,
63- content : '#ff4731'
64- } ] ,
65- [ 'meta' , {
66- name : 'msapplication-config' ,
67- content : '/icons/browserconfig.xml'
68- } ] ,
69- [ 'meta' , {
70- name : 'theme-color' ,
71- content : '#ff4731'
72- } ] ,
73- [ 'meta' , {
74- name : 'viewport' ,
75- content : 'width=device-width, initial-scale=1'
76- } ] ,
57+ [
58+ 'link' ,
59+ {
60+ rel : 'mask-icon' ,
61+ href : '/icons/safari-pinned-tab.svg' ,
62+ color : '#ff4731' ,
63+ } ,
64+ ] ,
65+ [
66+ 'link' ,
67+ {
68+ rel : 'shortcut icon' ,
69+ href : '/icons/favicon.ico' ,
70+ } ,
71+ ] ,
72+ [
73+ 'meta' ,
74+ {
75+ name : 'msapplication-TileColor' ,
76+ content : '#ff4731' ,
77+ } ,
78+ ] ,
79+ [
80+ 'meta' ,
81+ {
82+ name : 'msapplication-config' ,
83+ content : '/icons/browserconfig.xml' ,
84+ } ,
85+ ] ,
86+ [
87+ 'meta' ,
88+ {
89+ name : 'theme-color' ,
90+ content : '#ff4731' ,
91+ } ,
92+ ] ,
93+ [
94+ 'meta' ,
95+ {
96+ name : 'viewport' ,
97+ content : 'width=device-width, initial-scale=1' ,
98+ } ,
99+ ] ,
77100 ] ,
78-
79101 extend : '@vuepress/theme-default' ,
80-
81102 // markdown: {
82103 // extractHeaders: ['h2', 'h3', 'h4']
83104 // },
84-
85105 /**
86106 * Ref:https://v1.vuepress.vuejs.org/config/#title
87107 */
@@ -90,7 +110,6 @@ module.exports = (ctx) => ({
90110 * Ref:https://v1.vuepress.vuejs.org/config/#description
91111 */
92112 description : description ,
93-
94113 // base: '/docs/',
95114 /**
96115 * Theme configuration, here is the default theme configuration for VuePress.
@@ -114,138 +133,7 @@ module.exports = (ctx) => ({
114133 '/api/guides/' : sidebar . guides ( ) ,
115134 '/' : sidebar . support ( ) ,
116135 } ,
117- // sidebar: {
118- // '/api/guides/': [{
119- // title: 'Guides', // required
120- // collapsable: false, // optional, defaults to true
121- // sidebarDepth: 1, // optional, defaults to 1
122- // children: [
123- // ['/api/guides/', 'Overview'],
124- // {
125- // title: 'Quickstarts', // required
126- // collapsable: false,
127- // children: [
128- // ['/api/guides/quickstarts/node', 'Node.js'],
129- // ['/api/guides/quickstarts/python', 'Python'],
130- // ],
131- // },
132- // {
133- // title: 'Request and Send Payments', // required
134- // collapsable: false,
135- // children: [
136- // ['/api/guides/payments/request', 'Request Payment'],
137- // ['/api/guides/payments/send', 'Send Payment'],
138- // ],
139- // },
140- // ],
141- // }, ],
142- // '/api/reference/rest/': [{
143- // title: 'REST Reference', // required
144- // collapsable: false, // optional, defaults to true
145- // sidebarDepth: 0, // optional, defaults to 1
146- // children: [
147- // ['/api/reference/rest/v1/', 'Resource Summary']
148- // ],
149- // },
150- // {
151- // title: 'REST Resources', // required
152- // collapsable: false, // optional, defaults to true
153- // sidebarDepth: 1, // optional, defaults to 1
154- // // children: getApiSidebar(),
155- // children: [
156- // get_sidebar_reference_merchant(),
157- // get_sidebar_reference_merchant_balance(),
158- // get_sidebar_reference_merchant_logo(),
159- // get_sidebar_reference_merchant_payment_request(),
160- // get_sidebar_reference_merchant_payment_request_outcome(),
161- // get_sidebar_reference_merchant_payment_send(),
162- // get_sidebar_reference_merchant_payment_send_outcome(),
163- // get_sidebar_reference_merchant_pos(),
164- // get_sidebar_reference_merchant_sales_summary(),
165- // get_sidebar_reference_merchant_settlement(),
166- // get_sidebar_reference_merchant_settlement_account(),
167- // get_sidebar_reference_merchant_settlement_latest(),
168- // get_sidebar_reference_merchant_settlement_report(),
169- // get_sidebar_reference_merchant_shortlink(),
170- // get_sidebar_reference_merchant_ssp_users(),
171- // get_sidebar_reference_merchant_statusCodes(),
172- // get_sidebar_reference_merchant_users(),
173- // get_sidebar_reference_oauth2(),
174- // get_sidebar_reference_oauth2_auth_code(),
175- // get_sidebar_reference_oauth2_auth_request(),
176- // get_sidebar_reference_oauth2_auth_token(),
177- // get_sidebar_reference_oauth2_error(),
178- // get_sidebar_reference_oauth2_qrImage(),
179- // get_sidebar_reference_oauth2_user_info(),
180- // get_sidebar_reference_users_permissions(),
181- // get_sidebar_reference_users_permissions_request(),
182- // get_sidebar_reference_users_permissions_request_outcome(),
183- // get_sidebar_reference_users_permissions_scope(),
184- // ],
185- // },
186- // '/api/reference/rest/v1/types',
187- // // {
188- // // title: 'Resources', // required
189- // // collapsable: false, // optional, defaults to true
190- // // sidebarDepth: 1, // optional, defaults to 1
191- // // children: getResourcesSidebar(),
192- // // },
193- // ],
194- // '/api/support': [{
195- // title: 'Support', // required
196- // collapsable: false, // optional, defaults to true
197- // sidebarDepth: 0, // optional, defaults to 1
198- // children: [
199- // // get_sidebar_support(),
200- // ['/api/support/', 'How to Get Help'],
201- // [
202- // 'https://stackoverflow.com/questions/tagged/settle-api',
203- // 'Stack Overflow',
204- // ],
205- // [
206- // 'https://stackoverflow.com/questions/tagged/settle-api',
207- // 'Issue Tracker',
208- // ],
209- // [
210- // 'https://stackoverflow.com/questions/tagged/settle-api',
211- // 'Feature Request',
212- // ],
213- // ['/api/release-notes', 'Release Notes'],
214- // ['/api/terms', 'Terms of Service'],
215- // ],
216- // }, ],
217- // '/discovery': [{
218- // title: 'API Discovery Service', // required
219- // collapsable: false, // optional, defaults to true
220- // sidebarDepth: 1, // optional, defaults to 1
221- // children: [
222- // get_sidebar_discovery_home(),
223- // get_sidebar_discovery_guides(),
224- // get_sidebar_discovery_reference(),
225- // ],
226- // }, ],
227- // '/': [{
228- // title: 'Introduction', // required
229- // collapsable: false, // optional, defaults to true
230- // sidebarDepth: 2, // optional, defaults to 1
231- // children: getIntroductionSidebar(),
232- // },
233- // {
234- // title: 'Guides', // required
235- // collapsable: false, // optional, defaults to true
236- // sidebarDepth: 2, // optional, defaults to 1
237- // children: getGuidesSidebar(),
238- // },
239- // {
240- // title: 'Tutorials', // required
241- // collapsable: false, // optional, defaults to true
242- // sidebarDepth: 0, // optional, defaults to 1
243- // children: getImpIntSidebar(),
244- // },
245- // ],
246- // },
247136 } ,
248-
249137 /**
250138 * Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
251139 */
@@ -324,4 +212,4 @@ module.exports = (ctx) => ({
324212 // Plugins
325213 '.vuepress/plugins/getOpenAPI.js' ,
326214 ] ,
327- } ) ;
215+ } ) ;
0 commit comments