Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new demo theme does not work #8

Open
jtorresfabra opened this issue Jun 26, 2016 · 2 comments
Open

new demo theme does not work #8

jtorresfabra opened this issue Jun 26, 2016 · 2 comments

Comments

@jtorresfabra
Copy link

jtorresfabra commented Jun 26, 2016

Hi @SunboX, I just tried your new theme example but it fails for me:
doing $grunt --stack --verbose

trace:

Initializing
Command-line options: --stack, --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.
Initializing config...OK

Registering "../../tasks" tasks.
Loading "documentation.js" tasks...OK
+ documentation
Loading "Gruntfile.js" tasks...OK
+ default

No tasks specified, running default tasks.
Running tasks: default

Running "default" task

Running "documentation" task

Running "documentation:default" (documentation) task
Verifying property documentation.default exists in config...OK
Files: src/ColorPoint.js -> ColorPoint.js
Files: src/Point.js -> Point.js
Options: format="html", shallow=false, github=false, access=["public","protected","undefined"], order=[], destination="docs", theme="/home/jtorres/Projects/grunt-documentation/demo/theme/documentation-theme-light"
>> TypeError: object is not a function
Warning: Task "documentation:default" failed. Use --force to continue.
Error: Task "documentation:default" failed.
    at Task.<anonymous> (/home/jtorres/Projects/grunt-documentation/demo/theme/node_modules/grunt/lib/util/task.js:205:15)
    at null._onTimeout (/home/jtorres/Projects/grunt-documentation/demo/theme/node_modules/grunt/lib/util/task.js:241:33)
    at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)

Aborted due to warnings.
@SunboX
Copy link
Member

SunboX commented Jun 26, 2016

Hey @jtorresfabra, I think this is related to documentationjs/documentation-theme-light#3

@jtorresfabra
Copy link
Author

jtorresfabra commented Jun 26, 2016

Hey @SunboX

I just investigated a bit and it seems the error is in
https://github.com/documentationjs/documentation/blob/master/lib/output/html.js#L35

as theme is an object instead of a function due to index.js being void.

Better said, the error is in the index.js of the template, it can not be void.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants