]> granicus.if.org Git - postgis/commitdiff
Experimental make target that adds a mobile header to html outpu
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 7 Mar 2019 23:30:19 +0000 (23:30 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 7 Mar 2019 23:30:19 +0000 (23:30 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@17301 b70326c6-7e19-0410-871a-916f4a2858ee

doc/Makefile.in

index ce45699e889d88b11195c98a975a903728f77a7c..71f29eb11d8cfcf07e6c3b141c89b0c4c36b577b 100644 (file)
@@ -258,6 +258,17 @@ chunked-html-web: postgis-out.xml Makefile images $(XML_INPUTS)
                $(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