2006-08-14 03:46:05 +02:00
|
|
|
load("build/js/json.js", "build/js/xml.js", "build/js/writeFile.js", "build/js/parse.js");
|
2006-08-13 17:15:15 +02:00
|
|
|
|
2006-08-14 03:46:05 +02:00
|
|
|
var c = parse( readFile(arguments[0]) );
|
2006-08-13 17:15:15 +02:00
|
|
|
var json = Object.toJSON( c );
|
|
|
|
|
2006-08-13 17:22:02 +02:00
|
|
|
writeFile( arguments[1] + "/data/jquery-docs-json.js", json );
|
|
|
|
writeFile( arguments[1] + "/data/jquery-docs-jsonp.js", "docsLoaded(" + json + ")" );
|
2006-08-13 17:15:15 +02:00
|
|
|
|
|
|
|
Object.toXML.force = { desc: 1, code: 1, before: 1, result: 1 };
|
|
|
|
|
|
|
|
var xml = Object.toXML( { method: c }, "docs" );
|
|
|
|
|
2006-08-13 17:22:02 +02:00
|
|
|
writeFile( arguments[1] + "/data/jquery-docs-xml.xml",
|
2006-08-13 17:15:15 +02:00
|
|
|
"<?xml version='1.0' encoding='ISO-8859-1'?>\n" + xml );
|
|
|
|
|
2006-08-13 17:22:02 +02:00
|
|
|
writeFile( arguments[1] + "/index.xml",
|
2006-08-13 17:15:15 +02:00
|
|
|
"<?xml version='1.0' encoding='ISO-8859-1'?>\n" +
|
|
|
|
"<?xml-stylesheet type='text/xsl' href='style/docs.xsl'?>\n" + xml
|
|
|
|
);
|