mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
jslint doesn't like comment switches
The block is toggled by deleting /* /*// Explanation of junk somejunk //*/
This commit is contained in:
parent
7ebf9c5976
commit
202357d4d0
@ -1,3 +1,4 @@
|
||||
/*global env: true */
|
||||
/**
|
||||
* @file Adds pretty printed source code to
|
||||
* the output files.
|
||||
@ -49,7 +50,8 @@ exports.handlers = {
|
||||
|
||||
sourceFileName = toRelativePath(sourceFileName);
|
||||
sourceFileName = relativePathToNamespace(sourceFileName);
|
||||
return sourceFileName += extension;
|
||||
sourceFileName = sourceFileName += extension;
|
||||
return sourceFileName;
|
||||
}
|
||||
|
||||
function getOutputDirectory() {
|
||||
@ -71,12 +73,12 @@ exports.handlers = {
|
||||
var outputFileName = makeOutputFileName(e.filename);
|
||||
var sourceCode = e.source;
|
||||
|
||||
/*// Debug
|
||||
/*
|
||||
print('source file name = ' + e.filename);
|
||||
print('output file name = ' + outputFileName);
|
||||
print('output directory = ' + outputDirectory);
|
||||
print('sourceCode = ' + sourceCode);
|
||||
//*/
|
||||
*/
|
||||
|
||||
// write source to file with a unique name
|
||||
generateHighlightedSourceFile(outputDirectory, outputFileName, sourceCode);
|
||||
|
||||
@ -30,12 +30,12 @@ exports.publish = function(outputDirectory, outputFileName, sourceCode) {
|
||||
var view = new template.Template(templatePath);
|
||||
var outputContent = view.render(templateName, templateData);
|
||||
|
||||
/*// Debug
|
||||
/*
|
||||
console.log('templateData : ' + templateData);
|
||||
console.log('outputDirectory : ' + outputDirectory);
|
||||
console.log('outputFile : ' + outputFile);
|
||||
console.log('outputContent : ' + outputContent);
|
||||
//*/
|
||||
*/
|
||||
fs.mkPath(outputDirectory);
|
||||
fs.writeFileSync(outputFile, outputContent);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user