angular-jsdoc
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -87,3 +87,3 @@ /*global env: true */ | ||
var layoutPath = path.join(templatePath, 'html', 'layout.html'); | ||
var html = angularTemplate(layoutPath, data, {jsMode:false, prefix:'ng'}); | ||
var html = angularTemplate(layoutPath, data); | ||
fs.writeFileSync(filepath, html, 'utf8'); | ||
@@ -99,5 +99,2 @@ }; | ||
sourceCode = sourceCode.replace(/</g,"<"); | ||
var lineNumbers = sourceCode.split("\n").map(function(el,i) { | ||
return i+1; | ||
}); //jshint ignore:line | ||
var data = { | ||
@@ -108,6 +105,6 @@ path: source.path, | ||
basePath: __dirname, | ||
title: "Source:"+source.path.replace(/^.*\//,'') | ||
title: "Source:"+source.path.replace(/^.*[\/\\]/,'') | ||
}; | ||
var outputPath = path.join(outdir, "source", jsDoc); | ||
var html = angularTemplate(layoutPath, data, {jsMode:false, prefix: 'ng'}); | ||
var html = angularTemplate(layoutPath, data); | ||
fs.writeFileSync(outputPath, html, 'utf8'); | ||
@@ -176,11 +173,11 @@ } | ||
var layoutPath = path.join(templatePath, 'html', 'layout.html'); | ||
var data = { | ||
nav: nav, | ||
readme: opts.readme, | ||
var readmeData = { | ||
nav: nav, | ||
readme: opts.readme, | ||
basePath: __dirname, | ||
title: "Index" | ||
}; | ||
var html = angularTemplate(layoutPath, data, {jsMode:false, prefix: 'ng'}); | ||
var html = angularTemplate(layoutPath, readmeData); | ||
fs.writeFileSync(path.join(outdir, 'index.html'), html, 'utf8'); | ||
} | ||
}; |
@@ -10,12 +10,2 @@ /*global env: true */ | ||
var helper = require('jsdoc/util/templateHelper'); | ||
//helper.toTutorial(tutorial, null, options) | ||
//helper.getAncestorLinks(data, docket) | ||
//helper.createLink(doclet) | ||
//helper.getAttribs(data) | ||
//helper.getUniqueFilename(str) | ||
//helper.htmlsafe(str) | ||
//helper.getAncestors(data, doclet) | ||
//helper.prune(data) //remove members that won't be in documentation | ||
//helper.resolveAuthorLinks; | ||
//helper.scopeToPunc; | ||
@@ -38,3 +28,3 @@ var templatePath; | ||
caption: caption || '', | ||
code: code || example | ||
code: (code || example).replace(/</g,'<') | ||
}; | ||
@@ -113,5 +103,2 @@ }); | ||
sourceCode = sourceCode.replace(/</g,"<"); | ||
var lineNumbers = sourceCode.split("\n").map(function(el,i) { | ||
return i+1; | ||
}); //jshint ignore:line | ||
var data = { | ||
@@ -122,3 +109,3 @@ path: source.path, | ||
basePath: __dirname, | ||
title: "Source:"+source.path.replace(/^.*\//,'') | ||
title: "Source:"+source.path.replace(/^.*[\/\\]/,'') | ||
}; | ||
@@ -147,3 +134,3 @@ var outputPath = path.join(outdir, "source", jsDoc); | ||
doclet.jsDocUrl = helper.createLink(doclet); | ||
if (doclet.meta) { | ||
if (doclet.meta && doclet.kind == 'class') { | ||
var sourceHtml = doclet.jsDocUrl.replace(/#.*$/,''); | ||
@@ -192,11 +179,11 @@ doclet.sourceUrl = 'source/'+sourceHtml+"#line"+doclet.meta.lineno; | ||
var layoutHtml = require('fs').readFileSync(layoutPath, 'utf8'); | ||
var data = { | ||
nav: nav, | ||
readme: opts.readme, | ||
var readmeData = { | ||
nav: nav, | ||
readme: opts.readme, | ||
basePath: __dirname, | ||
title: "Index" | ||
}; | ||
var html = jsTemplate(layoutHtml, data); | ||
var html = jsTemplate(layoutHtml, readmeData); | ||
fs.writeFileSync(path.join(outdir, 'index.html'), html, 'utf8'); | ||
} | ||
}; |
{ | ||
"name": "angular-jsdoc", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "JsDoc Plugin and Template for AngularJs", | ||
@@ -26,3 +26,2 @@ "main": "index.js", | ||
"devDependencies": { | ||
"angular-template": "^2.0.3", | ||
"gulp": "~3.8.5", | ||
@@ -29,0 +28,0 @@ "gulp-bump": "~0.1.10", |
@@ -75,3 +75,3 @@ Angular-JSDoc | ||
var angularJsdoc = require('angualr-jsdoc'); | ||
var angularJsdoc = require('angular-jsdoc'); | ||
angularJsdoc(['my-source1', 'my-source2']); | ||
@@ -78,0 +78,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4584117
5
155
9339