From 3a75168d02e540f10fececbc95a00f92322f67fe Mon Sep 17 00:00:00 2001 From: Pelle Nilsson Date: Sun, 16 Jun 2013 22:12:53 +0200 Subject: [PATCH] Split out html gamebook scripts (most of them) and style. --- Makefile | 15 +- examples/.gitignore | 4 +- expected/codewords.html | 361 +---------------------------- expected/format.html | 361 +---------------------------- expected/items.html | 361 +---------------------------- expected/references.html | 361 +---------------------------- expected/unreachable.html | 361 +---------------------------- gamebookformat.css | 43 ++++ gamebookformatplay.js | 300 ++++++++++++++++++++++++ templates/html/begin.html | 13 +- templates/html/gamebookscript.html | 233 ------------------- templates/html/playerscript.html | 68 ------ templates/html/script.html | 13 -- templates/html/style.html | 43 ---- 14 files changed, 389 insertions(+), 2148 deletions(-) create mode 100644 gamebookformat.css create mode 100644 gamebookformatplay.js delete mode 100644 templates/html/gamebookscript.html delete mode 100644 templates/html/playerscript.html delete mode 100644 templates/html/script.html delete mode 100644 templates/html/style.html diff --git a/Makefile b/Makefile index 961e68d..58bdeba 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,8 @@ all: rtf pdf html debug png txt rtf: $(examples:.gamebook=.rtf) pdf: $(examples:.gamebook=.pdf) -html: $(examples:.gamebook=.html) +html: $(examples:.gamebook=.html) examples/gamebookformatplay.js \ + examples/gamebookformat.css debug: $(examples:.gamebook=.debug) png: $(examples:.gamebook=.png) txt: $(examples:.gamebook=.txt) @@ -14,6 +15,12 @@ uploadto=$(shell cat .uploadto) readme.html: readme.org emacs -Q --batch --visit=readme.org --funcall org-export-as-html-batch +examples/gamebookformatplay.js: + cp gamebookformatplay.js $@ + +examples/gamebookformat.css: + cp gamebookformat.css $@ + %.rtf: %.gamebook *.py templates/rtf/*.rtf ./formatgamebook.py --no-shuffle $< $@ @@ -41,7 +48,8 @@ readme.html: readme.org test: unittest checkexpected templatejstest expected: all - $(RM) expected/* && cp examples/*.{rtf,tex,html,debug,txt,dot,map} \ + $(RM) expected/* && \ + cp examples/*.{rtf,tex,html,debug,txt,dot,map} \ expected checkexpected: clean all @@ -72,7 +80,8 @@ clean: examples/*.pdf examples/*.out *~ examples/*~ *.pyc \ examples/*.dot examples/*.aux examples/*.toc $(png) \ examples/*.map templates/*~ templates/*/*~ \ - $(examples:.gamebook=.png) readme.html + $(examples:.gamebook=.png) readme.html \ + examples/*.js examples/*.css fixmes: grep FIXME *.py diff --git a/examples/.gitignore b/examples/.gitignore index 5e8b2fb..de50c3d 100644 --- a/examples/.gitignore +++ b/examples/.gitignore @@ -5,4 +5,6 @@ *.debug *.txt *.png -!testimage.png \ No newline at end of file +!testimage.png +*.js +*.css diff --git a/expected/codewords.html b/expected/codewords.html index 9fbd0c2..9f78db1 100644 --- a/expected/codewords.html +++ b/expected/codewords.html @@ -4,364 +4,13 @@ - Gamebook + Gamebook + + -