Skip to content
Snippets Groups Projects
Commit 7d9be352 authored by matograine's avatar matograine
Browse files

enhance README.md with new script abilities

parent 583a3ff0
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,13 @@ Pour construire un site ViĞnette avec ses traductions, on exécute le script de ...@@ -21,6 +21,13 @@ Pour construire un site ViĞnette avec ses traductions, on exécute le script de
`python3 build.py` `python3 build.py`
On peut lui passer de zéro à deux arguments :
`python3 build.py <url_orientation> <default_lang>`
- `url_orientation` peut être "horizontal", "vertical" ou "none". La valeur par défaut est "horizontal". Il définit l'orientation de l'URL sur les ViGnettes.
- `default_lang` va automatiquement créer une page par défaut dans la langue indiquée. Il doit correspondre à une des langues présentes dans i18n.
## Traduction ## Traduction
Les fichiers de traduction doivent se trouver dans `i18n` suivant ce schéma: Les fichiers de traduction doivent se trouver dans `i18n` suivant ce schéma:
...@@ -56,6 +63,14 @@ To build the site with the translations : ...@@ -56,6 +63,14 @@ To build the site with the translations :
`python3 build.py` `python3 build.py`
It takes zero to two arguments:
`python3 build.py <url_orientation> <default_lang>`
- `url_orientation` can be "horizontal", "vertical" or "none". Default is "horizontal". It rules the orientation of URL on vignettes.
- `default_lang` will automatically create a homepage in given language. It must match one lang existing in i18n.
## Translation ## Translation
Translation files must be located in dir `i18n` and follow this schema: Translation files must be located in dir `i18n` and follow this schema:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment