JSDOC/BuildDocs.js
[gnome.introspection-doc-generator] / JSDOC / BuildDocs.js
index f419997..85f33ac 100644 (file)
@@ -185,7 +185,7 @@ BuildDocs = {
         
         Options.LOG.inform("Setting up templates");
         // used to check the details of things being linked to
-        Link.symbolSet = symbolSet;
+        Link.symbolSet = this.symbolSet;
         Link.base = "../";
         
         var classTemplate = new Template({
@@ -206,7 +206,7 @@ BuildDocs = {
         });
 
         
-        classTemplate.symbolSet = symbolSet;
+        classTemplate.symbolSet = this.symbolSet;
         
         
         function hasNoParent($) {
@@ -219,7 +219,7 @@ BuildDocs = {
             return ($.is("CONSTRUCTOR") || $.isNamespace); 
         }
         
-        var symbols = symbolSet.toArray();
+        var symbols = this.symbolSet.toArray();
         
         var files = Options.srcFiles;
         
@@ -352,11 +352,12 @@ BuildDocs = {
     {
         
         
-        name = sourceFile.substring(Options.baseDir.length);
+        name = sourceFile.substring(Options.baseDir.length+1);
         name = name.replace(/\.\.?[\\\/]/g, "").replace(/[\\\/]/g, "_");
-        name = name.replace(/\:/g, "_"); //??
         
+        name = name.replace(/\:/g, "_"); //??
         
+        Options.LOG.inform("Write Source file :" + sourceFile);
         var pretty = imports.PrettyPrint.toPretty(File.read(sourceFile));
         File.write(Options.target+"/symbols/src/" + name, 
             '<html><head>' +