ffs

Form feed-separated plain text presentations with Emacs

git clone https://www.shemshak.org/~amin/ffs


diff --git a/Makefile b/Makefile
index c7c986d..4deac20 100644
--- a/Makefile
+++ b/Makefile
@@ -17,9 +17,6 @@
 
 ### Commentary:
 
-# The Makefile is used for exporting ffs's manual from Org to Texinfo,
-# and from Texinfo to HTML.
-
 # make all/doc  Generate various formats of the ffs manual from Org
 # make clean    Delete generated ffs.texi, ffs.info, ffs.html files
 
@@ -29,9 +26,12 @@
 .PHONY: all doc clean
 .SUFFIXES: .texi .info .html
 
+CSS_REF = ../bandali.css?v=20261022
+
 EMACS = emacs
 MAKEINFO = makeinfo
-MAKEINFO_html_opts = --html --no-split --css-include="ffs.css"
+MAKEINFO_html_opts = --html --no-split --css-ref="$(CSS_REF)" $\
+  --init-file="ffsinit.pm"
 DOC = ffs.info ffs.html
 
 all: doc
@@ -47,5 +47,5 @@ clean:
 	@echo "Generating $@ from $<"
 	$(MAKEINFO) $(MAKEINFO_html_opts) $<
 
-ffs.info: ffs.texi
-ffs.html: ffs.texi ffs.css
+ffs.info: ffs.texi ffsinit.pm
+ffs.html: ffs.texi ffsinit.pm
diff --git a/ffs.css b/ffs.css
deleted file mode 100644
index 4fa1749..0000000
--- a/ffs.css
+++ /dev/null
@@ -1,2 +0,0 @@
-body{font:1em/1.45 sans-serif;margin:0;padding:1.45em}h1{font-size:1.5em;margin:0}h2{font-size:1.25em}h3{font-size:1.125em}:lang(fa){text-underline-offset:0.3em;outline-offset:0.3em}
-#Top>.nav-panel>p{margin-top:0}table{border-spacing:0}td,th{text-align:left}:lang(fa) td,:lang(fa) th{text-align:right}td{padding:0.2em 0.6em}th{padding:0.3em 0.6em}
diff --git a/ffsinit.pm b/ffsinit.pm
new file mode 100644
index 0000000..b6c85e2
--- /dev/null
+++ b/ffsinit.pm
@@ -0,0 +1,10 @@
+use strict;
+use warnings 'all';
+use utf8;
+
+texinfo_set_from_init_file('EXTRA_HEAD', <<'END_HEAD');
+<meta name="viewport" content="width=device-width, initial-scale=1" />
+<meta name="color-scheme" content="light dark" />
+END_HEAD
+
+1;