Skip to content

Commit

Permalink
Merge pull request #1410 from TChukwuleta/pluginnav
Browse files Browse the repository at this point in the history
Include plugins in nav as external
  • Loading branch information
pavlenex authored Jul 24, 2024
2 parents e34dd6f d4b086f commit 6c95ee5
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 3 deletions.
12 changes: 11 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 132,17 @@ const sidebarUserGuide = [
['/Nostr/', 'Nostr'],
['/TicketTailor/', 'TicketTailor'],
['/Trocador/', 'Trocador'],
['/Wabisabi/', 'Wabisabi Coinjoin']
['/SideShift/', 'SideShift'],
['/Bringin/', 'Bringin'],
['/Payroll/', 'Payroll'],
['/DynamicReports/', 'Dynamic Reports'],
['/Breez/', 'Breez'],
['/Wabisabi/', 'Wabisabi Coinjoin'],
[
`https://dev.blink.sv/examples/btcpayserver-plugin`,
'Blink',
{ type: 'external' }
],
]
},
{
Expand Down
62 changes: 60 additions & 2 deletions setup-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 16,8 @@ TROCADOR_DIR="$BASE_DIR/deps/trocador"
KUKKS_DIR="$BASE_DIR/deps/kukks"
SMARTSTORE_DIR="$BASE_DIR/deps/smartstore"
GRANDNODE_DIR="$BASE_DIR/deps/grandnode"
BOLTCARDPLUGIN_DIR="$BASE_DIR/deps/boltcardplugin"
ROCKSTAR_DIR="$BASE_DIR/deps/rockstar"
NOPCOMMERCE_DIR="$BASE_DIR/deps/nopcommerce"
XENFORO_DIR="$BASE_DIR/deps/xenforo"

Expand Down Expand Up @@ -281,12 283,13 @@ for file in "$DOCS_DIR"/Xenforo/*.md; do
update_external "$file" https://github.com/btcpayserver/xenforo.git "$DOCS_DIR"/Xenforo/
done


# Kukks' plugins

echo "Setup dependency: Kukks' plugins"

rm -rf "$DOCS_DIR/TicketTailor" "$DOCS_DIR/Nostr" "$DOCS_DIR/Wabisabi"
mkdir -p "$DOCS_DIR/TicketTailor" "$DOCS_DIR/Nostr" "$DOCS_DIR/Wabisabi"
rm -rf "$DOCS_DIR/TicketTailor" "$DOCS_DIR/Nostr" "$DOCS_DIR/Wabisabi" "$DOCS_DIR/SideShift" "$DOCS_DIR/Breez" "$DOCS_DIR/Bringin" "$DOCS_DIR/DynamicReports"
mkdir -p "$DOCS_DIR/TicketTailor" "$DOCS_DIR/Nostr" "$DOCS_DIR/Wabisabi" "$DOCS_DIR/SideShift" "$DOCS_DIR/Breez" "$DOCS_DIR/Bringin" "$DOCS_DIR/DynamicReports"

if [ ! -d "$KUKKS_DIR" ]; then
git clone --depth 1 https://github.com/Kukks/BTCPayServerPlugins.git "$KUKKS_DIR"
Expand Down Expand Up @@ -316,6 319,61 @@ for file in "$DOCS_DIR"/Nostr/*.md; do
update_external "$file" https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.NIP05 "$DOCS_DIR"/Nostr/
done

cd "$KUKKS_DIR/Plugins/BTCPayServer.Plugins.SideShift"

cp -r README.md "$DOCS_DIR/SideShift"
for file in "$DOCS_DIR"/SideShift/*.md; do
sed -i 's/[^[:print:]\t]//g' "$file"
update_external "$file" https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.SideShift "$DOCS_DIR"/SideShift/
done

cd "$KUKKS_DIR/Plugins/BTCPayServer.Plugins.Breez"

cp -r README.md "$DOCS_DIR/Breez"
for file in "$DOCS_DIR"/Breez/*.md; do
update_external "$file" https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.Breez "$DOCS_DIR"/Breez/
done

cd "$KUKKS_DIR/Plugins/BTCPayServer.Plugins.Bringin"

cp -r README.md "$DOCS_DIR/Bringin"
for file in "$DOCS_DIR"/Bringin/*.md; do
update_external "$file" https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.Bringin "$DOCS_DIR"/Bringin/
done

cd "$KUKKS_DIR/Plugins/BTCPayServer.Plugins.DynamicReports"

cp -r README.md "$DOCS_DIR/DynamicReports"
for file in "$DOCS_DIR"/DynamicReports/*.md; do
sed -i 's/[^[:print:]\t]//g' "$file"
update_external "$file" https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.DynamicReports "$DOCS_DIR"/DynamicReports/
done


# Rockstar' plugins

echo "Setup dependency: Rockstar' plugins"

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

if [ ! -d "$ROCKSTAR_DIR" ]; then
git clone --depth 1 https://github.com/rockstardev/BTCPayServerPlugins.RockstarDev.git "$ROCKSTAR_DIR"
else
cd "$ROCKSTAR_DIR" && git checkout master && git pull
fi

cd "$ROCKSTAR_DIR/Plugins/BTCPayServer.RockstarDev.Plugins.Payroll"

cp -r README.md "$DOCS_DIR/Payroll"
for file in "$DOCS_DIR"/Payroll/*.md; do
sed -i 's/[^[:print:]\t]//g' "$file"
update_external "$file" https://github.com/rockstardev/BTCPayServerPlugins.RockstarDev/tree/master/Plugins/BTCPayServer.RockstarDev.Plugins.Payroll "$DOCS_DIR"/Payroll/
done




# Swagger

# BTCPay Swagger: Checkout latest release tag, so that we do not publish docs for unreleased APIs yet
Expand Down

0 comments on commit 6c95ee5

Please sign in to comment.