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:
7777eb9
)
docs.js
author
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Jun 2010 09:39:46 +0000
(17:39 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Jun 2010 09:39:46 +0000
(17:39 +0800)
docs.js
patch
|
blob
|
history
diff --git
a/docs.js
b/docs.js
index
386f14d
..
713b723
100644
(file)
--- a/
docs.js
+++ b/
docs.js
@@
-3,14
+3,16
@@
Gtk = imports.gi.Gtk;
Gio = imports.gi.Gio;
Gdk = imports.gi.Gdk;
Gtk = imports.gi.Gtk;
Gio = imports.gi.Gio;
Gdk = imports.gi.Gdk;
+
+
XObject = imports.XObject.XObject;
File = imports.File.File;
console = imports.console.console;
XObject = imports.XObject.XObject;
File = imports.File.File;
console = imports.console.console;
-
Introspect = imports['JSDOC/Introspect.js'].Introspect
;
-Template = imports
['JSDOC/Template.js']
.Template;
+
NameSpace = imports.Introspect.NameSpace.NameSpace
;
+Template = imports
.JSDOC.Template.
.Template;
var outputdir = Seed.argv[2];
var outputdir = Seed.argv[2];
@@
-32,7
+34,7
@@
if (!File.isDirectory(outputdir)) {
// Which libraries to build.
// Which libraries to build.
-var ns_list =
Introspect
.namespaces();
+var ns_list =
NameSpace
.namespaces();
if (typeof(Seed.argv[3]) == 'string') {
console.log(Seed.argv.length);
ns_list = Seed.argv[3].split(',');
if (typeof(Seed.argv[3]) == 'string') {
console.log(Seed.argv.length);
ns_list = Seed.argv[3].split(',');
@@
-76,7
+78,7
@@
ns_list.forEach(function(ns_name)
var idx = { name: ns_name};
console.log("START:" + ns_name);
var idx = { name: ns_name};
console.log("START:" + ns_name);
- var ns =
Introspect
.ns(ns_name);
+ var ns =
NameSpace
.ns(ns_name);
// gir goes in top level...
if (File.exists(ns.gir_file)) {
// gir goes in top level...
if (File.exists(ns.gir_file)) {
@@
-109,7
+111,7
@@
ns_list.forEach(function(ns_name)
idx[i]= ns_name == 'GLib' ? 1 : ns[i].length ;
ns[i].forEach( function(n) {
var odata = XObject.extend(
idx[i]= ns_name == 'GLib' ? 1 : ns[i].length ;
ns[i].forEach( function(n) {
var odata = XObject.extend(
-
Introspect
.factory(actions[i], ns_name, n),
+
NameSpace
.factory(actions[i], ns_name, n),
{ 'left_bar' :ns['left_bar'] }
);
langs.forEach(function(lang) {
{ 'left_bar' :ns['left_bar'] }
);
langs.forEach(function(lang) {
@@
-131,7
+133,7
@@
var html = ''
// output cross reference data..
langs.forEach(function(lang) {
// output cross reference data..
langs.forEach(function(lang) {
- for (var i in
Introspect
.references) {
+ for (var i in
NameSpace
.references) {
html_file_path = [ outputdir, lang.name, i + '.html'].join('/');
html_file_path = [ outputdir, lang.name, i + '.html'].join('/');
@@
-145,7
+147,7
@@
langs.forEach(function(lang) {
continue;
}
continue;
}
- refs = langs.reference_template.process(
Introspect
.references[i]);
+ refs = langs.reference_template.process(
NameSpace
.references[i]);
// HTML to put refs into
html = File.read(html_file_path);
// HTML to put refs into
html = File.read(html_file_path);