Skip to content

Commit

Permalink
Merge pull request #1351 from ndeet/smartstoredocs
Browse files Browse the repository at this point in the history
Add Smartstore docs.
  • Loading branch information
pavlenex authored Dec 19, 2023
2 parents 0b1841f + 888face commit e203cfe
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/docs/LNDhubAPI
/docs/Nostr
/docs/PodServer
/docs/Smartstore
/docs/TicketTailor
/docs/Trocador
/docs/Wabisabi
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ This document explains how to **integrate BTCPay Server into your WooCommerce st

### Embedding YouTube videos

To add a YouTube video with a preview, you can so so by linking to it like this:
To add a YouTube video with a preview, you can do so by linking to it like this:

```md
[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/mqdefault.jpg)](https://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)
Expand Down
1 change: 1 addition & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const sidebarUserGuide = [
['/Zapier/', 'Zapier'],
['/Shopware', 'Shopware'],
['/VirtueMart', 'VirtueMart'],
['/Smartstore/', 'Smartstore'],
['/CustomIntegration', 'Custom Integration']
]
},
Expand Down
3 changes: 2 additions & 1 deletion docs/.vuepress/preprocessMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const EXTERNAL_DOCS = {
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'
Wabisabi: 'https://github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.Wabisabi',
Smartstore: 'https://github.com/btcpayserver/Smartstore.BTCPayServer.git'
}

const replaceExternalRepoLinks = (source, externalRepoUrl, resourcePath) => {
Expand Down
19 changes: 19 additions & 0 deletions setup-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ 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"
SMARTSTORE_DIR="$BASE_DIR/deps/smartstore"

update_external() {
file="$1"
Expand Down Expand Up @@ -263,6 +264,24 @@ for file in "$DOCS_DIR"/Trocador/*.md; do
update_external "$file" https://github.com/saltrafael/trocador-plugin "$DOCS_DIR"/Trocador/
done

# Smartstore

echo "Setup dependency: Smartstore"

rm -rf "$SMARTSTORE_DIR"
rm -rf "$DOCS_DIR/Smartstore"
mkdir -p "$DOCS_DIR/Smartstore"

if [ ! -d "$SMARTSTORE_DIR" ]; then
git clone --depth 1 https://github.com/btcpayserver/Smartstore.BTCPayServer.git "$SMARTSTORE_DIR"
fi

cd "$SMARTSTORE_DIR"
cp -r src/Smartstore.Modules/Smartstore.BTCPayServer/README.md "$DOCS_DIR/Smartstore"
for file in "$DOCS_DIR"/Smartstore/*.md; do
update_external "$file" https://github.com/btcpayserver/Smartstore.BTCPayServer.git "$DOCS_DIR"/Smartstore/
done

# Kukks' plugins

echo "Setup dependency: Kukks' plugins"
Expand Down

0 comments on commit e203cfe

Please sign in to comment.