aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2017-02-12 13:06:12 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2017-02-12 13:06:12 +0100
commit7f9c36dd1393440f3d4158d5915c0d6118d12b82 (patch)
tree49a8fecb73bb326b06c27d63b488478b90d5b6ea
parentcf0d4622fc812b23ce0b917bbf0d95273f741fb1 (diff)
downloadrcheatsheet-7f9c36dd1393440f3d4158d5915c0d6118d12b82.tar.gz
rcheatsheet-7f9c36dd1393440f3d4158d5915c0d6118d12b82.zip
add footer and make html standalone
-rw-r--r--.gitignore2
-rw-r--r--Makefile2
-rw-r--r--footer.html13
-rw-r--r--style.css6
4 files changed, 17 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 95c7271..a337b48 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
*.pdf
-*.html
+rcheatsheet.html
*~
diff --git a/Makefile b/Makefile
index 915cfb5..bc6cbd9 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ CSS=style.css
all: pdf html
rcheatsheet.html: rcheatsheet.md
- cat $< | ./highlight_code.py | pandoc -f markdown_github --css $(CSS) -o $@ -;
+ cat $< | ./highlight_code.py | pandoc -s -S -A footer.html -f markdown_github -H $(CSS) -o $@ -;
sed -i -f remove_table_width.sed $@
rcheatsheet.pdf: rcheatsheet.html
diff --git a/footer.html b/footer.html
new file mode 100644
index 0000000..aea745b
--- /dev/null
+++ b/footer.html
@@ -0,0 +1,13 @@
+<p xmlns:dct="http://purl.org/dc/terms/">
+<a rel="license"
+ href="http://creativecommons.org/publicdomain/zero/1.0/">
+ <img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0" />
+</a>
+<br />
+To the extent possible under law,
+<a rel="dct:publisher"
+ href="https://github.com/fischerling/rcheatsheet">
+ <span property="dct:title">Florian Fischer</span></a>
+has waived all copyright and related or neighboring rights to
+this work.
+</p>
diff --git a/style.css b/style.css
index 0799f74..2ede04f 100644
--- a/style.css
+++ b/style.css
@@ -1,7 +1,4 @@
-/*
- * I add this to html files generated with pandoc.
- */
-
+<style>
html {
font-size: 100%;
overflow-y: scroll;
@@ -327,3 +324,4 @@ table td {
page-break-after: avoid;
}
}
+</style>