Generate meta viewport element.

This improves layout on mobile devices. I had to remove declaration
for the 'rev' element as otherwise the 'meta' element would have
namespace declaration as well, for no reason. Possibly there's a
better solution.
This commit is contained in:
Vladimir Prus 2014-12-08 20:27:34 +03:00
parent 01882ea2a2
commit 6700d12201

View File

@ -7,7 +7,6 @@
http://www.boost.org/LICENSE_1_0.txt) http://www.boost.org/LICENSE_1_0.txt)
--> -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision"
version="1.0"> version="1.0">
<xsl:param name="html.stylesheet"> <xsl:param name="html.stylesheet">
@ -304,6 +303,9 @@ set toc,title
</xsl:template> </xsl:template>
<xsl:template name="user.head.content"> <xsl:template name="user.head.content">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<xsl:if test="$boost.mathjax = 1"> <xsl:if test="$boost.mathjax = 1">
<xsl:variable name="has-math"> <xsl:variable name="has-math">
<xsl:apply-templates mode="detect-math" select="*"/> <xsl:apply-templates mode="detect-math" select="*"/>