[postgis-tickets] r17301 - Experimental make target that adds a mobile header to html outpu

Paul Ramsey pramsey at cleverelephant.ca
Thu Mar 7 03:30:19 PST 2019


Author: pramsey
Date: 2019-03-07 15:30:19 -0800 (Thu, 07 Mar 2019)
New Revision: 17301

Modified:
   trunk/doc/Makefile.in
Log:
Experimental make target that adds a mobile header to html outpu


Modified: trunk/doc/Makefile.in
===================================================================
--- trunk/doc/Makefile.in	2019-03-07 22:08:24 UTC (rev 17300)
+++ trunk/doc/Makefile.in	2019-03-07 23:30:19 UTC (rev 17301)
@@ -258,7 +258,18 @@
 		$(CHUNK_HTML_DOCBOOK_XSL) \
 		$<
 
+HTML_BITS = $(wildcard html/*.html)
 
+chunked-html-web-mobile: postgis-out.xml Makefile images $(XML_INPUTS)
+	$(XSLTPROC) $(XSLTPROC_COMMONOPTS) \
+		--output html/ \
+		--stringparam html.script ga.js \
+		$(CHUNK_HTML_DOCBOOK_XSL) \
+		$<
+	tidy -utf8 -m $(HTML_BITS)
+	$(PERL) -pi -e 's/<head>/<head><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">/g' $(HTML_BITS)
+
+
 html: html/postgis$(DOCSUFFIX).html
 
 html-localized:



More information about the postgis-tickets mailing list