Skip to content

Commit

Permalink
feat: Inipi
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Aug 18, 2024
1 parent e059ca1 commit 8209212
Show file tree
Hide file tree
Showing 13 changed files with 158 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.jpg filter=lfs diff=lfs merge=lfs -text
*.opus filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.svg filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
25 changes: 20 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,43 @@
#!/bin/bash
set -eu

DST_DEV='_live'
DST_PROD='luma'
SRC_DIR='sources'
DST_DIR='luma'

copy_audio_files() {
local dest
local folder

dest="${1}"
folder="${2}"
mkdir -pv "${dest}/${folder}/audio"
cp -rv "${SRC_DIR}/${folder}/audio/" "${dest}/${folder}/"
}

dev_live() {
[ -d '_live' ] && /bin/rm -rv '_live'
[ -d "${DST_DEV}" ] && /bin/rm -rv "${DST_DEV}"

copy_audio_files "${DST_DEV}" 'inipi'

python -m sphinx_autobuild \
--host '0.0.0.0' \
--open-browser \
"${SRC_DIR}" \
'_live'
"${DST_DEV}"
}

build_blog() {
[ -d "${DST_DIR}" ] && /bin/rm -rv "${DST_DIR}"
[ -d "${DST_PROD}" ] && /bin/rm -rv "${DST_PROD}"

copy_audio_files "${DST_PROD}" 'inipi'

python -m sphinx \
'build' \
-E \
--color \
"${SRC_DIR}" \
"${DST_DIR}"
"${DST_PROD}"

python minify.py
}
Expand Down
3 changes: 3 additions & 0 deletions minify.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
"copybutton",
"togglebutton",
"sphinx_contributors",
"sphinx-design.min",
"tabs",
"custom",
]
JS_FILES = [
"design-tabs",
"documentation_options",
"doctools",
"sphinx_highlight",
Expand All @@ -45,6 +47,7 @@
"genindex.html",
"objects.inv",
"_sources",
"_sphinx_design_static",
"_static/base-stemmer.js",
"_static/basic.css",
"_static/check-solid.svg",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ shibuya==2024.7.13
sphinx==8.0.2
sphinx-contributors==0.2.7
sphinx-copybutton==0.5.2
# sphinx-design==0.5.0
sphinx-design==0.6.1
sphinx-last-updated-by-git==0.3.8
sphinx-notfound-page==1.0.4
sphinx-tabs==3.4.5
Expand Down
6 changes: 6 additions & 0 deletions sources/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ section#base-de-connaissances-du-luma h1 {

.sphinx-contributors p {
margin: 0;
}

@media print {
.no-print {
display: none
}
}
2 changes: 1 addition & 1 deletion sources/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"sphinx_copybutton",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
# "sphinx_design",
"sphinx_design",
"sphinx_last_updated_by_git",
"notfound.extension",
"sphinx_tabs.tabs",
Expand Down
6 changes: 6 additions & 0 deletions sources/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ Base de Connaissances du `Luma`_

linux/*

.. toctree::
:caption: 🦅 Inipi, le Chant de la Terre
:glob:

inipi/*

.. toctree::
:caption: 🎮 Jeux-Vidéos
:glob:
Expand Down
31 changes: 31 additions & 0 deletions sources/inipi/_note-lakota.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
```{figure} images/arbre-rouge.png
:width: 96
:alt: L'arbre rouge
:align: center
Site web : [larbrerouge.org](https://www.larbrerouge.org)
```

`````{admonition} Notes à propos de la prononciation
:class: toggle
Dans l'usage des dictonnaires *lakota* modernes, la prononciation s'entend comme suit :
````{grid} 2
```{grid-item}
- **c** comme "tch"
- **ġ** comme "dj"
- **ḣ** comme "r"
```
```{grid-item}
- **ǩ** comme "cr"
- **š** comme "ch"
- **ṫ** comme "tr"
```
````
Les femmes prononcent les finales **o** en "é", exemples : *ce'kiyay**o*** → *ce'kiyay**e***, *yankel**o*** → *yankel**e***.<br>
`````
Git LFS file not shown
Git LFS file not shown
3 changes: 3 additions & 0 deletions sources/inipi/images/arbre-rouge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions sources/inipi/nation-bison-avance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
layout: simple
---

# La Nation Bison s'avance…

<figure class="no-print">
<figcaption>Version chantée par Archie Fire Lame Deer</figcaption>
<audio controls preload="none" src="audio/archie_fire_lame_deer-la-nation-bison-s-avance.opus"></audio>
</figure>

```{pull-quote}
Tȧtanka wa ma'niye *<small>(x3)</small>*<br>
Ate heyel**o**, Ate heyel**o**<br>
Canunpa wan ci cupi ca<br>
yanipi ktel**o**<br>
Ate heyel**o**, Ate heyel**o**
Tȧtanka wa ma'niye *<small>(x2)</small>*<br>
Ate heyel**o**, Ate heyel**o**<br>
Canunpa wan ci cupi ca<br>
yanipi ktel**o**<br>
Ate heyel**o**, Ate heyel**o**
Tȧtanka wa ma'niye *<small>(x2)</small>*<br>
Ate heyel**o**, Ate heyel**o**<br>
Mako'ce wan waste ci cupi ca<br>
yanipi ktel**o**<br>
Ate heyel**o**, Ate heyel**o**
-- Enseignement d'Archie Fire Lame Deer
```

```{include} _note-lakota.md
```
44 changes: 44 additions & 0 deletions sources/inipi/priere-aux-quatre-directions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
layout: simple
---

# La prière aux quatre directions ou le chant de la Sweat Lodge des femmes

<figure class="no-print">
<figcaption>Version chantée par Archie Fire Lame Deer</figcaption>
<audio controls preload="none" src="audio/archie_fire_lame_deer-priere-aux-quatre-directions.opus"></audio>
</figure>

```{pull-quote}
Ce'kiyay**o**, ce'kiyay**o**<br>
ahi'tonwan yanke<br>
oha e **o**…
Wiyoḣpetakiyahe tonwanyo *(<small>Ouest</small>)*<br>
&nbsp;&nbsp;&nbsp; *<small>(corps à répéter après chaque direction)</small>*<br>
&nbsp;&nbsp;&nbsp; ni Ṫunkăsila<br>
&nbsp;&nbsp;&nbsp; ahi'tonwan yankel**o**<br>
&nbsp;&nbsp;&nbsp; ce'kiyay**o**, ce'kiyay**o**<br>
&nbsp;&nbsp;&nbsp; ahi'tonwan yanke<br>
&nbsp;&nbsp;&nbsp; oha e **o**…
Waziyatakiyahe tonwanyo *(<small>Nord</small>)*<br>
&nbsp;&nbsp;&nbsp;&nbsp;…
Iwiyohiyanpatakiyahe tonwanyo *(<small>Est</small>)*<br>
&nbsp;&nbsp;&nbsp;&nbsp;…
Itokanatakiyahe tonwanyo *(<small>Sud</small>)*<br>
&nbsp;&nbsp;&nbsp;&nbsp;…
Wakăntakiyahe tonwanyo *(<small>Ciel</small>)*<br>
&nbsp;&nbsp;&nbsp;&nbsp;…
Makătakiyahe tonwanyo *(<small>Terre</small>)*<br>
&nbsp;&nbsp;&nbsp;&nbsp;…
-- Enseignement d'Archie Fire Lame Deer
```

```{include} _note-lakota.md
```

0 comments on commit 8209212

Please sign in to comment.