Comments (13)
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.
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.
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.
Setting output style to compressed should remove multiline comments /* comment */
if I'm not mistaking.
from styledown.
Nah, it doesn't, you'll need to specify all filenames like styledown app/css/*/*.scss
or something to that effect.
from styledown.
👍 +1
from styledown.
👍🏼+1
from styledown.
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.
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.
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.
BTW: use compressed output for production CSS, then als /**/ Comments are stripped.
Rewrite all my style isn't an option. :(
from styledown.
I'm with @AdrianoCahete, @MatthieuScarset and @Marc3llo. Please keep the inline CSS documentation!
from styledown.
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)
- Css components order HOT 2
- Navigation feature HOT 10
- Api problem when passing list of files
- Space after inline elements removed HOT 3
- Concatenate sections HOT 2
- Styledown.parse([Array]) fails to process CSS files that come after the first .md filej.
- Couldn't run it on Windows HOT 2
- Markdown config not working as expected for HTML inline comments HOT 1
- Styledown failes to proccess css example into html HOT 2
- Styledown: Command Not Found HOT 7
- html attributes in styledown comments HOT 2
- can't run syledown HOT 2
- Adding a Basic Markdown page. HOT 1
- Image source in inline css comment HOT 1
- Using comments, strange 'closing bracket' appears
- Use `node-glob` to properly cross-platform expand globbing syntax
- Jade has been deprecated, upgrade to Pug?
- ENOENT: no such file or directory HOT 1
- -bash: styledown: command not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from styledown.