-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI for checking markdown format. (#76)
Signed-off-by: ChenYing Kuo <[email protected]>
- Loading branch information
Showing
7 changed files
with
87 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"MD013": false, # Line length limitation | ||
"MD033": false, # Enable Inline HTML | ||
"MD041": false, # Allow first line heading | ||
"MD045": false, # Allow Images have no alternate text | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ Check the website [zenoh.io](http://zenoh.io) and the [roadmap](https://github.c | |
|
||
# Typescript/Javascript API | ||
|
||
This repository provides a Typscript / Javascript binding through the use of the `remote-api-plugin` in this repo. | ||
This repository provides a Typscript / Javascript binding through the use of the `remote-api-plugin` in this repo. | ||
The long term plan is to use zenoh [Zenoh written in Rust](https://github.com/eclipse-zenoh/zenoh) to target WASM. | ||
In its current state, it is not possible to compile Zenoh (Rust) to target WASM, and will need to undergo a fair amount of refactoring before that can happen. | ||
|
||
|
@@ -27,38 +27,34 @@ In its current state, it is not possible to compile Zenoh (Rust) to target WASM, | |
|
||
> :warning: **WARNING** :warning: : Zenoh and its ecosystem are under active development. When you build from git, make sure you also build from git any other Zenoh repository you plan to use (e.g. binding, plugin, backend, etc.). It may happen that some changes in git are not compatible with the most recent packaged Zenoh release (e.g. deb, docker, pip). We put particular effort in maintaining compatibility between the various git repositories in the Zenoh project. | ||
1. Make sure that the following utilities are available on your platform. | ||
- [NPM](https://www.npmjs.com/package/npm) | ||
- [yarn](https://classic.yarnpkg.com/lang/en/docs/install/#debian-stable) | ||
- [Typescript](https://www.typescriptlang.org/download/) | ||
1. Make sure that the following utilities are available on your platform. | ||
|
||
- [NPM](https://www.npmjs.com/package/npm) | ||
- [yarn](https://classic.yarnpkg.com/lang/en/docs/install/#debian-stable) | ||
- [Typescript](https://www.typescriptlang.org/download/) | ||
|
||
2. Navigate to the directory `zenoh-ts` | ||
|
||
3. Run the commands: | ||
|
||
```bash | ||
yarn install | ||
# | ||
yarn run build | ||
yarn install | ||
yarn run build | ||
``` | ||
|
||
## Adding Typescript to your application | ||
|
||
The TypeScript library can be install from the command line: | ||
The TypeScript library can be install from the command line: | ||
|
||
`npm install @eclipse-zenoh/[email protected]` | ||
|
||
Or added via package.json | ||
|
||
`"@eclipse-zenoh/zenoh-ts": "0.0.8" ` | ||
`"@eclipse-zenoh/zenoh-ts": "0.0.8"` | ||
|
||
Note: In order to add this library to your project you must log into the github npm repository, | ||
please refer to this link for more information [Accessing github NPM](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-with-a-personal-access-token) | ||
|
||
|
||
[zenoh]: https://github.com/eclipse-zenoh/zenoh | ||
|
||
|
||
## Generating Documentation | ||
|
||
1. Make sure that the [typedoc](https://typedoc.org/) dependency is installed. | ||
|
@@ -68,7 +64,7 @@ please refer to this link for more information [Accessing github NPM](https://do | |
3. Run the commands: | ||
|
||
```bash | ||
npx typedoc src/index.ts | ||
npx typedoc src/index.ts | ||
``` | ||
|
||
## Build + run the examples | ||
|
@@ -77,26 +73,27 @@ The most simple way to run examples is to install [deno](https://deno.com/), and | |
|
||
1. Install [deno](https://deno.com/) | ||
2. Navigate to the `/zenoh-ts/examples` directory | ||
3. Install `zenoh-ts` library by running `yarn install` | ||
3. Install `zenoh-ts` library by running `yarn install` | ||
4. Start a `zenohd` instance with the Remote API plugin running `zenohd --config EXAMPLE CONFIG.json` | ||
```json | ||
{ | ||
mode: 'router', | ||
plugins_loading: { | ||
enabled: true, | ||
search_dirs: ['./target/debug', '~/.zenoh/lib'] | ||
}, | ||
plugins: { | ||
remote_api: { | ||
websocket_port: '10000', | ||
|
||
```json | ||
{ | ||
mode: 'router', | ||
plugins_loading: { | ||
enabled: true, | ||
search_dirs: ['./target/debug', '~/.zenoh/lib'] | ||
}, | ||
plugins: { | ||
remote_api: { | ||
websocket_port: '10000', | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
``` | ||
|
||
5. Then run the examples by running `yarn run <PATH TO EXAMPLE>`, i.e. `yarn example src/z_sub.ts` | ||
|
||
This will start an instance of Deno running the example. | ||
The application will attempt to connect to a `websocket_port` : `10000` where the Remote API plugin is expected to be running. | ||
The javascript runtime [deno](https://deno.com/) is expected be consistent with the browser. | ||
Note: This library does not support NodeJS | ||
|
||
The javascript runtime [deno](https://deno.com/) is expected be consistent with the browser. | ||
Note: This library does not support NodeJS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters