Skip to content

Commit d26ff1f

Browse files
Merge pull request #1317 from sm1990/viewport
Add missing viewport details in lang spec pages
2 parents 034685e + a220a82 commit d26ff1f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: lang/spec.xsl

+8-3
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,19 @@ numbers for all other levels.
2525
<xsl:template match="head" priority="1">
2626
<xsl:copy>
2727
<xsl:copy-of select="@*"/>
28-
<xsl:apply-templates select="node()"/>
29-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&amp;display=swap"/>
28+
<xsl:apply-templates select="meta[not(@name='viewport')] | *[not(self::meta)]"/>
29+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&amp;display=swap"/>
3030
<link rel="stylesheet" href="style/ballerina-language-specification.css"/>
3131
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
32-
<script src="style/ballerina-language-specification.js" ></script>
32+
<script src="style/ballerina-language-specification.js"></script>
3333
</xsl:copy>
3434
</xsl:template>
3535

36+
<xsl:template match="meta[@charset]">
37+
<xsl:copy-of select="."/>
38+
<meta name="viewport" content="width=device-width, initial-scale=1"/>
39+
</xsl:template>
40+
3641
<xsl:template match="pre[@class='grammar']/dfn" priority="1">
3742
<span class="ntdfn" id="{.}"><xsl:apply-templates/></span>
3843
</xsl:template>

0 commit comments

Comments
 (0)