Skip to content

Commit a83f725

Browse files
authored
Npm docs setup (#834)
* added vuepress to package json * use vuepress from package json
1 parent a7575b2 commit a83f725

File tree

10 files changed

+10983
-132
lines changed

10 files changed

+10983
-132
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/setup-node@v1
2929
with:
3030
node-version: "14.x"
31-
- name: Install vuepress
32-
run: npm install -g vuepress
31+
- name: Install build dependencies
32+
run: npm install
3333
- name: Build documentation
3434
run: npm run docs:build

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
uses: actions/setup-node@v1
4949
with:
5050
node-version: "14.x"
51-
- name: Install vuepress
52-
run: npm install -g vuepress
51+
- name: Install build dependencies
52+
run: npm install
5353
- name: Set version tag from git
5454
run: sed -i "s/version_tag/${GITHUB_REF#refs/tags/}/g" docs/.vuepress/config.js
5555
- name: Build documentation

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.vscode
33
*_env.ini
44
**/.DS_Store
5+
node_modules

docs/prerequisites/board.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The boards below need hardware [parts](parts.md) and electronic/hardware compete
3636
|ESP32|X|X|X|X|not tested|X|X|
3737
|ESP8266|X|X|X|not tested|X|X|X|
3838

39-
::: INFO
39+
::: tip INFO
4040
Pilight is only supported on ESP, Arduino UNO handle only 32bits values in our context.
4141
Setup based on HM10 doesn't support some BLE [devices](devices.md#for-ble-devices).
4242
:::

docs/prerequisites/devices.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ OpenMQTTGateway is able to scan all the BLE devices that advertise their data so
3939

4040
Exhaustive list [here](https://compatible.openmqttgateway.com/index.php/devices/ble-devices/)
4141

42-
::: INFO
43-
(1) Not supported with HM10.
44-
(2) See https://github.com/atc1441/ATC_MiThermometer
42+
::: tip INFO
43+
- (1) Not supported with HM10.
44+
- (2) See https://github.com/atc1441/ATC_MiThermometer
4545
:::
4646

4747
![devices](../img/OpenMQTTGateway_devices_ble.png ':size=250%')

docs/prerequisites/parts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ Here is below the main parts reference.
1515
|SX1276|-|-|-|X|-|
1616
|A6/A7|-|-|-|-|X|
1717

18-
::: INFO
18+
::: tip INFO
1919
There is a wide range of parts available that may be compatible with OpenMQTTGateway, the ones [listed](https://compatible.openmqttgateway.com/index.php/parts/) are the ones tested and for which you can ask for support. Indeed for other parts we may not have it so as to reproduce the issue, or in the worst case they may not be compatible.
2020
:::

docs/use/actuators.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ So as to pilot the GPIO use the following commands with [simple receiving](../up
88
OFF command:
99
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF/setOFF -m 15`
1010

11-
ON command
11+
ON command:
1212
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF/setON -m 15`
1313

1414
or with [json receiving](../upload/pio.md#api)
1515

1616
OFF command:
1717
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"gpio":15,"cmd":0}'`
1818

19-
ON command
19+
ON command:
2020
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"gpio":15,"cmd":1}'`
2121

2222
## FASTLED
@@ -28,7 +28,7 @@ ON command
2828
2. Start fire animation (Fire2012)
2929

3030
### Hardware wiring
31-
Theoreticaly it should be possible to use every free IO pin. But after some tests only pin D2 works at WEMOS D1. Other platforms can work.
31+
Theoretically it should be possible to use every free IO pin. But after some tests only pin D2 works at WEMOS D1. Other platforms can work.
3232
The default setting use NEOPIXEL (WS2812B). The simplest wiring is direct connect D2 to data pin of LED stripe and connect VCC/GND to power source. You should also add an capacitor.
3333

3434
## PWM

docs/use/ble.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ you can also force a scan to be done by the following command:
8686
`mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/config -m '{"interval":0}'`
8787

8888
::: tip
89-
With Home Assistant, this command is directly avalaible through MQTT auto discovery as a switch into the HASS OpenMQTTGateway device entities list.
89+
With Home Assistant, this command is directly available through MQTT auto discovery as a switch into the HASS OpenMQTTGateway device entities list.
9090
:::
9191

9292
Once the forced scan has completed, the previous scan interval value will be restored. Forcing a scan command trigger also a BLE connect process after the scan (see below).
9393

9494
The default value `TimeBtwRead` is set into config_BT.h or into your .ini file for platformio users.
9595

96-
::: info
96+
::: tip INFO
9797
For certain devices like LYWSD03MMC OpenMQTTGateway use a connection (due to the fact that the advertized data are encrypted), this connection mechanism is launched after every `ScanBeforeConnect` per default, you can modify it by following the procedure below.
9898
:::
9999

0 commit comments

Comments
 (0)