summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2019-06-02 20:48:58 -0400
committerDavid Thompson <dthompson2@worcester.edu>2019-06-02 20:48:58 -0400
commit68d46fe41f6b40981338292fb414f1851a1f5542 (patch)
tree73cb893aff05a5119ade49bc7dece0dd1d1d94fa
parent10a86a5ad98418141bbfed68d84b116e6a8ac29a (diff)
doc: Use pretty CSS for HTML version.
-rw-r--r--Makefile.am3
-rw-r--r--doc/manual.css21
2 files changed, 24 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index fb93a68..a3439f4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -87,6 +87,9 @@ doc_guile_sdl2_TEXINFOS = \
doc/api.texi \
doc/guile-sdl2.texi
+AM_MAKEINFOHTMLFLAGS = --css-ref=https://dthompson.us/css/dthompson.css \
+ --css-include=doc/manual.css
+
dvi: # Don't build dvi docs
EXTRA_DIST += \
diff --git a/doc/manual.css b/doc/manual.css
new file mode 100644
index 0000000..b433c4b
--- /dev/null
+++ b/doc/manual.css
@@ -0,0 +1,21 @@
+@media (min-width: 1140px) {
+ body {
+ margin-left: 14rem;
+ margin-right: 4rem;
+ max-width: 52rem;
+ }
+}
+
+@media (min-width: 800px) and (max-width: 1140px) {
+ body {
+ margin-left: 6rem;
+ margin-right: 4rem;
+ max-width: 52rem;
+ }
+}
+
+@media (max-width: 800px) {
+ body {
+ margin: 1rem;
+ }
+}