aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/ci/book.sh17
-rw-r--r--docs/Makefile6
-rw-r--r--docs/pages/embassy_in_the_wild.adoc4
3 files changed, 22 insertions, 5 deletions
diff --git a/.github/ci/book.sh b/.github/ci/book.sh
new file mode 100644
index 000000000..285cdc8fa
--- /dev/null
+++ b/.github/ci/book.sh
@@ -0,0 +1,17 @@
1#!/bin/bash
2## on push branch=main
3
4set -euxo pipefail
5
6make -C docs
7
8export KUBECONFIG=/ci/secrets/kubeconfig.yml
9POD=$(kubectl -n embassy get po -l app=website -o jsonpath={.items[0].metadata.name})
10
11mkdir -p build
12mv docs/book build/book
13tar -C build -cf book.tar book
14kubectl exec $POD -- mkdir -p /usr/share/nginx/html
15kubectl cp book.tar $POD:/usr/share/nginx/html/
16kubectl exec $POD -- find /usr/share/nginx/html
17kubectl exec $POD -- tar -C /usr/share/nginx/html -xvf /usr/share/nginx/html/book.tar
diff --git a/docs/Makefile b/docs/Makefile
index eadcf2370..834802d3b 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -1,8 +1,8 @@
1all: 1all:
2 asciidoctor -d book -D thebook/ index.adoc 2 asciidoctor -d book -D book/ index.adoc
3 cp -r images thebook 3 cp -r images book
4 4
5clean: 5clean:
6 rm -rf thebook 6 rm -rf book
7 7
8.PHONY: all clean 8.PHONY: all clean
diff --git a/docs/pages/embassy_in_the_wild.adoc b/docs/pages/embassy_in_the_wild.adoc
index a7d63f990..93ff58146 100644
--- a/docs/pages/embassy_in_the_wild.adoc
+++ b/docs/pages/embassy_in_the_wild.adoc
@@ -10,8 +10,8 @@ Here are known examples of real-world projects which make use of Embassy. Feel f
10* link:https://github.com/card-io-ecg/card-io-fw[Card/IO firmware] - firmware for an open source ECG device 10* link:https://github.com/card-io-ecg/card-io-fw[Card/IO firmware] - firmware for an open source ECG device
11** Targets the ESP32-S3 or ESP32-C6 MCU 11** Targets the ESP32-S3 or ESP32-C6 MCU
12* The link:https://github.com/lora-rs/lora-rs[lora-rs] project includes link:https://github.com/lora-rs/lora-rs/tree/main/examples/stm32l0/src/bin[various standalone examples] for NRF52840, RP2040, STM32L0 and STM32WL 12* The link:https://github.com/lora-rs/lora-rs[lora-rs] project includes link:https://github.com/lora-rs/lora-rs/tree/main/examples/stm32l0/src/bin[various standalone examples] for NRF52840, RP2040, STM32L0 and STM32WL
13** link:https://github.com/matoushybl/air-force-one[Air force one: A simple air quality monitoring system] 13* link:https://github.com/matoushybl/air-force-one[Air force one: A simple air quality monitoring system]
14*** Targets nRF52 and uses nrf-softdevice 14** Targets nRF52 and uses nrf-softdevice
15 15
16* link:https://github.com/schmettow/ylab-edge-go[YLab Edge Go] and link:https://github.com/schmettow/ylab-edge-pro[YLab Edge Pro] projects develop 16* link:https://github.com/schmettow/ylab-edge-go[YLab Edge Go] and link:https://github.com/schmettow/ylab-edge-pro[YLab Edge Pro] projects develop
17firmware (RP2040, STM32) for capturing physiological data in behavioural science research. Included so far are: 17firmware (RP2040, STM32) for capturing physiological data in behavioural science research. Included so far are: