wenchun / jsdoc-toolkit

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

Support template default directory using jsdoc.template.dir variable #79

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I would like to propose the following changes.
Support jsdoc.template.dir like jsdoc.dir so that the -t=<template> will first 
check relative to the 
variable. This makes it much easier to on the fly select additional templates 
without using the entire 
path.

To make life easier, I have attached a reworked run.js that does precisely 
this. I modified 1.4.0 to 
reflect it. And, yes, I did check out the 2.0 src to make sure nothing like 
this is in the works.

Thanks. 

Original issue reported on code.google.com by avi%deit...@gtempaccount.com on 12 Feb 2008 at 6:46

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Sorry, I attached the wrong file version. Use this one.

Original comment by avi%deit...@gtempaccount.com on 12 Feb 2008 at 8:21

Attachments:

GoogleCodeExporter commented 8 years ago
This looks fine. There may be a delay before I release it though as I am still 
trying
to finish Version 2.

Original comment by micmath on 14 Feb 2008 at 6:17

GoogleCodeExporter commented 8 years ago
No problem. Thanks for taking it into account.

Original comment by avi%deit...@gtempaccount.com on 14 Feb 2008 at 6:25

GoogleCodeExporter commented 8 years ago
This has been committed to Version 2, in revision 511.

java -Djsdoc.template.dir=templates/jsdoc/ -jar jsrun.jar app/run.js myscript.js

Original comment by micmath on 20 Feb 2008 at 12:35

GoogleCodeExporter commented 8 years ago
Hi Michael,

It has been a long time. Version 2 looks really great, I am duly impressed.

This was not exactly what I had in mind, where jsdoc.template.dir is used if -t 
does not exist. Rather I meant 
it to be a base for -t, so I can use
jsdoc.template.dir=/my/base/dir/templates -t=sunny
jsdoc.template.dir=/my/base/dir/templates -t=rainy
etc.

But I can work around this.

Thanks again.

Original comment by avi%deit...@gtempaccount.com on 18 Feb 2009 at 4:12