* fix: Fixes #204. Adds coloured syntax highlighting to TypeDoc code examples * Add Gitbook plugin Sunlight Highlighter https://www.npmjs.com/package/gitbook-plugin-sunlight-highlighter * Still requires use of <BR> HTML element to shift code onto a new line * Example use of Sunlight Highlighter from their README `javascript+theme:gitbook+lineNumbers:true+lineNumberStart:100` (in this example it uses their gitbook theme with line numbers shown and line numbers starting from 100) * Updated book.json to add the Sunlight Highlighter plugin, and explicitely configured it to use the gitbook theme by default * Enable showing line numbers only on TypeDoc example code that is longer (i.e. 8 lines long) * fix: Remove unnecessary inline config for no line numbers since is default * fix: Remove use of line numbers so consistent with the rest
This commit is contained in:
@@ -26,13 +26,15 @@ type CachedMap = {
|
||||
* @description It allows wrapping API components with observables using RxJS.
|
||||
*
|
||||
* @example
|
||||
* <BR><PRE><CODE>
|
||||
* <BR>
|
||||
*
|
||||
* ```javascript
|
||||
* import RxApi from '@polkadot/api';
|
||||
* import WsProvider from '@polkadot/api-provider/ws';
|
||||
* <BR>
|
||||
*
|
||||
* const provider = new WsProvider('http://127.0.0.1:9944');
|
||||
* const rxapi = new RxApi(provider);
|
||||
* </CODE></PRE>
|
||||
* ```
|
||||
*/
|
||||
export default class RxApi implements RxApiInterface {
|
||||
private _api: ApiInterface;
|
||||
|
||||
Reference in New Issue
Block a user