]> source.dussan.org Git - jquery.git/commitdiff
The jQuery version is now reported in the docs.
authorJohn Resig <jeresig@gmail.com>
Tue, 10 Oct 2006 01:17:47 +0000 (01:17 +0000)
committerJohn Resig <jeresig@gmail.com>
Tue, 10 Oct 2006 01:17:47 +0000 (01:17 +0000)
build/docs/docs.js
build/docs/style/docs.xsl

index 500b91c143248798451a47dd31b39a07b7c1b509..86b48ee450a694bc6e155a5cc06ccb46973867e3 100644 (file)
@@ -18,6 +18,8 @@ function output( c, n ) {
        
        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", 
                "<?xml version='1.0' encoding='ISO-8859-1'?>\n" + xml );
 
index 86c9a762ce1c114343d188288c7bc202128fb2e5..8d9f670475c7e6251b0d3972e138e39499029c6a 100644 (file)
@@ -4,7 +4,7 @@
 <xsl:template match="/*">
 <html>
 <head>
-       <title>jQuery Docs - API</title>
+       <title>jQuery Docs - <xsl:value-of select="/docs/@version"/> API</title>
        <link rel="stylesheet" href="style/style.css"/>
        <script src="../dist/jquery.js"></script>
        <script src="js/tooltip.js"></script>
@@ -12,7 +12,7 @@
        <script src="js/doc.js"></script>
 </head>
 <body>
-       <h1>jQuery Docs - API</h1>
+       <h1>jQuery Docs - <xsl:value-of select="/docs/@version"/> API</h1>
        <ul id="docs">
                <xsl:for-each select="method[not(@private)]">
                        <xsl:sort select="translate(@name,'$.','')"/>