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,25 +2,25 @@
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/
--- ---
In addition to the [built-in variables](../variables/) available from Jekyll, In addition to the [built-in variables](../variables/) available from Jekyll,
you can specify your own custom data that can be accessed via the [Liquid you can specify your own custom data that can be accessed via the [Liquid
templating system](http://wiki.github.com/shopify/liquid/liquid-for-designers). templating system](http://wiki.github.com/shopify/liquid/liquid-for-designers).
Jekyll supports loading data from [YAML](http://yaml.org/) files located in the Jekyll supports loading data from [YAML](http://yaml.org/) files located in the
`_data` directory. `_data` directory.
This powerful feature allows you to avoid repetition in your templates and to This powerful feature allows you to avoid repetition in your templates and to
set site specific options without changing `_config.yml`. set site specific options without changing `_config.yml`.
Plugins/themes can also leverage Data Files to set configuration variables. Plugins/themes can also leverage Data Files to set configuration variables.
## The Data Folder ## The Data Folder
As explained on the [directory structure](../structure/) page, the `_data` As explained on the [directory structure](../structure/) page, the `_data`
folder is where you can store additional data for Jekyll to use when generating folder is where you can store additional data for Jekyll to use when generating
your site. These files must be YAML files (using either the `.yml` or `.yaml` your site. These files must be YAML files (using either the `.yml` or `.yaml`
extension) and they will be accessible via `site.data`. extension) and they will be accessible via `site.data`.

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/
--- ---