Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug] Since 2.78 docfx fails if node.js is not found even when not generating pdf #10415

@kschelfthoutelement

Description

@kschelfthoutelement

Describe the bug
I understand node.js was removed from the DocFx package since v2.78. I also understand from the documentation that node.js should only be necessary when generating pdf.

Yet, I set "pdf": false in my config and I still get the exception. (I do indeed not have node.js installed)

To Reproduce
Steps to reproduce the behavior:

  1. Part of config:
{
  "build": {
    "globalMetadata": {
      "pdf": false
    }
  }
}
  1. dotnet tool run docfx docfx.json

Exception complaing about node.js

Also tried adding pdf: false to my toc, didn't make any difference.

Expected behavior

Docfx generates the html

Context (please complete the following information):

  • OS: Windows/docker
  • Docfx version: 2.78

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions