MCPcopy Index your code
hub / github.com/stdlib-js/stdlib / generate

Function generate

tools/docs/jsdoc/templates/html/publish.js:209–226  ·  view source on GitHub ↗
(title, docs, filename, resolveLinks)

Source from the content-addressed store, hash-verified

207}
208
209function generate(title, docs, filename, resolveLinks) {
210 resolveLinks = resolveLinks === false ? false : true;
211
212 var docData = {
213 env: env,
214 title: title,
215 docs: docs
216 };
217
218 var outpath = path.join(outdir, filename),
219 html = view.render('container.tmpl', docData);
220
221 if (resolveLinks) {
222 html = helper.resolveLinks(html); // turn {@link foo} into <a href="foodoc.html">foo</a>
223 }
224
225 fs.writeFileSync(outpath, html, 'utf8');
226}
227
228function generateSourceFiles(sourceFiles, encoding) {
229 encoding = encoding || 'utf8';

Callers 2

generateSourceFilesFunction · 0.85
publish.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…