Changed readFile to java-based read function to handle \r\n, fixes docs and test...
[jquery.git] / build / docs / docs.js
index 6574f6b..8f331ea 100644 (file)
@@ -2,7 +2,7 @@ load("build/js/json.js", "build/js/xml.js", "build/js/writeFile.js", "build/js/p
 
 var dir = arguments[1];
 
-var c = parse( readFile(arguments[0]) );
+var c = parse( read(arguments[0]) );
 output( c, "docs" );
 
 c = categorize( c );
@@ -23,6 +23,6 @@ function output( c, n ) {
 
        writeFile( dir + "/" + ( n == "docs" ? "index" : n ) + ".xml",
                "<?xml version='1.0' encoding='ISO-8859-1'?>\n" +
-               "<?xml-stylesheet type='text/xsl' href='style/docs.xsl'?>\n" + xml
+               "<?xml-stylesheet type='text/xsl' href='style/" + n + ".xsl'?>\n" + xml
        );
 }