diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/Makefile | 8 | ||||
| -rw-r--r-- | docs/style.css | 120 | ||||
| -rw-r--r-- | docs/webfonts.html | 1 | 
3 files changed, 125 insertions, 4 deletions
diff --git a/docs/Makefile b/docs/Makefile index ba95009..53dc6fd 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,5 +1,5 @@  PANDOC=$(shell which pandoc) -OPTS=-s --smart +OPTS=-s --smart --toc  all: pdf html @@ -11,10 +11,10 @@ clean:  	rm -f manual.pdf manual.html  manual.pdf: manual.md -	$(PANDOC) manual.md -o manual.pdf +	$(PANDOC) $(OPTS) manual.md -o manual.pdf -manual.html: manual.md -	$(PANDOC) $(OPTS) manual.md -o manual.html +manual.html: manual.md style.css +	$(PANDOC) $(OPTS) manual.md -H webfonts.html -c style.css -o manual.html  ifeq ($(PANDOC),)  	$(warning Pandoc not found!) diff --git a/docs/style.css b/docs/style.css new file mode 100644 index 0000000..a2cd2f6 --- /dev/null +++ b/docs/style.css @@ -0,0 +1,120 @@ + +/* --- Reset ------------------------------------------------------ */ + +body, div, dl, dt, dd, ul, ol, li, +h1, h2, h3, h4, h5, h6, +pre, form, fieldset, input, textarea, +p, blockquote, th, td {  +  margin: 0; +    padding: 0; +} +table { +  border-collapse: collapse; +    border-spacing: 0; +} +fieldset, img { +  border: 0; +  } +  address, caption, cite, dfn, th, var { +    font-style: normal; +  font-weight: normal; +  } +  caption, th { +    text-align: left; +} +h1, h2, h3, h4, h5, h6 { +  font-size: 100%; +    font-weight: normal; +} +q:before, q:after { +  content: ''; +  } +  abbr, acronym { +    border: 0; +} + +/* --- Main ------------------------------------------------------- */ + +html { +    font-family: "Droid Serif", serif; +} + +body { +    max-width: 800px; +    text-align: left; +    margin-top: 24px; +    margin-left: auto; +    margin-right: auto; +    line-height: 1.5em; +} + +p { +    margin-bottom: 24px; +} + +p > code { +    font-size: 0.8em; +} + +h1, h2, h3, h4, h5, h6 { +    margin-bottom: 24px; +    font-family: "Droid Sans", sans-serif; +    font-weight: bold; +} + +h1 { +    font-size: 1.5em; +    line-height: 1em; +} + +h2 { +    font-size: 1.375em; +    line-height: 1.0909em; +} + +h3 { +    font-size: 1.25em; +    line-height: 1.2em; +} + +h4 { +    font-size: 1.125em; +    line-height: 1.333em; +} + +h5, h6 { +    font-size: 1em; +    line-height: 1.5em; +} + +h1 > a, h2 > a, h3 > a, h4 > a, h5 > a, h6 > a { +    color: black; +    text-decoration: none; +} + +pre { +    margin-bottom: 24px; +    line-height: 1.3em; +} + +code { +    font-family: "Droid Sans Mono", monospace; +} + +ul, ol { +    margin-bottom: 24px; +} + +ul ul, +ol ol { +    margin: 0 0 0 24px; +} + +.title { +    font-size: xx-large; +} + +.author { +    font-size: 1.25em; +    font-weight: normal; +} diff --git a/docs/webfonts.html b/docs/webfonts.html new file mode 100644 index 0000000..dce5986 --- /dev/null +++ b/docs/webfonts.html @@ -0,0 +1 @@ +<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700|Droid+Sans+Mono|Droid+Serif:400,400italic' rel='stylesheet' type='text/css'>  | 
