Styleguide icon indicating copy to clipboard operation
Styleguide copied to clipboard

Paths are incorrect, when custom styleguide path is provided

Open VaclovasV opened this issue 9 years ago • 3 comments

image As we talked, when custom styleguide path is provided, paths are incorrect in this case. We should make same paths for styleguide web and back-end parts, now they are interpreted differently. styleguide index.html should be considered as a root.

VaclovasV avatar Jul 26 '16 08:07 VaclovasV

Glad to see that I'm not the only one having this problem. Anyone found a fix for this?

shainanigans avatar Aug 11 '16 00:08 shainanigans

Is anyone having issues where you haven't included your styleguide folder in the root of the project? I have included mine as project/wwwRoot/styleguide and I'm having issues with styleguide finding the files it needs when the server is using wwwRoot as the root folder. Actually, I think I'm having the same issue as #145 so I'll post in there.

AshleyJBartlett avatar Aug 19 '16 15:08 AshleyJBartlett

I'm a bit late to the party but you can probably get around the problem by editing your gulpfile.js like this:

var styleguide = require('devbridge-styleguide');

gulp.task('start-styleguide', function () {
    styleguide.startServer({
        styleguidePath: 'public/styleguide'
    });
});

0xs avatar Oct 15 '16 10:10 0xs