Giter Site home page Giter Site logo

Comments (13)

marcelhadorn avatar marcelhadorn commented on September 26, 2024 4

I also vote for keeping the inline CSS solution. With good organised CSS the inline docs are just as well organised. However, an option to somehow add spacers between element groups or even a anchor navigation would be fantastic!

BTW: use compressed output for production CSS, then als /**/ Comments are stripped.

from styledown.

AdrianoCahete avatar AdrianoCahete commented on September 26, 2024 3

once your site gets big, organizing comments in CSS files gets very messy.

I think exactly the opposite. When you have a big project, if documentation isn't easy to find/update, they'll be out of date. And the best location to find docs is inside sass files.

You can create/edit a sass file and update docs at the same time. If you move docs from outside sass file, people will stop update the docs, because many reasons (less time, eternal "todo" and etc).

But yes, if you didn't strip comments to output file, this is will be a mess, this is why original issue is to parse Sass comment style.

I hope you can change your mind. :)

from styledown.

MatthieuScarset avatar MatthieuScarset commented on September 26, 2024 3

I agree with @AdrianoCahete

The issue is not with inline commenting, it's just about how modular is your CSS.

For instance, if I'm about to change some styles of my site header I'm expecting to find all the doc and styles at the same place, within the SASS /modules/header.sass

This way, I can edit my styles and right new documentation at the same time.
I don't repeat myself.
It's good practice.

You should definitely keep inline CSS documentation

from styledown.

mdings avatar mdings commented on September 26, 2024 2

Setting output style to compressed should remove multiline comments /* comment */ if I'm not mistaking.

from styledown.

rstacruz avatar rstacruz commented on September 26, 2024 1

Nah, it doesn't, you'll need to specify all filenames like styledown app/css/*/*.scss or something to that effect.

from styledown.

ryanmclaughlin avatar ryanmclaughlin commented on September 26, 2024

👍 +1

from styledown.

marcelhadorn avatar marcelhadorn commented on September 26, 2024

👍🏼+1

from styledown.

AdrianoCahete avatar AdrianoCahete commented on September 26, 2024

Setting output style to compressed should remove multiline comments /* comment */ if I'm not mistaking.

In SCSS, comments with dual slashes (// comment) is already removed from final file, independent of selected output. But styledown didn't read that as comment and change this in my projects (a HUGE project) isn't a option.

from styledown.

rstacruz avatar rstacruz commented on September 26, 2024

Hi friends,

I'm planning to build styledown 2 soon, and one of the biggest changes will be that inline CSS documentation will not be supported anymore. In retrospect, it was a mistake... once your site gets big, organizing comments in CSS files gets very messy.

The existing .md format will continue to be supported.

Would love the community's comments on this!

from styledown.

josephrexme avatar josephrexme commented on September 26, 2024

Just curious ya'll. Do you run styledown against your .scss files? It says it doesn't favor preprocessors. Will it recursively look through @imports ?

from styledown.

AdrianoCahete avatar AdrianoCahete commented on September 26, 2024

BTW: use compressed output for production CSS, then als /**/ Comments are stripped.

Rewrite all my style isn't an option. :(

from styledown.

mzdr avatar mzdr commented on September 26, 2024

I'm with @AdrianoCahete, @MatthieuScarset and @Marc3llo. Please keep the inline CSS documentation!

from styledown.

planktonWD avatar planktonWD commented on September 26, 2024

I'm with @AdrianoCahete, @MatthieuScarset, @mzdr and @Marc3llo! I love the inline CC documentation and would never use md for documenting CSS. I use grunt-styedown and create two compiled CSS files. One is compressed and used for the site, other is uncompressed and used for styledown. I've had to create special .js and .css files for stydedown to hide CSS comments and only show the jade comments but it is working great. Love to contribute to a .scss only styledown system if V2 is on the cards.

from styledown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.