Skip to content

Commit

Permalink
Merge pull request #102 from michielmulders/master
Browse files Browse the repository at this point in the history
Small cleanup for js-docs
  • Loading branch information
michielmulders committed Sep 22, 2017
2 parents b97cce7 + f2fbdc7 commit db4054e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
15 changes: 0 additions & 15 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,6 @@ BigchainDB Javascript Driver Documentation
quickstart
usage


Another header
==============

Here is text and start quote::

print 'hello'
>> hello

Guide
^^^^^

Section testing


Indices and tables
==================

Expand Down
9 changes: 5 additions & 4 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Sign the transaction with private key of Alice to fulfill it:

.. code-block:: js
const txCreateAliceSimpleSigned = driver.Transaction.signTransaction(txCreateAliceSimple, alice.privateKey)
driver.Transaction.signTransaction(txCreateAliceSimple, alice.privateKey)
And sent over to a BigchainDB node:

Expand Down Expand Up @@ -194,7 +194,7 @@ Fulfill transaction by signing it with Alice's private key.

.. code-block:: js
txTransferBobSigned = driver.Transaction.signTransaction(txTransferBob, alice.privateKey);
driver.Transaction.signTransaction(txTransferBob, alice.privateKey);
And sent over to a BigchainDB node:

Expand Down Expand Up @@ -357,11 +357,12 @@ Recap: Asset Creation & Transfer
.then(() => conn.searchAssets('Bicycle Inc.'))
.then(assets => console.log('Found assets with serial number Bicycle Inc.:', assets))
Divisible Assets
----------------

Yet to come!

.. TODO:
.. - Add lexer: https://stackoverflow.com/questions/4259105/which-sphinx-code-block-language-to-use-for-json
.. - Add divisible assets example
.. - Add divisible assets example
.. - Add more readable code with promises possibly.

0 comments on commit db4054e

Please sign in to comment.