mryozo16 / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

publish.conf.templatesDir incorrectly references jsdoc template dir #180

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm building a custom template, and started by copying the jsdoc template
directory as a starting point. It took me half a day to track down why my
changes were not showing up, which I finally tracked down in publish.js.
The configuration hard-codes the directory for which to find the template
files as:

<code>
publish.conf = {
// snip
  templatesDir: SYS.pwd+"../templates/jsdoc",
// snip
}
</code>

I propose changing this to use the template directory provided at runtime
so new users don't have to track down this change like I did:

<code>
publish.conf = {
// snip
  templatesDir: JSDOC.opt.t + "/",
// snip
}
</code>

I'm not very familiar with jsdoc internals, so perhaps there is a better
way. However hard-coding "../templates/jsdoc" is definitely the wrong way
to go.

Original issue reported on code.google.com by matt.sma...@gmail.com on 15 Oct 2008 at 11:19

GoogleCodeExporter commented 8 years ago
Same as #176 I believe.

Original comment by micmath on 20 Nov 2008 at 10:34