clenemt / docdash

:zap: Lodash inspired JSDoc 3 template/theme
http://clenemt.github.io/docdash/
Other
824 stars 201 forks source link

docdash.private = false doesn't work #71

Closed A-312 closed 5 years ago

A-312 commented 5 years ago

image

I want to disable private in navigation menu. I try docdash.private or docdash.static but they don't make any change.

jsdoc.json:

{
  "opts": {
    "destination": "./.doc/",
    "private": true,
    "template": "node_modules/docdash",
    "readme": "README.md",
    "tutorials": "doc/",
    "package": "package.json"
  },
  "docdash": {
    "private": false
  }
}

gulpfile.js:

const path = require('path')

const del = require('del')
const gulp = require('gulp')
const jsdoc = require('gulp-jsdoc3')

const normalizeSEP = (str) => str.replace(/\//g, path.sep)

process.chdir(path.resolve(__dirname))

const docFolder = path.resolve(__dirname, '.doc')

const cleanDoc = () => del([
  docFolder
])

const src = [
  './bin/**/*.js'
].map(normalizeSEP)

const generateDoc = () => 
  gulp.src(src, {read: false})
    .pipe(jsdoc(require('./jsdoc.json')))

gulp.task('doc', gulp.series(cleanDoc, generateDoc))

My script :


/**
 * This function load a specific CSS Engine.
 *
 * @private
 * @memberof   AppExpress
 * @param      {string}    engine     Name of engine to add
 */
function registerCSSEngine(engine) {