Skip to content

Commit

Permalink
Merge pull request #1317 from sm1990/viewport
Browse files Browse the repository at this point in the history
Add missing viewport details in lang spec pages
  • Loading branch information
anupama-pathirage authored Nov 20, 2024
2 parents 034685e + a220a82 commit d26ff1f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lang/spec.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,19 @@ numbers for all other levels.
<xsl:template match="head" priority="1">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates select="node()"/>
<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"/>
<xsl:apply-templates select="meta[not(@name='viewport')] | *[not(self::meta)]"/>
<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"/>
<link rel="stylesheet" href="style/ballerina-language-specification.css"/>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="style/ballerina-language-specification.js" ></script>
<script src="style/ballerina-language-specification.js"></script>
</xsl:copy>
</xsl:template>

<xsl:template match="meta[@charset]">
<xsl:copy-of select="."/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
</xsl:template>

<xsl:template match="pre[@class='grammar']/dfn" priority="1">
<span class="ntdfn" id="{.}"><xsl:apply-templates/></span>
</xsl:template>
Expand Down

0 comments on commit d26ff1f

Please sign in to comment.