Add kartellg & faster deploy
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 27m27s

This commit is contained in:
philipp 2024-10-17 16:01:10 +02:00
parent 0c2fc02464
commit 556017f553
2 changed files with 24 additions and 1 deletions

View File

@ -43,7 +43,7 @@ jobs:
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
scp ./output/* $SSH_USER@$SSH_HOST:/var/www/html/ris/
scp -C ./output/* $SSH_USER@$SSH_HOST:/var/www/html/ris/
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_HOST: ${{ secrets.SSH_HOST }}

23
laws/kartellg.toml Normal file
View File

@ -0,0 +1,23 @@
[law]
id = 20004174
name = "Kartellgesetz 2005"
[[law.classifiers]]
name = "Hauptstück"
is_root = true
match_function = "contains"
[[law.classifiers]]
name = "Abschnitt"
is_root = false
match_function = "contains"
[parser]
remove_strings = [
"<i>", "</i>"
]
[[parser.replace_rules]]
find = "<gdash />" # Should be at the same level as the other "Theil"e
replace_with = "-"