New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add link to inline-css #2
Conversation
@@ -22,6 +21,12 @@ a roots extension for inlining your CSS properties into the style attribute in a | |||
extensions: [ rootsInlineCss(options) ] | |||
``` | |||
|
|||
### Usage | |||
|
|||
This extension provides a way for you to inline your html with css. By default all of your `html` files will be inlined however you can specify through options which files you want inlined either with a single file or a [glob expression](http://www.globtester.com/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd rather we reference the actual https://github.com/isaacs/minimatch library, since it will provide the dev with api reference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
ce1f55e
to
a8503b8
Compare
@@ -10,9 +10,12 @@ a roots extension for inlining your CSS properties into the style attribute in a | |||
|
|||
- make sure you are in your roots project directory | |||
- `npm install roots-inline-css --save` | |||
- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra whitespace
@@ -22,6 +24,10 @@ a roots extension for inlining your CSS properties into the style attribute in a | |||
extensions: [ rootsInlineCss(options) ] | |||
``` | |||
|
|||
This extension provides a way for you to inline your html with css. By default all of your `html` files will be inlined however you can specify through options which files you want inlined either with a single file or a [glob expression]( https://github.com/isaacs/minimatch). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space in markdown anchor src
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This space was to separate the explanation from the code snippet. Should I still remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space not extra newline.
[glob expression]( https://github.com/isaacs/minimatch)
should become
[glob expression](https://github.com/isaacs/minimatch)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that arrays and hashes have a space between the bracket and element. Is this for readability?
[ rootsInlineCss(options) ]
as an example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah
Used roots-yaml as reference.