Skip to content

Commit

Permalink
Script to remove all pagebreaks, #7
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Jan 3, 2025
1 parent da579e0 commit f4f3438
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/create_website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 12 additions & 1 deletion docs/boecker/README.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 2 additions & 0 deletions scripts/remove_all_pagebreaks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
find . -name "*.md" -type f | xargs sed -i -e '/\pagebreak/d'

0 comments on commit f4f3438

Please sign in to comment.