Skip to content

Theme not working with the latest documentationjs code #3

Open

Description

@jainanshul

I get the following error when using this theme with the latest documentationjs code.

docs/node_modules/documentation/lib/commands/build.js:60
      throw err;
      ^

TypeError: theme is not a function
    at Object.makeHTML [as html] (docs/node_modules/documentation/lib/output/html.js:21:3)
    at onDocumented (docs/node_modules/documentation/lib/commands/build.js:63:47)
    at docs/node_modules/documentation/index.js:101:7
    at docs/node_modules/documentation/lib/input/dependency.js:45:5
    at ConcatStream.<anonymous> (docs/node_modules/documentation/node_modules/concat-stream/index.js:36:43)
    at emitNone (events.js:72:20)
    at ConcatStream.emit (events.js:166:7)
    at finishMaybe (docs/node_modules/documentation/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:475:14)
    at endWritable (docs/node_modules/documentation/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:485:3)
    at ConcatStream.Writable.end (docs/node_modules/documentation/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:455:41)

Activity

  1. jtorresfabra commented on Jun 26, 2016

    @jtorresfabra

    The error seems to be in https://github.com/documentationjs/documentation-theme-light/blob/master/index.js#L1 as it cannot be void, it needs to be a function with these signature:

    module.exports = function (comments, options, callback) {
    }

  2. pronebird commented on Mar 13, 2017

    @pronebird

    @jtorresfabra does not work with module.exports = function (comments, options, callback) {} either.

  3. ur300 commented on May 1, 2019

    @ur300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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