book
log
*.gw
+ansi2html*
deploy: build
@sh scripts/deploy.sh
-ensure:
+ensure: style.css
@sh scripts/ensure.sh
lint:
clean-all: clean clean-tests
@rm -rf src
+style.css: ansi2html.sh
+ @bash ansi2html.sh --css-only > ansi2html.css
+
+ansi2html.sh:
+ @curl https://raw.githubusercontent.com/pixelb/scripts/master/scripts/ansi2html.sh -o $@
+
.SUFFIXES: .gw .test
.gw.test:
@bash scripts/test.sh $< "${CONTAINS}"
[output.html]
default-theme = "rust"
-additional-css = ["custom.css"]
+additional-css = ["custom.css", "ansi2html.css"]
git-repository-url ="https://github.com/fennecdjay/Gwion"
[output.html.fold]
noterm() {
echo '<p class="mdr">'
- sed 's/$/<\/br>/' log
+ cat log | bash ansi2html.sh --body-only | sed 's/$/<\/br>/'
echo "</br>"
check $@ && printf "${NOTERM_OK}\n" || printf "${NOTERM_NOT_OK}\n"
echo '</p>'