X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FBuildDocs.js;h=42a01b848267d33dd78bd99626c061d9688ca74f;hb=24815167c8180fec6409a2df4fcc5916235a9afa;hp=4e04f5126898bd1bdc572e273f3f00149dc4a9c2;hpb=6951273cc0ed6a892917d889e7081bb49c6a6d22;p=gnome.introspection-doc-generator diff --git a/JSDOC/BuildDocs.js b/JSDOC/BuildDocs.js index 4e04f51..42a01b8 100644 --- a/JSDOC/BuildDocs.js +++ b/JSDOC/BuildDocs.js @@ -41,7 +41,7 @@ BuildDocs = { Options.LOG.inform("JsDoc Toolkit main() running at "+new Date()+"."); - Options.LOG.inform("With options: "); + //Options.LOG.inform("With options: "); if (!File.isDirectory(Options.cacheDirectory)) { File.mkdir(Options.cacheDirectory) @@ -344,16 +344,16 @@ BuildDocs = { { - if (!name) { - name = sourceFile.replace(/\.\.?[\\\/]/g, "").replace(/[\\\/]/g, "_"); - name = name.replace(/\:/g, "_"); - } + name = sourceFile.substring(Options.baseDir.length); + name = name.replace(/\.\.?[\\\/]/g, "").replace(/[\\\/]/g, "_"); + name = name.replace(/\:/g, "_"); //?? + - var pretty = PrettyPrint.toPretty(File.read(sourceFile)); + var pretty = imports.PrettyPrint.toPretty(File.read(sourceFile)); File.write(Options.target+"/symbols/src" + prettyfile, '' + '' + sourceFile + '' + - '' + + '' + '' + pretty + '');