Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include drupal integration from ReadMe #1417

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const sidebarUserGuide = [
['/Magento', 'Magento'],
['/PrestaShop', 'PrestaShop'],
['/OpenCart', 'OpenCart'],
['/Drupal', 'Drupal'],
['/Drupal/', 'Drupal'],
['/Zapier/', 'Zapier'],
['/Shopware', 'Shopware'],
['/VirtueMart', 'VirtueMart'],
Expand Down
43 changes: 0 additions & 43 deletions docs/Drupal.md

This file was deleted.

20 changes: 20 additions & 0 deletions setup-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ZAPIER_DIR="$BASE_DIR/deps/zapier"
TROCADOR_DIR="$BASE_DIR/deps/trocador"
KUKKS_DIR="$BASE_DIR/deps/kukks"
SMARTSTORE_DIR="$BASE_DIR/deps/smartstore"
DRUPAL_DIR="$BASE_DIR/deps/drupal"
GRANDNODE_DIR="$BASE_DIR/deps/grandnode"
BOLTCARDPLUGIN_DIR="$BASE_DIR/deps/boltcardplugin"
ROCKSTAR_DIR="$BASE_DIR/deps/rockstar"
Expand Down Expand Up @@ -207,6 +208,25 @@ for file in "$DOCS_DIR"/Trocador/*.md; do
update_external "$file" https://github.com/saltrafael/trocador-plugin "$DOCS_DIR"/Trocador/
done

# Drupal

echo "Setup dependency: Drupal"

rm -rf "$DOCS_DIR/Drupal"
mkdir -p "$DOCS_DIR/Drupal"

if [ ! -d "$DRUPAL_DIR" ]; then
git clone --depth 1 https://github.com/btcpayserver/commerce_btcpay.git "$DRUPAL_DIR"
else
cd "$DRUPAL_DIR" && git checkout 8.x-1.x && git pull
fi

cd "$DRUPAL_DIR"
cp -r README.md "$DOCS_DIR/Drupal"
for file in "$DOCS_DIR"/Drupal/*.md; do
update_external "$file" https://github.com/btcpayserver/commerce_btcpay.git "$DOCS_DIR"/Drupal/
done

# Smartstore

echo "Setup dependency: Smartstore"
Expand Down
Loading