ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Every example in Tutorial mis-references CSS

Open amac44 opened this issue 12 years ago • 5 comments

Is it me or does every example in the tutorial contain: <script src="/release/ui-grid-unstable.css"></script>

Shouldn't this be <link rel="stylesheet" href="/release/ui-grid-unstable.css" /> ?

For example, line 10 in http://ui-grid.info/docs/#/tutorial/102_sorting . But every example has it the same way.

Or am I missing something.

amac44 avatar Oct 08 '14 17:10 amac44

It's because grunt-ngdocs is silly.

c0bra avatar Oct 08 '14 18:10 c0bra

We could ask @KiwiNiksta to fix grunt-ngdocs....but presume it's not breaking anything anyway?

PaulL1 avatar Oct 08 '14 20:10 PaulL1

Yea it just looks weird. grunt-ngdocs was only built with some minimal use-cases in mind unfortunately.

c0bra avatar Oct 08 '14 20:10 c0bra

This one looks like it cannot easily be fixed. grunt-ngdocs takes either versioned files or style files. We're using versioned files for the ui-grid.js and ui-grid.css. They're called ui-grid-unstable.js and ui-grid-unstable.css when built locally, when there's a distribution created they're called ui-grid.js and ui-grid.css. The relevant configuration is in lines 444-451 of gruntFile.js. What would be nice is if grunt-ngdocs honoured the js and css tags that are in there, but it doesn't.

PaulL1 avatar Oct 11 '14 17:10 PaulL1

Closing on the basis that it doesn't break anything, and it's an upstream problem.

PaulL1 avatar May 27 '15 06:05 PaulL1