-
-
Notifications
You must be signed in to change notification settings - Fork 310
Expand file tree
/
Copy pathconfig.js
More file actions
523 lines (516 loc) · 13.6 KB
/
Copy pathconfig.js
File metadata and controls
523 lines (516 loc) · 13.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
const { resolve } = require('path')
const include = require('markdown-it-include')
const implicitFigures = require('markdown-it-implicit-figures')
const slugify = require('./slugify')
const preprocessMarkdown = resolve(__dirname, 'preprocessMarkdown')
const imageAltToTitlePlugin = require('./imageAltToTitlePlugin')
const title = 'BTCPay Server'
const baseUrl = 'https://docs.btcpayserver.org'
const pageSuffix = '/'
const info = {
name: title,
twitter: 'btcpayserver'
}
const extractDescription = text => {
if (!text) return
const paragraph = text.match(/^[A-Za-z].*(?:\n[A-Za-z].*)*/m)
return paragraph ? paragraph.toString().replace(/[\*\_\(\)\[\]]/g, '') : null
}
const sidebarUserGuide = [
{
title: 'Learn',
collapsable: false,
children: [
['/Guide', 'Introduction'],
['/TryItOut', 'Try it out'],
['/Walkthrough', 'Walkthrough'],
['/UseCase', 'Use Case'],
['/BTCPayVsOthers', 'BTCPay Server vs. Others']
]
},
{
title: 'Getting Started',
collapsable: false,
children: [
'/RegisterAccount',
'/CreateStore',
{
title: '(3) Wallet Setup',
path: '/WalletSetup',
collapsable: false,
initialOpenGroupIndex: -1,
children: [
{
title: 'Connect Wallet',
path: '/ConnectWallet'
},
{
title: 'Create Wallet',
path: '/CreateWallet'
},
{
title: 'Lightning Network Setup',
path: '/LightningNetwork-Setup'
}
]
},
['/WhatsNext', "(4) What's Next?"]
]
},
{
title: 'Features',
collapsable: false,
children: [
['/Dashboard', 'Dashboard'],
{
title: 'Wallet',
path: '/Wallet',
children: [
['/HardwareWalletIntegration', 'Hardware Wallet Integration'],
['/Multisig', 'Multisig'],
['/LightningNetwork', 'Lightning Network']
]
},
['/Invoices', 'Invoices'],
{
title: 'Subscriptions',
path: '/Subscriptions',
children: [['/Monetization', 'Monetization']]
},
['/Translations', 'Translations'],
['/PaymentRequests', 'Payment Requests'],
{
title: 'Pull Payments',
path: '/PullPayments',
collapsable: false,
children: [['/Refund', 'Refunds']]
},
['/Payouts', 'Payouts'],
{
title: 'Form Builder',
path: '/Forms',
children: [['/AdvancedForms', 'Advanced Forms']]
},
{
title: 'Apps',
path: '/Apps',
children: [['/Conference-PoS-guide', 'Conference PoS Guide']]
},
['/Reporting', 'Reporting'],
{
title: 'Payjoin',
path: '/Payjoin',
children: [
[
'https://github.com/bitcoin/bips/blob/master/bip-0078.mediawiki',
'Payjoin specification',
{ type: 'external' }
]
]
}
]
},
{
title: 'Integrations',
collapsable: false,
children: [
['/BigCommerce/', 'Big Commerce'],
['/Calcom', 'Cal.com'],
['/Drupal/', 'Drupal'],
['/EasyDigitalDownloads', 'Easy Digital Downloads'],
['/EasyWebshop', 'EasyWebshop'],
['/Ecwid/', 'Ecwid'],
['/GiveWP', 'GiveWP'],
['/Grandnode/', 'Grandnode'],
['/InvoiceNinja', 'Invoice Ninja'],
['/Magento', 'Magento'],
['/Nopcommerce/', 'Nopcommerce'],
['/Odoo/', 'Odoo'],
['/OpenCart', 'OpenCart'],
['/PhocaCart', 'PhocaCart'],
['/PrestaShop', 'PrestaShop'],
['/Pretix', 'Pretix'],
['/ShopifyV2', 'Shopify V2'],
['/Shopware', 'Shopware'],
['/Ghost/', 'Ghost'],
['/Smartstore/', 'Smartstore'],
['/VirtueMart', 'VirtueMart'],
['/Wix/', 'Wix'],
['/WooCommerce', 'WooCommerce'],
['/Xenforo/', 'Xenforo'],
['/Zapier/', 'Zapier'],
['/CustomIntegration', 'Custom Integration']
]
},
{
title: 'Plugins',
collapsable: false,
initialOpenGroupIndex: -1,
children: [
[`https://dev.blink.sv/examples/btcpayserver-plugin`, 'Blink', { type: 'external' }],
['/Breez/', 'Breez'],
['/Bringin/', 'Bringin'],
['/DynamicReports/', 'Dynamic Reports'],
['/LNDhubAPI/', 'LNDhub API'],
['/Nostr/', 'Nostr'],
['/VendorPay/', 'Vendor Pay'],
['/PodServer/', 'PodServer'],
['/SideShift/', 'SideShift'],
['/TicketTailor/', 'TicketTailor'],
['/Trocador/', 'Trocador'],
['/Wabisabi/', 'Wabisabi Coinjoin']
]
},
{
title: 'Support and Community',
collapsable: false,
initialOpenGroupIndex: -1,
children: [
['/Troubleshooting', 'Troubleshooting an issue'],
['/Support', 'Support'],
['/Community', 'Community']
]
}
]
const sidebarDeployment = [
{
title: 'Deployment',
collapsable: false,
children: ['/Deployment/', '/Hardening/', '/Deployment/ThirdPartyHosting', '/Configurator/']
},
{
title: 'Docker',
collapsable: false,
children: [
['/Docker/', 'Introduction'],
{
title: 'Web/Cloud Deployment',
path: '/Deployment/webdeployment',
collapsable: false,
children: [
['/Deployment/LunaNode', 'Luna Node'],
['/Deployment/Cloudzy', 'Cloudzy'],
['/Deployment/Clovyr', 'Clovyr'],
{
title: 'Azure',
path: '/Deployment/Azure',
children: [['/Deployment/AzurePennyPinching', 'Reducing Cost on Azure']]
},
{
title: 'Google Cloud',
path: '/Deployment/GoogleCloud'
},
{
title: 'Comet Cash',
path: '/Deployment/CometCash'
}
]
},
{
title: 'Hardware Deployment',
path: '/Deployment/Hardware',
collapsable: false,
children: [
{
title: 'Raspberry Pi Deployment',
path: '/Deployment/RaspberryPi4'
},
{
title: 'Hack0 Deployment',
path: '/Deployment/Hack0'
},
{
title: 'LightningInABox Deployment',
path: '/Deployment/LightningInABox'
},
['/Deployment/DynamicDNS', 'Dynamic DNS'],
['/Docker/cloudflare-tunnel', 'Exposing on clearnet with Cloudflare'],
['/Deployment/ReverseSSHtunnel', 'Exposing on clearnet with a reverse SSH Tunnel'],
['/Deployment/ReverseProxyToTor', 'Exposing on Tor'],
{
title: 'Hardware As A Service',
path: '/Deployment/HardwareAsAService'
}
]
},
{
title: 'Docker Plugins',
children: [
['/ElectrumX', 'Electrum X'],
['/ElectrumPersonalServer', 'Electrum Personal Server'],
'/Docker/joinmarket',
'/Docker/pihole',
'/Docker/fireflyiii',
'/Docker/ndlc',
'/Docker/lightning-terminal',
'/Docker/tallycoin-connect',
'/Docker/cloudflare-tunnel'
]
},
{
title: 'FastSync',
path: '/Docker/fastsync'
},
{
title: 'Backup & Restore',
path: '/Docker/backup-restore'
}
]
},
{
title: 'Manual Deployment',
collapsable: false,
children: ['/Deployment/ManualDeployment', '/Deployment/ManualDeploymentExtended']
}
]
const sidebarDevelopment = [
{
title: 'Greenfield API',
collapsable: false,
children: [
[`${baseUrl}/API/Greenfield/v1`, 'Greenfield API v1', { type: 'external' }],
// [
// `${baseUrl}/API/Greenfield/Plugins`,
// 'Greenfield API Plugins',
// { type: 'external' }
// ],
'/Development/ecommerce-integration-guide',
'/BTCPayServer/greenfield-authorization',
'/Development/GreenFieldExample',
'/Development/GreenFieldExample-NodeJS',
'/Development/GreenfieldExample-PHP'
]
},
{
title: 'Development',
collapsable: false,
children: [
'/Development/',
'/Development/LocalDevelopment',
['/BTCPayServer/greenfield-development', 'Greenfield API Development'],
{
title: 'Plugins',
path: '/Development/Plugins',
children: [['/Development/Plugins-Permissions', 'Extending permissions']]
},
'/Development/Altcoins',
'/Development/InvoiceMetadata',
'/Development/Theme'
]
},
{
title: 'NBXplorer',
collapsable: false,
children: [
['/NBXplorer/', 'Overview'],
'/NBXplorer/API',
['/NBXplorer/Postgres-Schema', 'Postgres Schema'],
['/NBXplorer/Postgres-Migration', 'Postgres Migration']
]
},
{
title: 'More',
collapsable: false,
initialOpenGroupIndex: -1,
children: [
{
title: 'BTCPay Server Vault',
path: '/Vault/',
children: ['/Vault/HowToVerify']
},
['/BTCPayServer/Security', 'Security Disclosures'],
['/Development/TestnetDemo', 'Testnet deployment']
]
}
]
const sidebarContribute = [
{
title: 'Contribute',
path: '/Contribute/',
collapsable: false,
children: [
{
title: 'Code',
path: '/Contribute/Dev',
collapsable: false,
children: ['/Contribute/DevCode', '/Contribute/DevTest']
},
{
title: 'Write',
path: '/Contribute/Write',
collapsable: false,
children: [
['/Contribute/WriteSoftware', 'Software Stack'],
['/Contribute/WriteDocs', 'Documentation'],
['/Contribute/WriteBlog', 'Blog']
]
},
['/Contribute/Design', 'Design'],
['/Contribute/Translate', 'Translate'],
['/Contribute/Misc', 'Miscellaneous']
]
}
]
const sidebarFAQ = [
{
title: 'FAQ and common issues',
path: '/FAQ/',
collapsable: false,
children: [
'General',
'Deployment',
'Synchronization',
'Integrations',
'ServerSettings',
'Stores',
'Wallet',
'Apps',
'LightningNetwork',
'Altcoin'
]
}
]
module.exports = {
title,
description: 'BTCPay Server Official Documentation',
head: [
['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1.0' }],
['link', { rel: 'stylesheet', href: '/styles/btcpayserver-variables.css' }]
],
chainWebpack(config) {
config.module.rule('md').test(/\.md$/).use(preprocessMarkdown).loader(preprocessMarkdown).end()
},
plugins: [
[
'seo',
{
siteTitle: (_, $site) => $site.title,
title: $page => $page.title,
description: $page =>
$page.frontmatter.description || extractDescription($page._strippedContent),
author: (_, $site) => info,
tags: $page => $page.frontmatter.tags || ['BTCPay Server'],
twitterCard: _ => 'summary',
type: $page => 'article',
url: (_, $site, path) => `${baseUrl}${path.replace('.html', pageSuffix)}`,
image: ($page, $site) => `${baseUrl}/card.png`
}
],
[
'clean-urls',
{
normalSuffix: pageSuffix,
indexSuffix: pageSuffix,
notFoundPath: '/404.html'
}
],
[
'code-copy',
{
color: '#8F979E',
backgroundTransition: false,
staticIcon: true
}
],
[
'sitemap',
{
hostname: baseUrl,
exclude: ['/404.html']
}
],
['@vuepress/medium-zoom']
],
markdown: {
extendMarkdown(md) {
md.use(implicitFigures)
md.use(include, { root: resolve(__dirname, 'includes') })
md.use(imageAltToTitlePlugin)
},
pageSuffix,
slugify
},
themeConfig: {
domain: baseUrl,
logo: '/img/btcpay-logo.svg',
displayAllHeaders: false,
repo: 'btcpayserver/btcpayserver-doc',
docsDir: 'docs',
editLinks: true,
notSatisfiedLinks: true, // our own addition, see theme/components/PageEdit.vue
sidebarDepth: 0,
algolia: {
indexName: 'btcpayserver',
appId: 'EJBX059GO6',
apiKey: '2ec08d532af6b265b73b2e71cae499ce',
// See https://www.algolia.com/doc/api-reference/api-parameters/
algoliaOptions: {
// hitsPerPage: 10,
typoTolerance: 'min'
},
// See https://community.algolia.com/docsearch/behavior.html#autocompleteoptions
autocompleteOptions: {
openOnFocus: true
}
},
nav: [
{
text: 'User Guide',
link: '/Guide/'
},
{
text: 'Deployment',
link: '/Deployment/'
},
{
text: 'Developers',
link: '/Development/'
},
{
text: 'Contribute',
link: '/Contribute/'
},
{
text: 'FAQ',
link: '/FAQ/'
}
],
social: [
{
text: 'Website',
link: 'https://btcpayserver.org/',
rel: 'noopener noreferrer website'
},
{
text: 'Chat',
link: 'https://chat.btcpayserver.org/',
rel: 'noopener noreferrer chat'
},
{
text: 'GitHub',
link: 'https://github.com/btcpayserver/',
rel: 'noopener noreferrer github'
},
{
text: 'Twitter',
link: 'https://twitter.com/BtcpayServer',
rel: 'noopener noreferrer twitter'
}
],
sidebar: {
'/Development': sidebarDevelopment,
'/Contribute': sidebarContribute,
'/Vault': sidebarDevelopment,
'/BTCPayServer': sidebarDevelopment,
'/NBXplorer': sidebarDevelopment,
'/Configurator': sidebarDeployment,
'/Hardening': sidebarDeployment,
'/Deployment': sidebarDeployment,
'/Docker': sidebarDeployment,
'/ElectrumX': sidebarDeployment,
'/ElectrumPersonalServer': sidebarDeployment,
'/FAQ/': sidebarFAQ,
'/': sidebarUserGuide
}
}
}