Skip to content

Commit

Permalink
Merge pull request #1417 from TChukwuleta/drupal_task
Browse files Browse the repository at this point in the history
include drupal integration from ReadMe
  • Loading branch information
pavlenex authored Sep 19, 2024
2 parents 7f52dba + 7ff15d5 commit f48d614
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 44 deletions.
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

0 comments on commit f48d614

Please sign in to comment.