diff --git a/_config.yml b/_config.yml index c2b2a2b..99f69de 100644 --- a/_config.yml +++ b/_config.yml @@ -5,6 +5,7 @@ name: BigchainDB description: 'The scalable blockchain database.' url: https://www.bigchaindb.com +ipdb_api_url: https://test.ipdb.io email: contact: contact@bigchaindb.com diff --git a/_src/_assets/javascripts/page-getstarted.js b/_src/_assets/javascripts/page-getstarted.js index 087d596..d5151e9 100644 --- a/_src/_assets/javascripts/page-getstarted.js +++ b/_src/_assets/javascripts/page-getstarted.js @@ -4,6 +4,8 @@ //=include bigchain/smoothscroll.js //=include bigchain/newsletter.js +const ipdbUrl = 'https://test.ipdb.io' + jQuery(function($) { // @@ -123,7 +125,7 @@ window.addEventListener('DOMContentLoaded', function domload(event) { const outputContent = JSON.stringify(response, null, 2) // indented with 2 spaces output.textContent = outputContent - transactionLink.href = 'https://test.ipdb.io/api/v1/transactions/' + response.id + transactionLink.href = ipdbUrl + '/api/v1/transactions/' + response.id postButton.classList.add('disabled') postButton.style.opacity = 0 diff --git a/_src/getstarted.html b/_src/getstarted.html index cb62039..1a822b2 100644 --- a/_src/getstarted.html +++ b/_src/getstarted.html @@ -60,7 +60,7 @@ redirect_from:
@@ -88,7 +88,7 @@ from bigchaindb_driver.crypto import generate_keypair bdb = BigchainDB( - 'https://test.ipdb.io/api/v1/', + '{{ site.ipdb_api_url }}/api/v1/', headers={'app_id': 'Get one from developers.ipdb.io', 'app_key': 'Same as app_id'}) alice = generate_keypair() @@ -112,7 +112,7 @@ const driver = require('bigchaindb-driver') const alice = new driver.Ed25519Keypair() const conn = new driver.Connection( - 'https://test.ipdb.io/api/v1/', + '{{ site.ipdb_api_url }}/api/v1/', { app_id: 'Get one from developers.ipdb.io', app_key: 'Same as app_id' }) const tx = driver.Transaction.makeCreateTransaction(