Skip to content

Commit

Permalink
Merge pull request #1415 from ndeet/odoo
Browse files Browse the repository at this point in the history
Adding odoo to docs.
  • Loading branch information
pavlenex authored Oct 1, 2024
2 parents 4b9daca + c777d01 commit a917c6e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
/docs/TicketTailor
/docs/Trocador
/docs/Wabisabi
/docs/Odoo
/docs/.vuepress/public/API/Greenfield/**/*.json

# Files copied from external repos
Expand Down
1 change: 1 addition & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const sidebarUserGuide = [
['/Nopcommerce/', 'Nopcommerce'],
['/Xenforo/', 'Xenforo'],
['/InvoiceNinja', 'Invoice Ninja'],
['/Odoo/', 'Odoo'],
['/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 @@ -16,7 +16,8 @@ const EXTERNAL_DOCS = {
Smartstore: 'https://github.com/btcpayserver/Smartstore.BTCPayServer.git',
Grandnode: 'https://github.com/btcpayserver/grandnode.git',
Nopcommerce: 'https://github.com/btcpayserver/nopcommerce.git',
Xenforo: 'https://github.com/btcpayserver/xenforo.git'
Xenforo: 'https://github.com/btcpayserver/xenforo.git',
Odoo: 'https://github.com/btcpayserver/odoo.git'
}

const replaceExternalRepoLinks = (source, externalRepoUrl, resourcePath) => {
Expand Down
20 changes: 20 additions & 0 deletions setup-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ BOLTCARDPLUGIN_DIR="$BASE_DIR/deps/boltcardplugin"
ROCKSTAR_DIR="$BASE_DIR/deps/rockstar"
NOPCOMMERCE_DIR="$BASE_DIR/deps/nopcommerce"
XENFORO_DIR="$BASE_DIR/deps/xenforo"
ODOO_DIR="$BASE_DIR/deps/odoo"

update_external() {
file="$1"
Expand Down Expand Up @@ -303,6 +304,25 @@ for file in "$DOCS_DIR"/Xenforo/*.md; do
update_external "$file" https://github.com/btcpayserver/xenforo.git "$DOCS_DIR"/Xenforo/
done

# Odoo

echo "Setup dependency: Odoo 16 and 17"

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

if [ ! -d "$ODOO_DIR" ]; then
git clone https://github.com/btcpayserver/odoo.git "$ODOO_DIR"
else
cd "$ODOO_DIR" && git checkout 17.0 && git pull
fi

cd "$ODOO_DIR"
cp -r payment_btcpayserver/README.md "$DOCS_DIR/Odoo"
for file in "$DOCS_DIR"/Odoo/*.md; do
update_external "$file" https://github.com/btcpayserver/odoo.git "$DOCS_DIR"/Odoo/
done


# Kukks' plugins

Expand Down

0 comments on commit a917c6e

Please sign in to comment.