@mocha/docdash
Advanced tools
Comparing version 2.1.3 to 3.0.0
{ | ||
"name": "@mocha/docdash", | ||
"version": "2.1.3", | ||
"version": "3.0.0", | ||
"description": "A JSDoc template for Mocha, forked from docdash", | ||
@@ -5,0 +5,0 @@ "main": "publish.js", |
@@ -246,3 +246,9 @@ /*global env: true */ | ||
} | ||
if (filename !== 'index.html') { | ||
html = `--- | ||
permalink: "api/{{page.fileSlug}}.html" | ||
--- | ||
` + html; | ||
} | ||
fs.writeFileSync(outpath, html, 'utf8'); | ||
@@ -319,3 +325,3 @@ } | ||
var itemsNav = ''; | ||
var docdash = env && env.conf && (env.conf.mochaDocdash || env.conf.docdash || {}); | ||
var docdash = env && env.conf && (env.conf['mocha-docdash'] || env.conf.docdash || {}); | ||
var level = typeof docdash.navLevel === 'number' && docdash.navLevel >= 0 ? | ||
@@ -754,5 +760,11 @@ docdash.navLevel : | ||
var html = view.render('tutorial.tmpl', tutorialData); | ||
// yes, you can use {@link} in tutorials too! | ||
html = helper.resolveLinks(html); // turn {@link foo} into <a href="foodoc.html">foo</a> | ||
if (filename !== 'index.html') { | ||
html = `--- | ||
permalink: "api/{{page.fileSlug}}.html" | ||
--- | ||
` + html; | ||
} | ||
fs.writeFileSync(tutorialPath, html, 'utf8'); | ||
@@ -759,0 +771,0 @@ } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
198786
1758
0