oddbird / sassdoc-theme-herman

An Odd SassDoc theme.
http://oddbird.net/herman/
MIT License
117 stars 11 forks source link

SassDoc annotations on nested selectors #25

Open stacyk opened 8 years ago

stacyk commented 8 years ago

Maybe it is just our SCSS Lint config, but if you are trying to add SassDoc documentation to a nested element, it won't display on the styleguide. If you instead remove the indent, then it will compile but with errors (and in turn, our deployment will fail).

Maybe this isn't an issue and rather an opportunity to clean up the scss partial.

stacyk commented 8 years ago

https://github.com/SassDoc/sassdoc/issues/458

Changing sasslint config to indentation: 1 for now ...

davisagli commented 7 years ago

Possibly relevant: https://github.com/SassDoc/scss-comment-parser/pull/25

deap82 commented 5 years ago

Just thought I'd share, if you're using gulp for sassdoc, install gulp-replace and then do this:

    return gulp.src(scssPaths)
        .pipe(replace('\t\t\t/// @', '/// @'))
        .pipe(replace('\t\t/// @', '/// @'))
        .pipe(replace('\t/// @', '/// @'))
        .pipe(sassdoc(options));