From 1cde0ef7c1156d2287efbdf7baa7f133945f01e6 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Thu, 31 Oct 2024 15:38:31 +0100 Subject: [PATCH] Add PodServer docs --- .gitignore | 1 + docs/.vuepress/config.js | 1 + docs/.vuepress/preprocessMarkdown.js | 1 + docs/Development/Plugins.md | 1 + setup-deps.sh | 20 ++++++++++++++++++++ 5 files changed, 24 insertions(+) diff --git a/.gitignore b/.gitignore index 40fc0338b5..300ca0035b 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ /docs/Nopcommerce /docs/Nostr /docs/Payroll +/docs/PodServer /docs/SideShift /docs/Smartstore /docs/TicketTailor diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 4a52e7c648..ea2f8a60db 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -135,6 +135,7 @@ const sidebarUserGuide = [ children: [ ['/LNDhubAPI/', 'LNDhub API'], ['/Nostr/', 'Nostr'], + ['/PodServer/', 'PodServer'], ['/TicketTailor/', 'TicketTailor'], ['/Trocador/', 'Trocador'], ['/SideShift/', 'SideShift'], diff --git a/docs/.vuepress/preprocessMarkdown.js b/docs/.vuepress/preprocessMarkdown.js index 019387a46d..ba0d72e942 100644 --- a/docs/.vuepress/preprocessMarkdown.js +++ b/docs/.vuepress/preprocessMarkdown.js @@ -11,6 +11,7 @@ const EXTERNAL_DOCS = { Zapier: 'https://github.com/btcpayserver/zapier', LNDhubAPI: 'https://github.com/dennisreimann/btcpayserver-plugin-lndhub-api', Nostr: 'https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.NIP05', + PodServer: 'https://github.com/dennisreimann/btcpayserver-plugin-podserver', TicketTailor: 'https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.TicketTailor', Trocador: 'https://github.com/saltrafael/trocador-plugin', Wabisabi: 'https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.Wabisabi', diff --git a/docs/Development/Plugins.md b/docs/Development/Plugins.md index b2536ae1d0..9227d32073 100644 --- a/docs/Development/Plugins.md +++ b/docs/Development/Plugins.md @@ -351,4 +351,5 @@ For more information check out these repositories with existing plugins: - [kukks' plugins](https://github.com/Kukks/BTCPayServerPlugins) - [rockstardev' plugins](https://github.com/rockstardev/BTCPayServerPlugins.RockstarDev) - [LNDhub API](https://github.com/dennisreimann/btcpayserver-plugin-lndhub-api) +- [PodServer](https://github.com/dennisreimann/btcpayserver-plugin-podserver) - [Trocador.app](https://github.com/saltrafael/trocador-plugin) diff --git a/setup-deps.sh b/setup-deps.sh index 530bb01aee..10976e141b 100755 --- a/setup-deps.sh +++ b/setup-deps.sh @@ -12,6 +12,7 @@ DOCKER_DIR="$BASE_DIR/deps/docker" VAULT_DIR="$BASE_DIR/deps/vault" TRANSMUTER_DIR="$BASE_DIR/deps/transmuter" ZAPIER_DIR="$BASE_DIR/deps/zapier" +PODSERVER_DIR="$BASE_DIR/deps/podserver" TROCADOR_DIR="$BASE_DIR/deps/trocador" LNDHUBAPI_DIR="$BASE_DIR/deps/lndhub-api" KUKKS_DIR="$BASE_DIR/deps/kukks" @@ -193,6 +194,25 @@ for file in "$DOCS_DIR"/Zapier/*.md; do update_external "$file" https://github.com/btcpayserver/zapier "$DOCS_DIR"/Zapier/ done +# PodServer + +echo "Setup dependency: PodServer" + +rm -rf "$PODSERVER_DIR" +rm -rf "$DOCS_DIR/PodServer" +mkdir -p "$DOCS_DIR/PodServer" + +if [ ! -d "$PODSERVER_DIR" ]; then + git clone --depth 1 https://github.com/dennisreimann/btcpayserver-plugin-podserver.git "$PODSERVER_DIR" +fi + +cd "$PODSERVER_DIR" +cp -r README.md docs/* "$DOCS_DIR/PodServer" +sed -ie 's$(./docs/$(./$g' "$DOCS_DIR/PodServer/README.md" +for file in "$DOCS_DIR"/PodServer/*.md; do + update_external "$file" https://github.com/dennisreimann/btcpayserver-plugin-podserver "$DOCS_DIR"/PodServer/ +done + # LNDhub API echo "Setup dependency: LNDhub API"