@@ -30,13 +30,14 @@ WIX_DIR="$BASE_DIR/deps/wix"
30
30
update_external () {
31
31
file=" $1 "
32
32
repo=" $2 "
33
- base=" $3 "
33
+ edit=" $3 "
34
+ base=" $4 "
34
35
path=" ${file# ${base} } "
35
36
[[ $path = " Security.md" ]] && path=" SECURITY.md"
36
- [[ $path = " README.md" || $path = " SECURITY.md" ]] && folder=" " || folder=" docs/"
37
+ [[ $path = " README.md" || $path = " readme.md " || $path = " SECURITY.md" ]] && folder=" " || folder=" docs/"
37
38
content=$( cat " $file " )
38
39
# add frontmatter to omit edit links for external docs
39
- echo $' ---\n editLink : ' " $repo /edit/master/ $folder$path " $' \n externalRepo : ' " $repo " $' \n ---\n ' " $content " > " $file "
40
+ echo $' ---\n externalRepo : ' " $repo " $' \n editLink : ' " $edit / $folder$path " $' \n ---\n ' " $content " > " $file "
40
41
}
41
42
42
43
# BTCPay Server
@@ -61,7 +62,7 @@ line=$(grep -n '## How to manually test payments' $DOCS_DIR/BTCPayServer/LocalDe
61
62
{ echo $' ---\n editLink: https://github.com/btcpayserver/btcpayserver-doc/edit/master/docs/Development/LocalDev.md\n ---\n ' ; cat " $DOCS_DIR /Development/LocalDev.md" ; echo ; tail -n +$line " $DOCS_DIR /BTCPayServer/LocalDevSetup.md" ; } > " $DOCS_DIR /Development/LocalDevelopment.md"
62
63
63
64
for file in " $DOCS_DIR " /BTCPayServer/* .md; do
64
- update_external " $file " https://github.com/btcpayserver/btcpayserver " $DOCS_DIR " /BTCPayServer/
65
+ update_external " $file " https://github.com/btcpayserver/btcpayserver https://github.com/btcpayserver/btcpayserver/edit/master " $DOCS_DIR " /BTCPayServer/
65
66
done
66
67
67
68
# NBXplorer
@@ -82,7 +83,7 @@ cd "$NBXPLORER_DIR"
82
83
cp -r README.md docs/* " $DOCS_DIR /NBXplorer"
83
84
sed -ie ' s$(./docs/$(./$g' " $DOCS_DIR /NBXplorer/README.md"
84
85
for file in " $DOCS_DIR " /NBXplorer/* .md; do
85
- update_external " $file " https://github.com/dgarage/NBXplorer " $DOCS_DIR " /NBXplorer/
86
+ update_external " $file " https://github.com/dgarage/NBXplorer https://github.com/dgarage/NBXplorer/edit/master " $DOCS_DIR " /NBXplorer/
86
87
done
87
88
88
89
# Vault
@@ -102,7 +103,7 @@ cd "$VAULT_DIR"
102
103
cp -r README.md docs/* " $DOCS_DIR /Vault"
103
104
sed -ie ' s$(docs/$(./$g' " $DOCS_DIR /Vault/README.md"
104
105
for file in " $DOCS_DIR " /Vault/* .md; do
105
- update_external " $file " https://github.com/btcpayserver/BTCPayServer.Vault " $DOCS_DIR " /Vault/
106
+ update_external " $file " https://github.com/btcpayserver/BTCPayServer.Vault https://github.com/btcpayserver/BTCPayServer.Vault/edit/master " $DOCS_DIR " /Vault/
106
107
done
107
108
108
109
# Configurator
@@ -122,7 +123,7 @@ cd "$CONFIGURATOR_DIR"
122
123
cp -r README.md docs/* " $DOCS_DIR /Configurator"
123
124
sed -ie ' s$(./docs/$(./$g' " $DOCS_DIR /Configurator/README.md"
124
125
for file in " $DOCS_DIR " /Configurator/* .md; do
125
- update_external " $file " https://github.com/btcpayserver/btcpayserver-configurator " $DOCS_DIR " /Configurator/
126
+ update_external " $file " https://github.com/btcpayserver/btcpayserver-configurator https://github.com/btcpayserver/btcpayserver-configurator/edit/master " $DOCS_DIR " /Configurator/
126
127
done
127
128
128
129
# Docker
@@ -145,7 +146,7 @@ line=$(grep -n '# Introduction' README.md | cut -d ":" -f 1)
145
146
tail -n +$line " README.md" > " $DOCS_DIR /Docker/README.md"
146
147
sed -ie ' s$(docs/$(./$g' " $DOCS_DIR /Docker/README.md"
147
148
for file in " $DOCS_DIR " /Docker/* .md; do
148
- update_external " $file " https://github.com/btcpayserver/btcpayserver-docker " $DOCS_DIR " /Docker/
149
+ update_external " $file " https://github.com/btcpayserver/btcpayserver-docker https://github.com/btcpayserver/btcpayserver-docker/edit/master " $DOCS_DIR " /Docker/
149
150
done
150
151
151
152
cp contrib/FastSync/README.md " $DOCS_DIR /Docker/fastsync.md"
@@ -171,7 +172,7 @@ cd "$TRANSMUTER_DIR"
171
172
cp -r README.md docs/* " $DOCS_DIR /Transmuter"
172
173
sed -ie ' s$(docs/$(./$g' " $DOCS_DIR /Transmuter/README.md"
173
174
for file in " $DOCS_DIR " /Transmuter/* .md; do
174
- update_external " $file " https://github.com/btcpayserver/btcTransmuter " $DOCS_DIR " /Transmuter/
175
+ update_external " $file " https://github.com/btcpayserver/btcTransmuter https://github.com/btcpayserver/btcTransmuter/edit/master " $DOCS_DIR " /Transmuter/
175
176
done
176
177
177
178
# Zapier
@@ -191,7 +192,7 @@ cd "$ZAPIER_DIR"
191
192
cp -r README.md doc/* " $DOCS_DIR /Zapier"
192
193
sed -ie ' s$(./doc/$(./$g' " $DOCS_DIR /Zapier/README.md"
193
194
for file in " $DOCS_DIR " /Zapier/* .md; do
194
- update_external " $file " https://github.com/btcpayserver/zapier " $DOCS_DIR " /Zapier/
195
+ update_external " $file " https://github.com/btcpayserver/zapier https://github.com/btcpayserver/zapier/edit/master " $DOCS_DIR " /Zapier/
195
196
done
196
197
197
198
# PodServer
@@ -210,7 +211,7 @@ cd "$PODSERVER_DIR"
210
211
cp -r README.md docs/* " $DOCS_DIR /PodServer"
211
212
sed -ie ' s$(./docs/$(./$g' " $DOCS_DIR /PodServer/README.md"
212
213
for file in " $DOCS_DIR " /PodServer/* .md; do
213
- update_external " $file " https://github.com/dennisreimann/btcpayserver-plugin-podserver " $DOCS_DIR " /PodServer/
214
+ update_external " $file " https://github.com/dennisreimann/btcpayserver-plugin-podserver https://github.com/dennisreimann/btcpayserver-plugin-podserver/edit/master " $DOCS_DIR " /PodServer/
214
215
done
215
216
216
217
# LNDhub API
@@ -229,7 +230,7 @@ cd "$LNDHUBAPI_DIR"
229
230
cp -r README.md docs/* " $DOCS_DIR /LNDhubAPI"
230
231
sed -ie ' s$(./docs/$(./$g' " $DOCS_DIR /LNDhubAPI/README.md"
231
232
for file in " $DOCS_DIR " /LNDhubAPI/* .md; do
232
- update_external " $file " https://github.com/dennisreimann/btcpayserver-plugin-lndhub-api " $DOCS_DIR " /LNDhubAPI/
233
+ update_external " $file " https://github.com/dennisreimann/btcpayserver-plugin-lndhub-api https://github.com/dennisreimann/btcpayserver-plugin-lndhub-api/edit/master " $DOCS_DIR " /LNDhubAPI/
233
234
done
234
235
235
236
# Trocador
248
249
cd " $TROCADOR_DIR "
249
250
cp -r README.md " $DOCS_DIR /Trocador"
250
251
for file in " $DOCS_DIR " /Trocador/* .md; do
251
- update_external " $file " https://github.com/saltrafael/trocador-plugin " $DOCS_DIR " /Trocador/
252
+ update_external " $file " https://github.com/saltrafael/trocador-plugin https://github.com/saltrafael/trocador-plugin/edit/master " $DOCS_DIR " /Trocador/
252
253
done
253
254
254
255
# Drupal
267
268
cd " $DRUPAL_DIR "
268
269
cp -r README.md " $DOCS_DIR /Drupal"
269
270
for file in " $DOCS_DIR " /Drupal/* .md; do
270
- update_external " $file " https://github.com/btcpayserver/commerce_btcpay.git " $DOCS_DIR " /Drupal/
271
+ update_external " $file " https://github.com/btcpayserver/commerce_btcpay https://github.com/btcpayserver/commerce_btcpay/edit/8.x-1.x " $DOCS_DIR " /Drupal/
271
272
done
272
273
273
274
# Smartstore
286
287
cd " $SMARTSTORE_DIR "
287
288
cp -r src/Smartstore.Modules/Smartstore.BTCPayServer/README.md " $DOCS_DIR /Smartstore"
288
289
for file in " $DOCS_DIR " /Smartstore/* .md; do
289
- update_external " $file " https://github.com/btcpayserver/Smartstore.BTCPayServer.git " $DOCS_DIR " /Smartstore/
290
+ update_external " $file " https://github.com/btcpayserver/Smartstore.BTCPayServer https://github.com/btcpayserver/Smartstore.BTCPayServer/edit/main " $DOCS_DIR " /Smartstore/
290
291
done
291
292
292
293
# Grandnode
305
306
cd " $GRANDNODE_DIR "
306
307
cp -r README.md " $DOCS_DIR /Grandnode"
307
308
for file in " $DOCS_DIR " /Grandnode/* .md; do
308
- update_external " $file " https://github.com/btcpayserver/grandnode.git " $DOCS_DIR " /Grandnode/
309
+ update_external " $file " https://github.com/btcpayserver/grandnode https://github.com/btcpayserver/grandnode/edit/main " $DOCS_DIR " /Grandnode/
309
310
done
310
311
311
312
# Nopcommerce
324
325
cd " $NOPCOMMERCE_DIR "
325
326
cp -r README.md " $DOCS_DIR /Nopcommerce"
326
327
for file in " $DOCS_DIR " /Nopcommerce/* .md; do
327
- update_external " $file " https://github.com/btcpayserver/nopcommercee.git " $DOCS_DIR " /Nopcommerce/
328
+ update_external " $file " https://github.com/btcpayserver/nopcommerce https://github.com/btcpayserver/nopcommerce/edit/main " $DOCS_DIR " /Nopcommerce/
328
329
done
329
330
330
331
# Wix
331
332
echo " Setup dependency: Wix"
332
333
333
- rm -rf " $DOCS_DIR /img/wix"
334
- mkdir -p " $DOCS_DIR /img/wix"
334
+ rm -rf " $DOCS_DIR /Wix"
335
+ mkdir -p " $DOCS_DIR /Wix"
336
+
337
+ rm -rf " $DOCS_DIR /Wix"
338
+ mkdir -p " $DOCS_DIR /Wix"
335
339
336
340
if [ ! -d " $WIX_DIR " ]; then
337
341
git clone --depth 1 https://github.com/btcpayserver/wix.git " $WIX_DIR "
@@ -340,10 +344,10 @@ else
340
344
fi
341
345
342
346
cd " $WIX_DIR "
343
- cp -r README.md " $DOCS_DIR /Wix.md "
344
- cp -r img/wix/ * " $DOCS_DIR /img/wix "
345
- update_external " $DOCS_DIR /Wix.md " https://github.com/btcpayserver/wix.git " $DOCS_DIR "
346
-
347
+ cp -r README.md img " $DOCS_DIR /Wix"
348
+ for file in " $DOCS_DIR " /Wix/ * .md ; do
349
+ update_external " $file " https://github.com/btcpayserver/wix https://github.com/btcpayserver/wix/edit/main " $DOCS_DIR " /Wix/
350
+ done
347
351
348
352
# Xenforo
349
353
361
365
cd " $XENFORO_DIR "
362
366
cp -r README.md " $DOCS_DIR /Xenforo"
363
367
for file in " $DOCS_DIR " /Xenforo/* .md; do
364
- update_external " $file " https://github.com/btcpayserver/xenforo.git " $DOCS_DIR " /Xenforo/
368
+ update_external " $file " https://github.com/btcpayserver/xenforo https://github.com/btcpayserver/xenforo/edit/main " $DOCS_DIR " /Xenforo/
365
369
done
366
370
367
371
# Odoo
380
384
cd " $ODOO_DIR "
381
385
cp -r payment_btcpayserver/README.md " $DOCS_DIR /Odoo"
382
386
for file in " $DOCS_DIR " /Odoo/* .md; do
383
- update_external " $file " https://github.com/btcpayserver/odoo.git " $DOCS_DIR " /Odoo/
387
+ update_external " $file " https://github.com/btcpayserver/odoo https://github.com/btcpayserver/odoo/edit/17.0 " $DOCS_DIR " /Odoo/
384
388
done
385
389
386
-
387
390
# Kukks' plugins
388
391
389
392
echo " Setup dependency: Kukks' plugins"
@@ -402,51 +405,51 @@ cd "$KUKKS_DIR/Plugins/BTCPayServer.Plugins.Wabisabi"
402
405
cp -r readme.md docs/* " $DOCS_DIR /Wabisabi"
403
406
sed -ie ' s$docs/$./$g' " $DOCS_DIR /Wabisabi/readme.md"
404
407
for file in " $DOCS_DIR " /Wabisabi/* .md; do
405
- update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.Wabisabi " $DOCS_DIR " /Wabisabi/
408
+ update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.Wabisabi https://github.com/Kukks/BTCPayServerPlugins/edit/master/Plugins/BTCPayServer.Plugins.Wabisabi " $DOCS_DIR " /Wabisabi/
406
409
done
407
410
408
411
cd " $KUKKS_DIR /Plugins/BTCPayServer.Plugins.TicketTailor"
409
412
410
413
cp -r README.md " $DOCS_DIR /TicketTailor"
411
414
for file in " $DOCS_DIR " /TicketTailor/* .md; do
412
- update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.TicketTailor " $DOCS_DIR " /TicketTailor/
415
+ update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.TicketTailor https://github.com/Kukks/BTCPayServerPlugins/edit/master/Plugins/BTCPayServer.Plugins.TicketTailor " $DOCS_DIR " /TicketTailor/
413
416
done
414
417
415
418
cd " $KUKKS_DIR /Plugins/BTCPayServer.Plugins.NIP05"
416
419
417
420
cp -r readme.md " $DOCS_DIR /Nostr"
418
421
for file in " $DOCS_DIR " /Nostr/* .md; do
419
- update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.NIP05 " $DOCS_DIR " /Nostr/
422
+ update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.NIP05 https://github.com/Kukks/BTCPayServerPlugins/edit/master/Plugins/BTCPayServer.Plugins.NIP05 " $DOCS_DIR " /Nostr/
420
423
done
421
424
422
425
cd " $KUKKS_DIR /Plugins/BTCPayServer.Plugins.SideShift"
423
426
424
427
cp -r README.md " $DOCS_DIR /SideShift"
425
428
for file in " $DOCS_DIR " /SideShift/* .md; do
426
429
sed -i ' s/[^[:print:]\t]//g' " $file "
427
- update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.SideShift " $DOCS_DIR " /SideShift/
430
+ update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.SideShift https://github.com/Kukks/BTCPayServerPlugins/edit/master/Plugins/BTCPayServer.Plugins.SideShift " $DOCS_DIR " /SideShift/
428
431
done
429
432
430
433
cd " $KUKKS_DIR /Plugins/BTCPayServer.Plugins.Breez"
431
434
432
435
cp -r README.md " $DOCS_DIR /Breez"
433
436
for file in " $DOCS_DIR " /Breez/* .md; do
434
- update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.Breez " $DOCS_DIR " /Breez/
437
+ update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.Breez https://github.com/Kukks/BTCPayServerPlugins/edit/master/Plugins/BTCPayServer.Plugins.Breez " $DOCS_DIR " /Breez/
435
438
done
436
439
437
440
cd " $KUKKS_DIR /Plugins/BTCPayServer.Plugins.Bringin"
438
441
439
442
cp -r README.md " $DOCS_DIR /Bringin"
440
443
for file in " $DOCS_DIR " /Bringin/* .md; do
441
- update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.Bringin " $DOCS_DIR " /Bringin/
444
+ update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.Bringin https://github.com/Kukks/BTCPayServerPlugins/edit/master/Plugins/BTCPayServer.Plugins.Bringin " $DOCS_DIR " /Bringin/
442
445
done
443
446
444
447
cd " $KUKKS_DIR /Plugins/BTCPayServer.Plugins.DynamicReports"
445
448
446
449
cp -r README.md " $DOCS_DIR /DynamicReports"
447
450
for file in " $DOCS_DIR " /DynamicReports/* .md; do
448
451
sed -i ' s/[^[:print:]\t]//g' " $file "
449
- update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.DynamicReports " $DOCS_DIR " /DynamicReports/
452
+ update_external " $file " https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.DynamicReports https://github.com/Kukks/BTCPayServerPlugins/edit/master/Plugins/BTCPayServer.Plugins.DynamicReports " $DOCS_DIR " /DynamicReports/
450
453
done
451
454
452
455
@@ -468,7 +471,7 @@ cd "$ROCKSTAR_DIR/Plugins/BTCPayServer.RockstarDev.Plugins.Payroll"
468
471
cp -r README.md " $DOCS_DIR /Payroll"
469
472
for file in " $DOCS_DIR " /Payroll/* .md; do
470
473
sed -i ' s/[^[:print:]\t]//g' " $file "
471
- update_external " $file " https://github.com/rockstardev/BTCPayServerPlugins.RockstarDev/tree/master/Plugins/BTCPayServer.RockstarDev.Plugins.Payroll " $DOCS_DIR " /Payroll/
474
+ update_external " $file " https://github.com/rockstardev/BTCPayServerPlugins.RockstarDev/tree/master/Plugins/BTCPayServer.RockstarDev.Plugins.Payroll https://github.com/rockstardev/BTCPayServerPlugins.RockstarDev/edit/master/Plugins/BTCPayServer.RockstarDev.Plugins.Payroll " $DOCS_DIR " /Payroll/
472
475
done
473
476
474
477
# Tobe' plugins
@@ -488,11 +491,9 @@ cd "$TOBSES_DIR/Plugins/BTCPayServer.Plugins.BigCommercePlugin"
488
491
489
492
cp -r README.md " $DOCS_DIR /BigCommerce"
490
493
for file in " $DOCS_DIR " /BigCommerce/* .md; do
491
- update_external " $file " https://github.com/TChukwuleta/BTCPayServerPlugins/tree/main/Plugins/BTCPayServer.Plugins.BigCommercePlugin " $DOCS_DIR " /BigCommerce/
494
+ update_external " $file " https://github.com/TChukwuleta/BTCPayServerPlugins/tree/main/Plugins/BTCPayServer.Plugins.BigCommercePlugin https://github.com/TChukwuleta/BTCPayServerPlugins/edit/main/Plugins/BTCPayServer.Plugins.BigCommercePlugin " $DOCS_DIR " /BigCommerce/
492
495
done
493
496
494
-
495
-
496
497
# Swagger
497
498
498
499
# BTCPay Swagger: Checkout latest release tag, so that we do not publish docs for unreleased APIs yet
0 commit comments