Add documentation and examples (#145)

* Add documentation

* Justification u8a decoding and json encoding (#146)

* Decode Justifications

* Json encoding for justifications

* Bump deps

* Allow extrinsic length encoding to operate on u8a[] (#148)

* Fix config and move generated doc to a subfolder

* Cleanup extrinsic encoding (#150)

* Cleanup extrinsic encoding

* Removed now-defunct type

* Add uncheckedLength encoding

* Add examples

* Ignore package-lock since we use yarn

* Cleanup examples

* Add gitbook config and some base files for the doc

* Do not make full doc mandatory for now

* Add contributing guide, polish doc and samples

* Update the deps of all samples and add yarn scripts
Fix and regenerate the doc

* Fix Contributing guide
This commit is contained in:
Chevdor
2018-09-15 09:11:56 +02:00
committed by Jaco Greeff
parent 7fffcb3747
commit 0981a30d84
61 changed files with 6937 additions and 105 deletions
+13 -11
View File
@@ -1,17 +1,19 @@
{
"extends": "./node_modules/@polkadot/dev/config/tsconfig",
"compilerOptions": {
"compilerOptions":
{
"baseUrl": ".",
"paths": {
"@polkadot/api-format/*": [ "packages/api-format/src/*" ],
"@polkadot/api-provider/*": [ "packages/api-provider/src/*" ],
"@polkadot/api-rx/*": [ "packages/api-rx/src/*" ],
"@polkadot/api/*": [ "packages/api/src/*" ],
"@polkadot/extrinsics/*": [ "packages/type-extrinsics/src/*" ],
"@polkadot/jsonrpc/*": [ "packages/type-jsonrpc/src/*" ],
"@polkadot/params/*": [ "packages/type-params/src/*" ],
"@polkadot/primitives/*": [ "packages/type-primitives/src/*" ],
"@polkadot/storage/*": [ "packages/type-storage/src/*" ],
"paths":
{
"@polkadot/api-format/*": ["packages/api-format/src/*"],
"@polkadot/api-provider/*": ["packages/api-provider/src/*"],
"@polkadot/api-rx/*": ["packages/api-rx/src/*"],
"@polkadot/api/*": ["packages/api/src/*"],
"@polkadot/extrinsics/*": ["packages/type-extrinsics/src/*"],
"@polkadot/jsonrpc/*": ["packages/type-jsonrpc/src/*"],
"@polkadot/params/*": ["packages/type-params/src/*"],
"@polkadot/primitives/*": ["packages/type-primitives/src/*"],
"@polkadot/storage/*": ["packages/type-storage/src/*"],
},
"typeRoots": [
"./node_modules/@polkadot/ts",