docdash-custom
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "docdash-custom", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A clean, responsive documentation template theme for JSDoc 3 inspired by lodash and minami", | ||
@@ -5,0 +5,0 @@ "main": "publish.js", |
@@ -431,3 +431,2 @@ /*global env: true */ | ||
var nav = '<h2><a href="index.html">Home</a></h2>'; | ||
nav += '<h2><a href="version.html">Versions</a></h2>'; | ||
var seen = {}; | ||
@@ -708,4 +707,2 @@ var seenTutorials = {}; | ||
generate('', 'Versions', [{kind: 'mainpage', readme: renderVersionContent()}], versionUrl); | ||
// index page displays information from package.json and lists files | ||
@@ -719,3 +716,3 @@ var files = find({kind: 'file'}); | ||
kind: 'mainpage', | ||
readme: opts.readme, | ||
readme: renderHomeContent(), | ||
longname: (opts.mainpagetitle) ? opts.mainpagetitle : 'Main Page' | ||
@@ -796,3 +793,3 @@ }] | ||
function renderVersionContent() { | ||
function renderHomeContent() { | ||
const env = require('jsdoc/env'); | ||
@@ -804,8 +801,7 @@ const fs = require('jsdoc/fs'); | ||
if (env.opts.versionPage) { | ||
let content = fs.readFileSync(env.opts.versionPage, env.opts.encoding); | ||
if (env.opts.homePage) { | ||
let content = fs.readFileSync(env.opts.homePage, env.opts.encoding); | ||
const parse = markdown.getParser(); | ||
let template = ejs.compile(content); | ||
const tagInfo = env.conf.tagInfo.map(item => ({"version": item.version, "description": parse(item.description) })) | ||
content = template({version: env.conf.version, tagInfo}) | ||
content = template({...env.conf, tagInfo}) | ||
versionHtml = parse(content); | ||
@@ -812,0 +808,0 @@ } |
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
1266664
1672