mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 14:22:33 +00:00
add book ci script
This commit is contained in:
parent
2991099daa
commit
797f5c1e5e
17
.github/ci/book.sh
vendored
Normal file
17
.github/ci/book.sh
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
## on push branch=main
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
make -C docs
|
||||
|
||||
export KUBECONFIG=/ci/secrets/kubeconfig.yml
|
||||
POD=$(kubectl -n embassy get po -l app=website -o jsonpath={.items[0].metadata.name})
|
||||
|
||||
mkdir -p build
|
||||
mv docs/book build/book
|
||||
tar -C build -cf book.tar book
|
||||
kubectl exec $POD -- mkdir -p /usr/share/nginx/html
|
||||
kubectl cp book.tar $POD:/usr/share/nginx/html/
|
||||
kubectl exec $POD -- find /usr/share/nginx/html
|
||||
kubectl exec $POD -- tar -C /usr/share/nginx/html -xvf /usr/share/nginx/html/book.tar
|
@ -1,8 +1,8 @@
|
||||
all:
|
||||
asciidoctor -d book -D thebook/ index.adoc
|
||||
cp -r images thebook
|
||||
asciidoctor -d book -D book/ index.adoc
|
||||
cp -r images book
|
||||
|
||||
clean:
|
||||
rm -rf thebook
|
||||
rm -rf book
|
||||
|
||||
.PHONY: all clean
|
||||
|
@ -10,8 +10,8 @@ Here are known examples of real-world projects which make use of Embassy. Feel f
|
||||
* link:https://github.com/card-io-ecg/card-io-fw[Card/IO firmware] - firmware for an open source ECG device
|
||||
** Targets the ESP32-S3 or ESP32-C6 MCU
|
||||
* 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
|
||||
** link:https://github.com/matoushybl/air-force-one[Air force one: A simple air quality monitoring system]
|
||||
*** Targets nRF52 and uses nrf-softdevice
|
||||
* link:https://github.com/matoushybl/air-force-one[Air force one: A simple air quality monitoring system]
|
||||
** Targets nRF52 and uses nrf-softdevice
|
||||
|
||||
* 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
|
||||
firmware (RP2040, STM32) for capturing physiological data in behavioural science research. Included so far are:
|
||||
|
Loading…
Reference in New Issue
Block a user