Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
433 views
in Technique[技术] by (71.8m points)

使用typedoc和typedoc-neo-theme生成typescript文档,modules显示不来

使用typedoc和typedoc-neo-theme生成typescript文档,然后使用命令:

 typedoc --theme ./node_modules/typedoc-neo-theme/bin/default/

生成的html文档中左侧导航有display: none,这样左侧导航显示不出来。
image

我同时试了gulp打包:

var typedoc = require("gulp-typedoc");
var gulp = require("gulp");
gulp.task("typedoc", function() {
  return gulp
    .src(["src/**/*.ts"])
    .pipe(typedoc({
      module: "commonjs",
      target: "es5",
      includeDeclarations: true,
      out: "./docs",
      name: "Sea Lib Document",
      version: 'true',
      excludeExternals: 'true',
      theme: './node_modules/typedoc-neo-theme/bin/default'
    }))
    ;
});
gulp.task('default', gulp.series('typedoc'), function () {
  console.log('finished generated docs!');
});

请问如何才把左侧导航能够显示完整?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...