Skip to content

TypeDoc doesn't render comments with Handlebars 4.6.0 #1159

@socsieng

Description

@socsieng

Expected Behavior

Comments should be rendered when generating documents using globally installed typedoc. (i.e. npm install typedoc --global)

Note that it works as expected when installed locally.

# doesn't work - documentation rendered without comments
typedoc --out docs

# works - documentation rendered with comments
node_modules/.bin/typedoc --out docs

Expected:

Screen Shot 2020-01-09 at 2 31 38 AM

Actual Behavior

Comments aren't included when run using typedoc global install.

Screen Shot 2020-01-09 at 2 31 03 AM

The comment section is missing from the html output:

<section class="tsd-panel tsd-comment">
  <div class="tsd-comment tsd-typography">
    <div class="lead">
      <p>Base class for animals</p>
    </div>
  </div>
</section>

Steps to reproduce the bug

Command:

npm install typedoc --global

git clone https://github.com/socsieng/typedoc-plugin-typescript-declaration.git
cd typedoc-plugin-typescript-declaration/example
typedoc --out docs
open docs/classes/_index_.example.animal.html

Environment

  • Typedoc version: 0.15.6
  • Node.js version: 8.16.0
  • npm version: 6.4.1
  • nvm version: 0.34.0
  • OS: macOS Catalina 10.15.1 (19B88)

Metadata

Metadata

Assignees

No one assigned

    Labels

    externalProblem lies outside of TypeDoc

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions