noop changes

This commit is contained in:
Daylin Morgan 2024-08-08 11:58:30 -05:00
parent 198250d7e8
commit 8aade59df9
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -20,7 +20,7 @@ def convert [] {
} }
} }
def nix [] { def nix-file [] {
let rune = $in | convert let rune = $in | convert
$"{ $"{
braille = '' braille = ''
@ -34,8 +34,7 @@ ascii = ''
} }
def col [] { def col [] {
$in $in | reduce --fold "" {|it, acc|
| reduce --fold "" {|it, acc|
$acc + $'<td><img src="($it.url)"></td>' $acc + $'<td><img src="($it.url)"></td>'
} }
} }
@ -45,7 +44,7 @@ def row [] { $"<tr>($in)</tr>" }
def readme [] { def readme [] {
let runes = $in let runes = $in
let dims = { rows: 2 cols: 2 } 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 let table = [ "<table>" ...$cells "</table>" ] | str join
$"# Runes\n\n($table)\n" $"# Runes\n\n($table)\n"
@ -56,7 +55,7 @@ $runes
| save -f "README.md" | save -f "README.md"
$runes $runes
| each {|rune| $rune | nix } | each { nix-file }
print "don't forget to run `nix fmt`!" nix fmt