X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FBuildDocs.js;h=f41999796b8f05dd1e43b8ea7a7e63d507b712d8;hb=8c28f42c18f6af11d6ca8640424f8ec01664d994;hp=59d571d2910917af98df87056257833221940736;hpb=7e20bee87f8a9611dedd3b3707ba21a50e8ebfd5;p=gnome.introspection-doc-generator diff --git a/JSDOC/BuildDocs.js b/JSDOC/BuildDocs.js index 59d571d..f419997 100644 --- a/JSDOC/BuildDocs.js +++ b/JSDOC/BuildDocs.js @@ -3,13 +3,13 @@ This is the main container for the JSDOC application. @namespace */ - +Gio = imports.gi.Gio; XObject = imports.XObject.XObject; File = imports.File.File; Template = imports.JsTemplate.Template.Template; - +Link = imports.JsTemplate.Link.Link; // ?? fixme!?? Parser = imports.Parser.Parser; TextStream = imports.TextStream.TextStream; @@ -175,11 +175,11 @@ BuildDocs = { File.mkdir(Options.target +"/json"); } - Options.LOG.inform("Copying files from static: " +Options.templatesDir); + Options.LOG.inform("Copying files from static: " +Options.templateDir); // copy everything in 'static' into - File.list(Options.templatesDir + '/static').forEach(function (f) { - Options.LOG.inform("Copy " + Options.templatesDir + '/static/' + f + ' to ' + Options.target + '/' + f); - File.copy(Options.templatesDir + '/static/' + f, Options.target + '/' + f); + File.list(Options.templateDir + '/static').forEach(function (f) { + Options.LOG.inform("Copy " + Options.templateDir + '/static/' + f + ' to ' + Options.target + '/' + f); + File.copyFile(Options.templateDir + '/static/' + f, Options.target + '/' + f, Gio.FileCopyFlags.OVERWRITE); }); @@ -189,19 +189,19 @@ BuildDocs = { Link.base = "../"; var classTemplate = new Template({ - templateFile : Options.templatesDir + "/class.tmpl", + templateFile : Options.templateDir + "/class.tmpl", Link : Link }); var classesTemplate = new Template({ - templateFile : Options.templatesDir +"/allclasses.tmpl", + templateFile : Options.templateDir +"/allclasses.tmpl", Link : Link }); var classesindexTemplate = new Template({ - templateFile : Options.templatesDir +"/index.tmpl", + templateFile : Options.templateDir +"/index.tmpl", Link : Link }); var fileindexTemplate = new Template({ - templateFile : Options.templatesDir +"/allfiles.tmpl", + templateFile : Options.templateDir +"/allfiles.tmpl", Link: Link });