mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Allow absolute template path with -t option
This commit is contained in:
parent
d74bb87ec4
commit
452eaf4196
7
jsdoc.js
7
jsdoc.js
@ -113,7 +113,12 @@ function dump() {
|
|||||||
*/
|
*/
|
||||||
function include(filepath) {
|
function include(filepath) {
|
||||||
try {
|
try {
|
||||||
load(__dirname + '/' + filepath);
|
if (filepath.indexOf('/') === 0) {
|
||||||
|
load(filepath);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
load(__dirname + '/' + filepath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
console.log('Cannot include "' + __dirname + '/' + filepath + '": '+e);
|
console.log('Cannot include "' + __dirname + '/' + filepath + '": '+e);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user