The jQuery version is now reported in the docs.
This commit is contained in:
parent
766c3765bd
commit
967eec1831
|
@ -18,6 +18,8 @@ function output( c, n ) {
|
||||||
|
|
||||||
var xml = Object.toXML( n == "docs" ? { method: c } : c, "docs" );
|
var xml = Object.toXML( n == "docs" ? { method: c } : c, "docs" );
|
||||||
|
|
||||||
|
xml = xml.replace("<docs>", "<docs version='" + read("version.txt").slice(0,-1) + "'>");
|
||||||
|
|
||||||
writeFile( dir + "/data/jquery-" + n + "-xml.xml",
|
writeFile( dir + "/data/jquery-" + n + "-xml.xml",
|
||||||
"<?xml version='1.0' encoding='ISO-8859-1'?>\n" + xml );
|
"<?xml version='1.0' encoding='ISO-8859-1'?>\n" + xml );
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<xsl:template match="/*">
|
<xsl:template match="/*">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>jQuery Docs - API</title>
|
<title>jQuery Docs - <xsl:value-of select="/docs/@version"/> API</title>
|
||||||
<link rel="stylesheet" href="style/style.css"/>
|
<link rel="stylesheet" href="style/style.css"/>
|
||||||
<script src="../dist/jquery.js"></script>
|
<script src="../dist/jquery.js"></script>
|
||||||
<script src="js/tooltip.js"></script>
|
<script src="js/tooltip.js"></script>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
<script src="js/doc.js"></script>
|
<script src="js/doc.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>jQuery Docs - API</h1>
|
<h1>jQuery Docs - <xsl:value-of select="/docs/@version"/> API</h1>
|
||||||
<ul id="docs">
|
<ul id="docs">
|
||||||
<xsl:for-each select="method[not(@private)]">
|
<xsl:for-each select="method[not(@private)]">
|
||||||
<xsl:sort select="translate(@name,'$.','')"/>
|
<xsl:sort select="translate(@name,'$.','')"/>
|
||||||
|
|
Loading…
Reference in a new issue