-
Notifications
You must be signed in to change notification settings - Fork 19
/
genbash.nim
63 lines (59 loc) · 1.04 KB
/
genbash.nim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import std/strutils
const
css = """
adoc.css
adoc-colony.css
adoc-foundation.css
adoc-foundation-lime.css
adoc-foundation-potion.css
adoc-github.css
adoc-golo.css
adoc-iconic.css
adoc-maker.css
adoc-readthedocs.css
adoc-riak.css
adoc-rocket-panda.css
adoc-rubygems.css
asciidoc-classic.css
asciidoctor.css
boot-cerulean.css
boot-cosmo.css
boot-cyborg.css
boot-darkly.css
boot-flatly.css
boot-journal.css
boot-lumen.css
boot-paper.css
boot-readable.css
boot-sandstone.css
boot-slate.css
boot-spacelab.css
boot-superhero.css
boot-yeti.css
clean.css
dark.css
fedora.css
gazette.css
italian-pop.css
material-amber.css
material-blue.css
material-brown.css
material-green.css
material-grey.css
material-orange.css
material-pink.css
material-purple.css
material-red.css
material-teal.css
medium.css
monospace.css
notebook.css
plain.css
template.css
tufte.css
ubuntu.css"""
com = """
~/bin/asciidoctor -D output -a rouge-style=molokai -a stylesheet=css/$1 -o nimprogramming_$2.html nimprogramming.adoc"""
for s in css.split:
let n = s[0 .. ^5]
echo com % [s, n]