mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 01:50:44 -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
|
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
|
||||||
|
|
Loading…
Reference in a new issue