* 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:
@@ -3,6 +3,7 @@
|
||||
"gitbook": ">=2.4.0",
|
||||
"plugins": [
|
||||
"include-codeblock",
|
||||
"mermaid-gb3",
|
||||
"-highlight",
|
||||
"sunlight-highlighter"
|
||||
],
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user