danielgtaylor / aglio

An API Blueprint renderer with theme support that outputs static HTML
4.75k stars 480 forks source link

text overflow are cropped with (...) missing important information #334

Open macayer opened 7 years ago

macayer commented 7 years ago

The problem is, in the default template, the params are cropped with (...) when too long. It can be a problem when you are searching for a param or to copy/paste a param.

screen shot 2017-07-04 at 2 22 43 pm

Solution A: Put a fix in the default template Solution B: Override this change with a custom.css

dl dt {
    text-overflow: inherit;
    overflow: visible;
}

I tried solution B, but I cannot figure out how to import a list of theme-style as mentioned.

// Generate API documentation
gulp.task('aglio', function () {
    gulp.src('doc/*.md')
        .pipe(aglio({
            template: 'default',
            themeStyle: 'default',
            themeStyle: 'public_html/custom.css',
            includePath: 'doc/includes/'
        }))
        .pipe(gulp.dest('public_html'));
});

Marc