-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a248cf
commit 4945604
Showing
3 changed files
with
158 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#base16-aztec pre { white-space: pre-wrap; font-family: monospace; color: #ffda51; background-color: #101600; } | ||
#base16-aztec pre { font-family: monospace; color: #ffda51; background-color: #101600; } | ||
#base16-aztec * { font-size: 1em; } | ||
#base16-aztec .Identifier { color: #ffda51; } | ||
#base16-aztec .Statement { color: #ee2e00; font-weight: bold; } | ||
#base16-aztec .PreProc { color: #eebb00; } | ||
#base16-aztec .String { color: #63d932; } | ||
#base16-aztec .Conditional { color: #883e9f; } | ||
#base16-aztec .Number { color: #ee8800; } | ||
#base16-aztec .Operator { color: #3d94a5; } | ||
#base16-aztec .Comment { color: #2e2e05; font-style: italic; } | ||
#base16-aztec .Special { color: #3d94a5; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<pre id='vimCodeElement'> | ||
<span class="Comment">#!/bin/bash</span> | ||
|
||
<span class="Statement">set</span><span class="Identifier"> </span><span class="Special">-eu</span><span class="Identifier"> pipefail</span> | ||
|
||
<span class="Statement">rm</span> <span class="Special">-rf</span> out | ||
<span class="Statement">mkdir</span> out | ||
|
||
<span class="Statement">rm</span> <span class="Special">-rf</span> base16-vim | ||
git clone <span class="Special">--depth</span><span class="Operator">=</span><span class="Number">1</span> <a href="https://github.com/tinted-theming/base16-vim">https://github.com/tinted-theming/base16-vim</a> | ||
|
||
<span class="Statement">rm</span> <span class="Special">-rf</span> schemes | ||
git clone <span class="Special">--depth</span><span class="Operator">=</span><span class="Number">1</span> <a href="https://github.com/tinted-theming/schemes">https://github.com/tinted-theming/schemes</a> | ||
|
||
<span class="Statement">export</span> <span class="Identifier">COLORSCHEMES</span>=<span class="PreProc">($(</span><span class="Statement">ls</span><span class="Special"> schemes/base16/ </span><span class="Operator">|</span><span class="Special"> </span><span class="Statement">grep</span><span class="Special"> yaml </span><span class="Operator">|</span><span class="Special"> </span><span class="Statement">sed</span><span class="Special"> </span><span class="Operator">'</span><span class="String">s/\..*$//</span><span class="Operator">'</span><span class="PreProc">))</span> | ||
|
||
<span class="Statement">for</span> COLORSCHEME <span class="Statement">in</span> <span class="PreProc">${</span><span class="PreProc">COLORSCHEMES</span><span class="PreProc">[</span>@<span class="PreProc">]</span><span class="PreProc">}</span>; <span class="Conditional">do</span> | ||
<span class="Statement">echo</span><span class="String"> </span><span class="PreProc">$COLORSCHEME</span> | ||
|
||
vim <span class="Special">-es</span> <span class="Conditional">-u</span> NORC <span class="Conditional">-N</span> \ | ||
<span class="Conditional">-c</span> <span class="Operator">'</span><span class="String">set termguicolors</span><span class="Operator">'</span> \ | ||
<span class="Conditional">-c</span> <span class="Operator">'</span><span class="String">set runtimepath+=base16-vim</span><span class="Operator">'</span> \ | ||
<span class="Conditional">-c</span> <span class="Operator">'</span><span class="String">syntax on</span><span class="Operator">'</span> \ | ||
<span class="Conditional">-c</span> <span class="Operator">"</span><span class="String">colorscheme base16-</span><span class="PreProc">$COLORSCHEME</span><span class="Operator">"</span> \ | ||
<span class="Conditional">-c</span> <span class="Operator">'</span><span class="String">TOhtml</span><span class="Operator">'</span> \ | ||
<span class="Conditional">-c</span> <span class="Operator">'</span><span class="String">wqall</span><span class="Operator">'</span> \ | ||
<span class="PreProc">$0</span> <span class="Conditional">></span> /dev/null <span class="Number">2</span><span class="Conditional">></span><span class="Operator">&</span><span class="Number">1</span> | ||
|
||
<span class="Statement">grep</span> <span class="Special">-Pzo</span> <span class="Operator">'</span><span class="String">(?s)<style>.*</style></span><span class="Operator">'</span> <span class="PreProc">$0</span>.html \ | ||
<span class="Operator">|</span> <span class="Statement">sed</span> <span class="Operator">"</span><span class="String">3,14!d;s/body/pre/;s/^/#base16-</span><span class="PreProc">$COLORSCHEME</span><span class="String"> /</span><span class="Operator">"</span> \ | ||
<span class="Conditional">></span> out/<span class="PreProc">$COLORSCHEME</span>.css | ||
|
||
awk <span class="Operator">"</span><span class="String">/<pre id='vimCodeElement'>/,/<\/pre>/</span><span class="Operator">"</span> <span class="PreProc">$0</span>.html \ | ||
<span class="Conditional">></span> out/<span class="PreProc">$COLORSCHEME</span>.html | ||
|
||
<span class="Statement">rm</span> <span class="Conditional">-f</span> <span class="PreProc">$0</span>.html | ||
<span class="Conditional">done</span> | ||
|
||
erb template.erb <span class="Operator">></span> out/index.html | ||
</pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters