How to use the jsdoc/path.resolve function in jsdoc

To help you get started, we’ve selected a few jsdoc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SAP / ui5-webcomponents / packages / tools / lib / jsdoc / plugin.js View on Github external
pathPrefixes = env.opts._.reduce(function(result, fileOrDir) {
			fileOrDir = path.resolve( path.normalize(fileOrDir) );
			if ( fs.statSync(fileOrDir).isDirectory() ) {
				// ensure a trailing path separator
				if ( fileOrDir.indexOf(path.sep, fileOrDir.length - path.sep.length) < 0 ) {
					fileOrDir += path.sep;
				}
				result.push(fileOrDir);
			}
			return result;
		}, []);
		resourceNamePrefixes = pluginConfig.resourceNamePrefixes || [];
github collinhover / impactplusplus / tools / jsdoc3 / templates / impactplusplus / publish.js View on Github external
function resolveSourcePath(filepath) {
    return path.resolve(process.cwd(), filepath);
}
github camptocamp / ngeo / jsdoc / template / publish.js View on Github external
staticFilePaths.forEach(function(filePath) {
            var extraStaticFiles;

            filePath = path.resolve(env.pwd, filePath);
            extraStaticFiles = staticFileScanner.scan([filePath], 10, staticFileFilter);

            extraStaticFiles.forEach(function(fileName) {
                var sourcePath = fs.toDir(filePath);
                var toDir = fs.toDir( fileName.replace(sourcePath, outdir) );
                fs.mkPath(toDir);
                fs.copyFileSync(fileName, toDir);
            });
        });
    }
github erinspice / confluence-jsdoc-template / publish.js View on Github external
function resolveSourcePath(filepath) {
    return path.resolve(process.cwd(), filepath);
}
github davidshimjs / jaguarjs-jsdoc / publish.js View on Github external
function resolveSourcePath(filepath) {
    return path.resolve(process.cwd(), filepath);
}
github SAP / openui5 / lib / jsdoc / ui5 / plugin.js View on Github external
function getRelativePath(filename) {
	var relative = path.resolve(filename);
	for ( var i = 0; i < pathPrefixes.length; i++ ) {
		if ( relative.indexOf(pathPrefixes[i]) === 0 ) {
			relative = relative.slice(pathPrefixes[i].length);
			break;
		}
	}
	return relative.replace(/\\/g, '/');
}
github IGNF / geoportal-access-lib / doc / jaguarjs-jsdoc / publish.js View on Github external
function resolveSourcePath(filepath) {
    return path.resolve(process.cwd(), filepath);
}
github melonjs / melonJS / tasks / jsdoc-template / publish.js View on Github external
staticFilePaths.forEach(function(filePath) {
            var extraStaticFiles;

            filePath = path.resolve(env.pwd, filePath);
            extraStaticFiles = staticFileScanner.scan([filePath], 10, staticFileFilter);

            extraStaticFiles.forEach(function(fileName) {
                var sourcePath = fs.toDir(filePath);
                var toDir = fs.toDir( fileName.replace(sourcePath, outdir) );
                fs.mkPath(toDir);
                fs.copyFileSync(fileName, toDir);
            });
        });
    }
github cuthbertLab / music21j / node_modules / jsdoc / templates / default / publish.js View on Github external
staticFilePaths.forEach(function(filePath) {
            var extraStaticFiles;

            filePath = path.resolve(env.pwd, filePath);
            extraStaticFiles = staticFileScanner.scan([filePath], 10, staticFileFilter);

            extraStaticFiles.forEach(function(fileName) {
                var sourcePath = fs.toDir(filePath);
                var toDir = fs.toDir( fileName.replace(sourcePath, outdir) );
                fs.mkPath(toDir);
                fs.copyFileSync(fileName, toDir);
            });
        });
    }