Skip to content

Commit 58f992b

Browse files
committed
Vibecode
1 parent 31020ca commit 58f992b

16 files changed

Lines changed: 59307 additions & 50932 deletions

.github/workflows/deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'output/webapp/index.html'
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
19+
jobs:
20+
deploy:
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Setup Pages
30+
uses: actions/configure-pages@v4
31+
32+
- name: Prepare deployment
33+
run: |
34+
mkdir -p _site
35+
cp output/webapp/index.html _site/index.html
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: '_site'
41+
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4

README.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
1-
# 24ri
1+
# 24ri
2+
3+
Historique du 24e Régiment d'Infanterie (1914-1918) - Visualisation interactive sur carte.
4+
5+
## Installation
6+
7+
```bash
8+
python3 -m venv .venv
9+
source .venv/bin/activate
10+
pip install -r requirements.txt
11+
```
12+
13+
## Commandes
14+
15+
### Geocodage des lieux
16+
17+
Applique les corrections depuis `output/corrections/places_corrections.yaml` et géocode les lieux:
18+
19+
```bash
20+
source .venv/bin/activate
21+
python src/geocode_places.py
22+
```
23+
24+
### Génération des pages web
25+
26+
Génère `index.html` et `debug.html` dans `output/webapp/`:
27+
28+
```bash
29+
source .venv/bin/activate
30+
python src/generate_webpage.py
31+
```
32+
33+
## Notes
34+
35+
- pour les dates, elles sont uniques par phrase i.e. 30 peut correspondre à une
36+
date dans une phrase, mais pas dans une autre. Idem selon la phrase, le 25
37+
août peut faire référence à plusieurs années différentes.

output/chapters.json

Lines changed: 18155 additions & 17016 deletions
Large diffs are not rendered by default.

output/chapters_geocoded.json

Lines changed: 36917 additions & 33449 deletions
Large diffs are not rendered by default.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
add_mjhk1diq:
2+
original: "6 août 1914"
3+
correction: "OK"
4+
add_mjhk1wkp:
5+
original: "6 août 1914"
6+
correction: "OK"
7+
add_mjhk2hty:
8+
original: "Bernay (Eure)"
9+
correction: "OK"
10+
add_mjhk31sh:
11+
original: "Mézières"
12+
correction: "OK"
13+
add_mjhk5y34:
14+
original: "22"
15+
correction: "22 août 1914"
16+
add_mjhkd57k:
17+
original: "Origny-Sainte-Benoîte"
18+
correction: "OK"
19+
add_mjhkd9ow:
20+
original: "Origny-Sainte-Benoîte"
21+
correction: "OK"
22+
add_mjhkdmtk:
23+
original: "30"
24+
correction: "OK"
25+
add_mjhkk0ck:
26+
original: "rive sud de la Marne"
27+
correction: "OK"
28+
add_mjhkq3xg:
29+
original: "7 et du 8"
30+
correction: "OK"
31+
add_mjhkqbx9:
32+
original: "le 9"
33+
correction: "OK"
34+
add_mjhkqury:
35+
original: "Le 11"
36+
correction: "OK"
37+
add_mjhkr4vr:
38+
original: "le 12"
39+
correction: "OK"
40+
add_mjhktfrf:
41+
original: "15, 16, 17 et 18 septembre"
42+
correction: "OK"
43+
add_mjhl4d10:
44+
original: "route 44"
45+
correction: "OK"
46+
add_mjhl4q85:
47+
original: "21 et 22"
48+
correction: "OK"
49+
add_mjhlatwd:
50+
original: "Au soir"
51+
correction: "OK"
52+
add_mjhld1bp:
53+
original: "1er novembre"
54+
correction: "OK"
55+
add_mjhlfmvh:
56+
original: "Le soir même"
57+
correction: "OK"
58+
add_mjhlfum6:
59+
original: "la nuit et la journée du lendemain"
60+
correction: "OK"
61+
add_mjhlfzhh:
62+
original: "le 24"
63+
correction: "OK"
64+
add_mjhlhs0c:
65+
original: "Aix-Noulette"
66+
correction: "OK"
67+
add_mjhlizo4:
68+
original: "nuit du 13 au 14"
69+
correction: "OK"
70+
add_mjhljbas:
71+
original: "21"
72+
correction: "OK"
73+
add_mjhlod0r:
74+
original: "bois de la Folie"
75+
correction: "OK"
76+
add_mjhlpqmi:
77+
original: "17"
78+
correction: "OK"
79+
add_mjhlzqz4:
80+
original: "9 au 10"
81+
correction: "N/A"

0 commit comments

Comments
 (0)