X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JsTemplate%2FLink.js;h=d4cec0df2e448b21fb0d77f9c2c7edcb29765136;hp=b723d785da42a8eeab242397c7bb39d06ba2444c;hb=396ddd8e8de18761ffffca689932d3c90ece298f;hpb=093bcf18fbd86f87213384e898d5a13918c12a80 diff --git a/JsTemplate/Link.js b/JsTemplate/Link.js index b723d78..d4cec0d 100644 --- a/JsTemplate/Link.js +++ b/JsTemplate/Link.js @@ -127,11 +127,11 @@ Link = XObject.define( if (!linkTo.is("CONSTRUCTOR") && !linkTo.isNamespace) { // it's a method or property linkPath = escape(linkTo.memberOf) || "_global_"; - linkPath += import.JSDOC.Options.Options.ext + "#" + Link.symbolNameToLinkName(linkTo); + linkPath += imports.JSDOC.Options.Options.ext + "#" + Link.symbolNameToLinkName(linkTo); } else { linkPath = escape(linkTo.alias); - linkPath += import.JSDOC.Options.Options.ext + (this.classLink? "":"#" + Link.hashPrefix + "constructor"); + linkPath += imports.JSDOC.Options.Options.ext + (this.classLink? "":"#" + Link.hashPrefix + "constructor"); } //linkPath = linkBase + linkPath; fullLinkPath = linkBase + linkPath; @@ -156,10 +156,10 @@ Link = XObject.define( // transform filepath into a filename var srcFile = srcFilePath.replace(/\.\.?[\\\/]/g, "").replace(/[:\\\/]/g, "."); // was _ var lsrcFile = srcFilePath.replace(/\.\.?[\\\/]/g, "").replace(/[:\\\/]/g, "."); - var outFilePath = Link.base + JSDOC.publish.conf.srcDir + srcFile.replace(/.js$/, '') + - import.JSDOC.Options.Options.ext; + var outFilePath = Link.base + '/symbols/' + srcFile.replace(/.js$/, '') + + imports.JSDOC.Options.Options.publishExt; - if (!this.text) this.text = FilePath.fileName(srcFilePath); + if (!this.text) this.text = srcFilePath; //FilePath.fileName(srcFilePath); return ""+this.text+""; },