aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/md
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-04 19:54:16 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-04 23:32:03 +0800
commitc700046b7673a0f470c8d8abeec3cf873049a78a (patch)
treec7bdfc8e6d17d587f47ee23ef4a295ed192ae633 /packages/website/md
parent326a6b729fe6cf96f0b4787d84903282738b6863 (diff)
downloaddexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.tar
dexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.tar.gz
dexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.tar.bz2
dexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.tar.lz
dexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.tar.xz
dexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.tar.zst
dexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.zip
Apply prettify on json and md files
Diffstat (limited to 'packages/website/md')
-rw-r--r--packages/website/md/docs/0xjs/async.md9
-rw-r--r--packages/website/md/docs/0xjs/installation.md4
-rw-r--r--packages/website/md/docs/connect/installation.md2
-rw-r--r--packages/website/md/docs/smart_contracts/introduction.md8
4 files changed, 13 insertions, 10 deletions
diff --git a/packages/website/md/docs/0xjs/async.md b/packages/website/md/docs/0xjs/async.md
index 63924c76c..8abaef331 100644
--- a/packages/website/md/docs/0xjs/async.md
+++ b/packages/website/md/docs/0xjs/async.md
@@ -1,6 +1,7 @@
0x.js is a promise-based library. This means that whenever an asynchronous call is required, the library method will return a native Javascript promise. You can therefore choose between using `promise` or `async/await` syntax when calling our async methods.
-*Async/await syntax (recommended):*
+_Async/await syntax (recommended):_
+
```javascript
try {
var availableAddresses = await zeroEx.getAvailableAddressesAsync();
@@ -9,9 +10,11 @@ try {
}
```
-*Promise syntax:*
+_Promise syntax:_
+
```javascript
-zeroEx.getAvailableAddressesAsync()
+zeroEx
+ .getAvailableAddressesAsync()
.then(function(availableAddresses) {
console.log(availableAddresses);
})
diff --git a/packages/website/md/docs/0xjs/installation.md b/packages/website/md/docs/0xjs/installation.md
index 457b27a04..5f5c9137e 100644
--- a/packages/website/md/docs/0xjs/installation.md
+++ b/packages/website/md/docs/0xjs/installation.md
@@ -1,6 +1,6 @@
0x.js ships as both a [UMD](https://github.com/umdjs/umd) module and a [CommonJS](https://en.wikipedia.org/wiki/CommonJS) package.
-#### CommonJS *(recommended)*:
+#### CommonJS _(recommended)_:
**Install**
@@ -11,7 +11,7 @@ npm install 0x.js --save
**Import**
```javascript
-import {ZeroEx} from '0x.js';
+import { ZeroEx } from '0x.js';
```
#### UMD:
diff --git a/packages/website/md/docs/connect/installation.md b/packages/website/md/docs/connect/installation.md
index b14bc1b52..184fa6e0d 100644
--- a/packages/website/md/docs/connect/installation.md
+++ b/packages/website/md/docs/connect/installation.md
@@ -7,7 +7,7 @@ npm install @0xproject/connect --save
**Import**
```javascript
-import {HttpClient} from '@0xproject/connect';
+import { HttpClient } from '@0xproject/connect';
```
### Wiki
diff --git a/packages/website/md/docs/smart_contracts/introduction.md b/packages/website/md/docs/smart_contracts/introduction.md
index 406177f84..20396289b 100644
--- a/packages/website/md/docs/smart_contracts/introduction.md
+++ b/packages/website/md/docs/smart_contracts/introduction.md
@@ -2,7 +2,7 @@ Welcome to the [0x smart contracts](https://github.com/0xProject/contracts) docu
### Helpful wiki articles:
-- [Overview of 0x protocol architecture](https://0xproject.com/wiki#Architecture)
-- [0x smart contract interactions](https://0xproject.com/wiki#Contract-Interactions)
-- [Deployed smart contract addresses](https://0xproject.com/wiki#Deployed-Addresses)
-- [0x protocol message format](https://0xproject.com/wiki#Message-Format)
+* [Overview of 0x protocol architecture](https://0xproject.com/wiki#Architecture)
+* [0x smart contract interactions](https://0xproject.com/wiki#Contract-Interactions)
+* [Deployed smart contract addresses](https://0xproject.com/wiki#Deployed-Addresses)
+* [0x protocol message format](https://0xproject.com/wiki#Message-Format)