projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
config1.builder
[gnome.introspection-doc-generator]
/
docs.js
diff --git
a/docs.js
b/docs.js
index
587d35b
..
c85a64a
100644
(file)
--- a/
docs.js
+++ b/
docs.js
@@
-1,5
+1,6
@@
//<Script type="text/javascript">
//<Script type="text/javascript">
+
Gtk = imports.gi.Gtk;
Gio = imports.gi.Gio;
Gdk = imports.gi.Gdk;
Gtk = imports.gi.Gtk;
Gio = imports.gi.Gio;
Gdk = imports.gi.Gdk;
@@
-111,13
+112,19
@@
ns_list.forEach(function(ns_name)
if (File.exists(ns.gir_file)) {
File.copyFile(ns.gir_file, outputdir + '/'+ ns.gir_filename, Gio.FileCopyFlags.OVERWRITE);
}
if (File.exists(ns.gir_file)) {
File.copyFile(ns.gir_file, outputdir + '/'+ ns.gir_filename, Gio.FileCopyFlags.OVERWRITE);
}
-
+
langs.forEach(function(lang) {
ns['left_bar'] = lang.cls_ix_template.process(ns);
// namespace template
langs.forEach(function(lang) {
ns['left_bar'] = lang.cls_ix_template.process(ns);
// namespace template
+
+ if (!File.exists(outputdir + '/'+ lang.name)) {
+ File.mkdir(outputdir + '/'+ lang.name );
+ }
+
+
Gio.simple_write(outputdir + '/'+ lang.name+ '/' +ns_name + '.html', lang.cls_template.process(ns));
// left bar index of elements in namespace...
Gio.simple_write(outputdir + '/'+ lang.name+ '/' +ns_name + '.html', lang.cls_template.process(ns));
// left bar index of elements in namespace...