eliias / grunt-docco

Uses docco to generate nice HTML docs out of your annotated source.
MIT License
4 stars 5 forks source link

css option not working #2

Closed PunkChameleon closed 11 years ago

PunkChameleon commented 11 years ago

Hey all,

Great grunt plugin. However, when I add 'css' as an option to import my own stylesheet, it's not actually moving the stylesheet into docs. Here is my grunt tasks:

 docco: {
        debug: {
            src: [
                'public/js/*.js'
            options: {
                output: 'docs',
                css: 'public/css/docco_altered.css'
            }
        }
    }

The file is pointing to 'docco_altered.css', but in the docs directory, and there is none there. Any pointers?

eliias commented 11 years ago

Hello Nick,

there is also an issue with nested directories at the moment. I have forked the orginal grunt-docco task some time agot because it was not cappable of working with docco 0.6.2 at the item I need it.

You might try to use grunt-docco instead of grunt-docco2 as this project is actively maintained. https://github.com/DavidSouther/grunt-docco/commits/master

I hope I will have some time to fix this in the near future. Sorry for the inconvenience.

Kind Regards, Hannes

Am 15.08.2013 um 20:22 schrieb Nick Weingartner notifications@github.com:

Hey all,

Great grunt plugin. However, when I add 'css' as an option to import my own stylesheet, it's not actually moving the stylesheet into docs. Here is my grunt tasks:

docco: { debug: { src: [ 'public/js/*.js' options: { output: 'docs', css: 'public/css/docco_altered.css' } } } The file is pointing to 'docco_altered.css', but in the docs directory, and there is none there. Any pointers?

— Reply to this email directly or view it on GitHub.

eliias commented 11 years ago

I have updated the plugin (and the docco version used by the plugin). You might try again now.

PunkChameleon commented 11 years ago

I am trying now, but it seems that now the entire directory is getting copied by into the output folder. Is it possible to output the flat html file hierarchy like before? As of now it's copying over my JS directory structure and putting the HTML in that

PunkChameleon commented 11 years ago

I've verified that this is how the normal docco works, but also the grunt-docco plugin creates the folder hierarchy as well.

Since the CSS does indeed work, i'll close this issue and bring up the other in another.