From 4c0905f2bd2f83d143fa7805ac5b9ad04149a97e Mon Sep 17 00:00:00 2001 From: TChukwuleta Date: Fri, 27 Dec 2024 10:26:04 -0800 Subject: [PATCH] shopify v2 docs --- docs/.vuepress/config.js | 1 + setup-deps.sh | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index c342d141aa..61a1ee7b6d 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -119,6 +119,7 @@ const sidebarUserGuide = [ ['/PhocaCart', 'PhocaCart'], ['/PrestaShop', 'PrestaShop'], ['/Shopify', 'Shopify'], + ['/ShopifyV2/', 'Shopify V2'], ['/Shopware', 'Shopware'], ['/Smartstore/', 'Smartstore'], ['/VirtueMart', 'VirtueMart'], diff --git a/setup-deps.sh b/setup-deps.sh index 3ca9af4f45..1acb8648bc 100755 --- a/setup-deps.sh +++ b/setup-deps.sh @@ -475,6 +475,9 @@ echo "Setup dependency: Tobses' plugins" rm -rf "$DOCS_DIR/BigCommerce" mkdir -p "$DOCS_DIR/BigCommerce" +rm -rf "$DOCS_DIR/ShopifyV2" +mkdir -p "$DOCS_DIR/ShopifyV2" + if [ ! -d "$TOBSES_DIR" ]; then git clone --depth 1 https://github.com/TChukwuleta/BTCPayServerPlugins.git "$TOBSES_DIR" else @@ -488,6 +491,13 @@ for file in "$DOCS_DIR"/BigCommerce/*.md; do 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/ done +cd "$TOBSES_DIR/Plugins/BTCPayServer.Plugins.ShopifyPlugin" + +cp -r README.md img "$DOCS_DIR/ShopifyV2" +for file in "$DOCS_DIR"/ShopifyV2/*.md; do + update_external "$file" https://github.com/TChukwuleta/BTCPayServerPlugins/tree/main/Plugins/BTCPayServer.Plugins.ShopifyPlugin https://github.com/TChukwuleta/BTCPayServerPlugins/edit/main/Plugins/BTCPayServer.Plugins.ShopifyPlugin "$DOCS_DIR"/ShopifyV2/ +done + # Swagger # BTCPay Swagger: Checkout latest release tag, so that we do not publish docs for unreleased APIs yet