Add docs for Sass conversion.

This commit is contained in:
Parker Moore 2014-01-12 21:28:54 -08:00
parent 66732b91c1
commit 6b92126fd8
5 changed files with 54 additions and 8 deletions

View File

@ -3,7 +3,7 @@
<h4>Getting Started</h4> <h4>Getting Started</h4>
{% include docs_ul.html items='home quickstart installation usage structure configuration' %} {% include docs_ul.html items='home quickstart installation usage structure configuration' %}
<h4>Your Content</h4> <h4>Your Content</h4>
{% include docs_ul.html items='frontmatter posts drafts pages variables datafiles migrations' %} {% include docs_ul.html items='frontmatter posts drafts pages variables datafiles assets migrations' %}
<h4>Customization</h4> <h4>Customization</h4>
{% include docs_ul.html items='templates permalinks pagination plugins extras' %} {% include docs_ul.html items='templates permalinks pagination plugins extras' %}
<h4>Deployment</h4> <h4>Deployment</h4>

View File

@ -5,7 +5,7 @@
{% include docs_option.html items='home quickstart installation usage structure configuration' %} {% include docs_option.html items='home quickstart installation usage structure configuration' %}
</optgroup> </optgroup>
<optgroup label="Your Content"> <optgroup label="Your Content">
{% include docs_option.html items='frontmatter posts drafts pages variables datafiles migrations' %} {% include docs_option.html items='frontmatter posts drafts pages variables datafiles assets migrations' %}
</optgroup> </optgroup>
<optgroup label="Customization"> <optgroup label="Customization">
{% include docs_option.html items='templates permalinks pagination plugins extras' %} {% include docs_option.html items='templates permalinks pagination plugins extras' %}

46
site/docs/assets.md Normal file
View File

@ -0,0 +1,46 @@
---
layout: docs
title: Assets
prev_section: datafiles
next_section: migrations
permalink: /docs/assets/
---
Jekyll provides built-in support for Sass and CoffeeScript. In order to use
them, create a file with the proper extension name (one of `.sass`, `.scss`,
or `.coffee`) and start the file with two lines of triple dashes, like this:
{% highlight sass %}
---
---
// start content
.my-definition
font-size: 1.2em
{% endhighlight %}
## Sass/SCSS
Jekyll allows you to customize your Sass conversion in certain ways.
If you are using Sass `@import` statements, you'll need to ensure that your
`sass_dir` is set to the base directory that contains your Sass files. You
can do that thusly:
{% highlight yaml %}
sass:
sass_dir: _sass
{% endhighlight %}
The Sass converter will default to `_sass`.
You may also specify the output style with the `style` option in your
`_config.yml` file:
{% highlight yaml %}
sass:
style: :compressed
{% endhighlight %}
These are passed to Sass, so any output style options Sass supports are valid
here, too.

View File

@ -2,7 +2,7 @@
layout: docs layout: docs
title: Data Files title: Data Files
prev_section: variables prev_section: variables
next_section: migrations next_section: assets
permalink: /docs/datafiles/ permalink: /docs/datafiles/
--- ---

View File

@ -1,7 +1,7 @@
--- ---
layout: docs layout: docs
title: Blog migrations title: Blog migrations
prev_section: datafiles prev_section: assets
next_section: templates next_section: templates
permalink: /docs/migrations/ permalink: /docs/migrations/
--- ---