mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-21 21:50:43 -06:00
noop changes
This commit is contained in:
parent
198250d7e8
commit
8aade59df9
1 changed files with 5 additions and 6 deletions
|
@ -20,7 +20,7 @@ def convert [] {
|
|||
}
|
||||
}
|
||||
|
||||
def nix [] {
|
||||
def nix-file [] {
|
||||
let rune = $in | convert
|
||||
$"{
|
||||
braille = ''
|
||||
|
@ -34,8 +34,7 @@ ascii = ''
|
|||
}
|
||||
|
||||
def col [] {
|
||||
$in
|
||||
| reduce --fold "" {|it, acc|
|
||||
$in | reduce --fold "" {|it, acc|
|
||||
$acc + $'<td><img src="($it.url)"></td>'
|
||||
}
|
||||
}
|
||||
|
@ -45,7 +44,7 @@ def row [] { $"<tr>($in)</tr>" }
|
|||
def readme [] {
|
||||
let runes = $in
|
||||
let dims = { rows: 2 cols: 2 }
|
||||
let cells = ($runes | chunks $dims.rows | each { $in | col | row})
|
||||
let cells = ($runes | chunks $dims.rows | each { col | row})
|
||||
let table = [ "<table>" ...$cells "</table>" ] | str join
|
||||
|
||||
$"# Runes\n\n($table)\n"
|
||||
|
@ -56,7 +55,7 @@ $runes
|
|||
| save -f "README.md"
|
||||
|
||||
$runes
|
||||
| each {|rune| $rune | nix }
|
||||
| each { nix-file }
|
||||
|
||||
|
||||
print "don't forget to run `nix fmt`!"
|
||||
nix fmt
|
||||
|
|
Loading…
Reference in a new issue