feat: Fixes #210. Add Mermaid.js Gitbook plugin. Generate API flow diagram (#211)

* feat: Add Mermaid.js Gitbook plugin. Generate API flow diagram

* fix: Remove HTTP from diagram. Change text to funnel user to WS
This commit is contained in:
Luke Schoen
2018-10-10 13:16:36 +02:00
committed by Jaco Greeff
parent af10c69d2b
commit bba764bd28
3 changed files with 10 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@
"gitbook": ">=2.4.0",
"plugins": [
"include-codeblock",
"mermaid-gb3",
"-highlight",
"sunlight-highlighter"
],
+1
View File
@@ -26,6 +26,7 @@
},
"dependencies": {
"gitbook-plugin-include-codeblock": "^3.2.2",
"gitbook-plugin-mermaid-gb3": "^2.1.0",
"gitbook-plugin-sunlight-highlighter": "^0.4.3"
}
}
+8
View File
@@ -18,6 +18,14 @@ import isFunction from '@polkadot/util/is/function';
* @name Rpc
* @summary The API may use a HTTP or WebSockets provider.
* @description It allows for querying a Polkadot Client Node.
* WebSockets provider is recommended since HTTP provider only supports basic querying.
*
* ```mermaid
* graph LR;
* A[Api] --> |WebSockets| B[WsProvider];
* B --> |endpoint| C[ws://127.0.0.1:9944]
* ```
*
* @example
* <BR>
*