Commit 4565e235 by Alexis Svinartchouk

fixed some typos in the docs

parent 358a2dae
......@@ -8,7 +8,7 @@ Compilers
Coffee Script compiler
======================
The Coffee Script compiler use `Coffee Script <http://jashkenas.github.com/coffee-script/>`_
The Coffee Script compiler uses `Coffee Script <http://jashkenas.github.com/coffee-script/>`_
to compile your javascripts.
To use it add this to your ``PIPELINE_COMPILERS`` ::
......@@ -35,7 +35,7 @@ To use it add this to your ``PIPELINE_COMPILERS`` ::
LESS compiler
=============
The LESS compiler use `LESS <http://lesscss.org/>`_
The LESS compiler uses `LESS <http://lesscss.org/>`_
to compile your stylesheets.
To use it add this to your ``PIPELINE_COMPILERS`` ::
......@@ -62,7 +62,7 @@ To use it add this to your ``PIPELINE_COMPILERS`` ::
SASS compiler
=============
The SASS compiler use `SASS <http://sass-lang.com/>`_
The SASS compiler uses `SASS <http://sass-lang.com/>`_
to compile your stylesheets.
To use it add this to your ``PIPELINE_COMPILERS`` ::
......@@ -91,7 +91,7 @@ To use it add this to your ``PIPELINE_COMPILERS`` ::
Stylus compiler
===============
The Stylus compiler use `Stylus <http://learnboost.github.com/stylus/>`
The Stylus compiler uses `Stylus <http://learnboost.github.com/stylus/>`
to compile your stylesheets.
To use it add this to your ``PIPELINE_COMPILERS`` ::
......@@ -121,10 +121,10 @@ To use it add this to your ``PIPELINE_COMPILERS`` ::
Write your own compiler class
=============================
To write your own compiler class, for example want to implement other types
You can write your own compiler class, for example if you want to implement other types
of compilers.
All you need to do is to create a class that inherits from ``pipeline.compilers.CompilerBase``
To do so, you just have to create a class that inherits from ``pipeline.compilers.CompilerBase``
and implements ``match_file`` and ``compile_file`` when needed.
Finally, specify it in the tuple of compilers ``PIPELINE_COMPILERS`` in the settings.
......@@ -132,7 +132,7 @@ Finally, specify it in the tuple of compilers ``PIPELINE_COMPILERS`` in the sett
Example
-------
A custom compiler for a imaginary compiler called jam ::
A custom compiler for an imaginary compiler called jam ::
from pipeline.compilers import CompilerBase
......
......@@ -8,7 +8,7 @@ Compressors
YUI Compressor compressor
=========================
The YUI compressor use `yui-compressor <http://developer.yahoo.com/yui/compressor/>`_
The YUI compressor uses `yui-compressor <http://developer.yahoo.com/yui/compressor/>`_
for compressing javascript and stylesheets.
To use it for your stylesheets add this to your ``PIPELINE_CSS_COMPRESSOR`` ::
......@@ -50,7 +50,7 @@ To use it for your javascripts add this to your ``PIPELINE_JS_COMPRESSOR`` ::
Closure Compiler compressor
===========================
The Closure compressor use `Google Closure Compiler <http://code.google.com/closure/compiler/>`_
The Closure compressor uses `Google Closure Compiler <http://code.google.com/closure/compiler/>`_
to compress javascripts.
To use it add this to your ``PIPELINE_JS_COMPRESSOR`` ::
......@@ -83,7 +83,7 @@ To use it add this to your ``PIPELINE_JS_COMPRESSOR`` ::
UglifyJS compressor
===================
The UglifyJS compressor use `UglifyJS <https://github.com/mishoo/UglifyJS/>`_ to
The UglifyJS compressor uses `UglifyJS <https://github.com/mishoo/UglifyJS/>`_ to
compress javascripts.
To use it add this to your ``PIPELINE_JS_COMPRESSOR`` ::
......@@ -110,7 +110,7 @@ To use it add this to your ``PIPELINE_JS_COMPRESSOR`` ::
JSMin compressor
================
The jsmin compressor use Douglas Crockford jsmin tool to
The jsmin compressor uses Douglas Crockford jsmin tool to
compress javascripts.
To use it add this to your ``PIPELINE_JS_COMPRESSOR`` ::
......@@ -125,7 +125,7 @@ Install the jsmin library with your favorite Python package manager ::
CSSTidy compressor
==================
The CSStidy compressor use `CSStidy <http://csstidy.sourceforge.net/>`_ to compress
The CSStidy compressor uses `CSStidy <http://csstidy.sourceforge.net/>`_ to compress
stylesheets.
To us it for your stylesheets add this to your ``PIPELINE_CSS_COMPRESSOR`` ::
......@@ -163,10 +163,10 @@ Install the cssmin library with your favorite Python package manager. E.g. ::
Write your own compressor class
===============================
To write your own compressor class, for example want to implement other types
You can write your own compressor class, for example if you want to implement other types
of compressors.
All you need to do is to create a class that inherits from ``pipeline.compressors.CompressorBase``
To do so, you just have to create a class that inherits from ``pipeline.compressors.CompressorBase``
and implements ``compress_css`` and/or a ``compress_js`` when needed.
Finally, add it to ``PIPELINE_CSS_COMPRESSOR`` or
......@@ -175,7 +175,7 @@ Finally, add it to ``PIPELINE_CSS_COMPRESSOR`` or
Example
-------
A custom compressor for a imaginary compressor called jam ::
A custom compressor for an imaginary compressor called jam ::
from pipeline.compressors import CompressorBase
......
......@@ -51,7 +51,7 @@ Group options
**Required**
Is a tuple with the source files to be compressed.
The files are concatenated in the order it is specified in the tuple.
The files are concatenated in the order specified in the tuple.
``output_filename``
......@@ -147,7 +147,7 @@ Other settings
``PIPELINE_TEMPLATE_EXT``
.........................
The extension for which Pipeline will consider the file as a Javascript templates.
The extension for which Pipeline will consider the file as a Javascript template.
To use a different extension, like ``.mustache``, set this settings to ``.mustache``.
Defaults to ``".jst"``
......@@ -157,7 +157,7 @@ Other settings
JavaScript function that compiles your JavaScript templates.
Pipeline doesn't bundle a javascript template library, but the default
settings is to use the
setting is to use the
`underscore <http://documentcloud.github.com/underscore/>`_ template function.
Defaults to ``"_.template"``
......@@ -167,7 +167,7 @@ Embedding fonts and images
==========================
You can embed fonts and images directly in your compiled css, using Data-URI in
modern browser.
modern browsers.
To do so, setup variant group options to the method you wish to use : ::
......@@ -192,8 +192,8 @@ Images and fonts are embedded following these rules :
Rewriting CSS urls
==================
If source CSS contain a relative URL (i.e. relative to current file),
those URL will be converted to full relative path.
If the source CSS contains relative URLs (i.e. relative to current file),
those URLs will be converted to full relative path.
Wrapped javascript output
......
......@@ -9,7 +9,7 @@ Installation
pip install django-pipeline
2. Add 'compress' to your ``INSTALLED_APPS`` ::
2. Add 'pipeline' to your ``INSTALLED_APPS`` ::
INSTALLED_APPS = (
'pipeline',
......
......@@ -4,7 +4,7 @@
Signals
=======
A list of all signals send by pipeline.
List of all signals sent by pipeline.
css_compressed
--------------
......
......@@ -7,7 +7,7 @@ Storages
Using with a custom storage
===========================
Pipeline use `Django Storage <https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#storages>`_
Pipeline uses `Django Storage <https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#storages>`_
to read, save and delete files, by default it use an improved ``StaticFilesStorage``.
You can provide your own via ``PIPELINE_STORAGE`` : ::
......
......@@ -26,7 +26,7 @@ For example, if you have the following template ``js/templates/photo/detail.jst`
</div>
</div>
They will be available from your javascript code via window.JST ::
It will be available from your javascript code via window.JST ::
JST.photo_detail({ src:"images/baby-panda.jpg", caption:"A baby panda is born" });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment