From f4f3438b3afaef346aba092954949ddab4f2d2f6 Mon Sep 17 00:00:00 2001 From: richelbilderbeek Date: Fri, 3 Jan 2025 13:31:21 +0100 Subject: [PATCH] Script to remove all pagebreaks, #7 --- .github/workflows/create_website.yaml | 3 +++ docs/boecker/README.md | 13 ++++++++++++- scripts/remove_all_pagebreaks.sh | 2 ++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 scripts/remove_all_pagebreaks.sh diff --git a/.github/workflows/create_website.yaml b/.github/workflows/create_website.yaml index d260db8..9146439 100644 --- a/.github/workflows/create_website.yaml +++ b/.github/workflows/create_website.yaml @@ -17,5 +17,8 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt natsort + - name: remove all pagebreaks + run: ./scripts/remove_all_pagebreaks.sh + - name: Render HTML run: mkdocs gh-deploy --force diff --git a/docs/boecker/README.md b/docs/boecker/README.md index 0161bd5..da2e4bc 100644 --- a/docs/boecker/README.md +++ b/docs/boecker/README.md @@ -1,7 +1,18 @@ # Boecker -Kapittel|Bok |Haefte +## Lektionskort 1 + +Nummer |Bok |Häfte --------|--------------|----------------- 1 |[1](bok_1.pdf)|[1](haefte_1.pdf) 2 |[2](bok_2.pdf)|[2](haefte_2.pdf) +3 |[3](bok_3.pdf)|[2](haefte_3.pdf) +4 |[4](bok_4.pdf)|[2](haefte_4.pdf) +5 |[5](bok_5.pdf)|[2](haefte_5.pdf) +6 |[6](bok_6.pdf)|[2](haefte_6.pdf) +7 |[7](bok_7.pdf)|[2](haefte_7.pdf) +8 |[8](bok_8.pdf)|[2](haefte_8.pdf) + +## Lektionskort 2 +Ingen ännu. diff --git a/scripts/remove_all_pagebreaks.sh b/scripts/remove_all_pagebreaks.sh new file mode 100755 index 0000000..5e49011 --- /dev/null +++ b/scripts/remove_all_pagebreaks.sh @@ -0,0 +1,2 @@ +#!/bin/bash +find . -name "*.md" -type f | xargs sed -i -e '/\pagebreak/d'