Massive overhauls to the test suite - it is now generated dynamically, along with...
[jquery.git] / build / docs / docs.js
1 load("build/js/json.js", "build/js/xml.js", "build/js/writeFile.js", "build/js/parse.js");
2
3 var c = parse( readFile(arguments[0]) );
4 var json = Object.toJSON( c );
5
6 writeFile( arguments[1] + "/data/jquery-docs-json.js", json );
7 writeFile( arguments[1] + "/data/jquery-docs-jsonp.js", "docsLoaded(" + json + ")" );
8
9 Object.toXML.force = { desc: 1, code: 1, before: 1, result: 1 };
10
11 var xml = Object.toXML( { method: c }, "docs" );
12
13 writeFile( arguments[1] + "/data/jquery-docs-xml.xml", 
14         "<?xml version='1.0' encoding='ISO-8859-1'?>\n" + xml );
15
16 writeFile( arguments[1] + "/index.xml",
17         "<?xml version='1.0' encoding='ISO-8859-1'?>\n" +
18         "<?xml-stylesheet type='text/xsl' href='style/docs.xsl'?>\n" + xml
19 );