words/utils: render wordlist as a table
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Cadey Ratio 2020-05-25 17:22:56 -04:00
parent 68f648c66f
commit 8604b67e26
3 changed files with 6 additions and 16 deletions

View File

@ -3,12 +3,6 @@ let ContentWord = ../types/ContentWord.dhall
let render
: ContentWord.Type → Text
= λ(word : ContentWord.Type) →
''
### ${word.word}
*${word.gloss}*
${word.definition}
''
"| ${word.word} | ${word.gloss} | ${word.definition} |"
in render

View File

@ -22,9 +22,13 @@ in ''
## Root Words
| L'ewa | gloss | English |
|:----- |:----- |:------- |
${contentWords dictionary.rootWords}
## Particles
| L'ewa | family | gloss | English |
|:----- |:------ |:----- |:------- |
${particleWords dictionary.particles}
''

View File

@ -3,14 +3,6 @@ let ParticleWord = ../types/ParticleWord.dhall
let render
: ParticleWord.Type → Text
= λ(word : ParticleWord.Type) →
''
### ${word.word}
family: ${word.family}
*${word.gloss}*
${word.definition}
''
"| ${word.word} | ${word.family} | ${word.gloss} | ${word.definition} |"
in render