urso / jsdoc-simple

modified standard jsdoc toolkit (Version 2) template
17 stars 5 forks source link

New cssFile option #1

Closed cobhimself closed 13 years ago

cobhimself commented 13 years ago

I dig your jsdoc template! Great work!

I've forked it and modified it to allow for a new user defined 'cssFile' option (on the command line, it would look like this: -D="cssFile:userDefinedCssFile.css". As it stands, the parameter takes a filename string relative to the template's static directory so the css file would need to be placed within the jsdoc-simple/static folder in order for the user to use it. If no cssFile option is defined, the default.css file is used.

I've included a new css file, blue.css, that you can use to test. The option you would use would be -D="cssFile:blue.css".

The template files were also updated to support this new functionality.

urso commented 13 years ago

Nice work.

I would do it, but atm have not that much time, but can you please document this new option in the README too before I do the merge? The section Features and Usage I think.

thanks!

cobhimself commented 13 years ago

Documentation updated.

cobhimself commented 13 years ago

Heh, didn't mean to close the pull request.

urso commented 13 years ago

Thanks, great work!