projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
08c915f
)
JSDOC/BuildDocs.js
author
Alan Knowles
<alan@akbkhome.com>
Tue, 29 Jun 2010 09:41:57 +0000
(17:41 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 29 Jun 2010 09:41:57 +0000
(17:41 +0800)
JSDOC/BuildDocs.js
patch
|
blob
|
history
diff --git
a/JSDOC/BuildDocs.js
b/JSDOC/BuildDocs.js
index
0b4e8c1
..
ff2a9a5
100644
(file)
--- a/
JSDOC/BuildDocs.js
+++ b/
JSDOC/BuildDocs.js
@@
-231,7
+231,9
@@
BuildDocs = {
print("write " + Options.target+"/symbols/" +symbol.alias+'.' + Options.publishExt);
// dump out a
print("write " + Options.target+"/symbols/" +symbol.alias+'.' + Options.publishExt);
// dump out a
- File.write(Options.target+"/json/", symbol.alias+'.json' , this.jsonRender(symbol));
+
+ this.publishJSON(Options.target+"/json/", symbol.alias+'.json', symbol)
+
}
}
@@
-273,7
+275,7
@@
BuildDocs = {
fileindexTemplate = filesIndex = files = null;
}
fileindexTemplate = filesIndex = files = null;
}
- publishJSON = function(data)
+ publishJSON = function(
file,
data)
{
// what we need to output to be usefull...
// a) props..
{
// what we need to output to be usefull...
// a) props..
@@
-325,7
+327,7
@@
BuildDocs = {
props : props,
events: events
};
props : props,
events: events
};
-
return JSON.stringify(ret, null, 2
);
+
File.write(file, JSON.stringify(ret, null, 2 )
);
// b) methods
// b) methods