From e8bf1a227ed5d657e7693d57a855d6892a070ec8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 22 Sep 2020 14:47:35 +0200 Subject: [PATCH] Use cmojify --- .github/workflows/build.yml | 11 ++--------- scripts/mdr2mdbook.sh | 3 ++- scripts/update.sh | 1 + 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8274cb86..7494ffe2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,26 +18,19 @@ jobs: - name: Dependencies run: bash scripts/update.sh - - uses: fennecdjay/emojify-docker-action@v2 - name: Emojify - with: - directory: 'docs' - - name: MdBook uses: peaceiris/actions-mdbook@v1 with: mdbook-version: 'latest' - - name: Get becnhmarks + - name: Get benchmarks run: | git submodule update --init gwion-benchmark cd gwion-benchmark git pull origin results - name: Build book - run: | - export PATH=$PWD:$PATH - make build + run: PATH=$PWD:$PATH make build - name: GIT things run: | diff --git a/scripts/mdr2mdbook.sh b/scripts/mdr2mdbook.sh index cc47c1d0..453b4934 100644 --- a/scripts/mdr2mdbook.sh +++ b/scripts/mdr2mdbook.sh @@ -11,7 +11,8 @@ EOF } mk_target() { - sed 's/```.*gw/```cpp/' $1 | + cmojify "$(cat $1)" | + sed 's/```.*gw/```cpp/' | sed 's#:gwion:#[Gwion](https://github.com/fennecdjay/Gwion)#g' footer } diff --git a/scripts/update.sh b/scripts/update.sh index 03e7d598..c28a2d71 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -17,3 +17,4 @@ update() { update fennecdjay Gwion update fennecdjay mdr +update fennecdjay cmojify -- 2.43.0