From 4c0d30d4f8b05149b38414b43bf3f4e0036eb0cf Mon Sep 17 00:00:00 2001
From: Arun Isaac
Date: Fri, 18 Jun 2021 14:55:43 +0530
Subject: website: Reference external stylesheet.
* website/style.css: New file.
* Makefile.am (AM_MAKEINFOHTMLFLAGS): Set to --css-ref=/style.css.
* build-aux/build-website.el (org-html-head): Set to tag
referencing external stylesheet.
---
Makefile.am | 2 ++
build-aux/build-website.el | 14 +-------------
website/style.css | 12 ++++++++++++
3 files changed, 15 insertions(+), 13 deletions(-)
create mode 100644 website/style.css
diff --git a/Makefile.am b/Makefile.am
index 9a04231..2dcf301 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -72,6 +72,8 @@ EXTRA_DIST += \
COPYING \
README.org
+AM_MAKEINFOHTMLFLAGS = --css-ref=/style.css
+
website: website/index.html website/manual/dev/en
website/index.html: README.org
diff --git a/build-aux/build-website.el b/build-aux/build-website.el
index f10b89b..3bea2ad 100644
--- a/build-aux/build-website.el
+++ b/build-aux/build-website.el
@@ -22,19 +22,7 @@
(setq org-export-with-section-numbers nil
org-export-with-sub-superscripts nil
org-export-with-toc nil
- org-html-head ""
+ org-html-head ""
org-html-head-include-default-style nil
org-html-head-include-scripts nil
org-html-postamble nil)
diff --git a/website/style.css b/website/style.css
new file mode 100644
index 0000000..6f73a82
--- /dev/null
+++ b/website/style.css
@@ -0,0 +1,12 @@
+body {
+ margin: 40px auto;
+ max-width: 650px;
+ line-height: 1.6;
+ font-size: 18px;
+ color: #444;
+ padding: 0 10px;
+}
+
+h1, h2, h3 {
+ line-height: 1.2;
+}
--
cgit v1.2.3