Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
d5575271
Commit
d5575271
authored
Oct 22, 2012
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update compressor and compiler docs
parent
55a3ae67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
23 deletions
+19
-23
docs/compilers.rst
+13
-13
docs/compressors.rst
+6
-10
No files found.
docs/compilers.rst
View file @
d5575271
...
...
@@ -23,13 +23,13 @@ To use it add this to your ``PIPELINE_COMPILERS`` ::
Command line to execute for coffee program.
You will most likely change this to the location of coffee on your system.
Defaults to ``'/usr/
local/bin/
coffee'``.
Defaults to ``'/usr/
bin/env
coffee'``.
``PIPELINE_COFFEE_SCRIPT_ARGUMENTS``
------------------------------------
Additional arguments to use when coffee is called.
Defaults to ``''``.
LESS compiler
...
...
@@ -50,7 +50,7 @@ To use it add this to your ``PIPELINE_COMPILERS`` ::
Command line to execute for lessc program.
You will most likely change this to the location of lessc on your system.
Defaults to ``'/usr/
local/bin/
lessc'``.
Defaults to ``'/usr/
bin/env
lessc'``.
``PIPELINE_LESS_ARGUMENTS``
---------------------------
...
...
@@ -74,15 +74,15 @@ To use it add this to your ``PIPELINE_COMPILERS`` ::
``PIPELINE_SASS_BINARY``
------------------------
Command line to execute for sass program.
You will most likely change this to the location of sass on your system.
Defaults to ``'/usr/
local/bin/
sass'``.
Defaults to ``'/usr/
bin/env
sass'``.
``PIPELINE_SASS_ARGUMENTS``
---------------------------
Additional arguments to use when sass is called.
Defaults to ``''``.
...
...
@@ -106,14 +106,14 @@ To use it add this to your ``PIPELINE_COMPILERS`` ::
Command line to execute for stylus program.
You will most likely change this to the location of stylus on your system.
Defaults to ``'/usr/
local/bin/
stylus'``.
Defaults to ``'/usr/
bin/env
stylus'``.
``PIPELINE_STYLUS_ARGUMENTS``
-----------------------------
Additional arguments to use when stylus is called.
Defaults to ``''``.
...
...
@@ -135,13 +135,13 @@ Example
A custom compiler for an imaginary compiler called jam ::
from pipeline.compilers import CompilerBase
class JamCompiler(CompilerBase):
output_extension = 'js'
def match_file(self, filename):
return filename.endswith('.jam')
def compile_file(self, infile, outfile, outdated=False, force=False):
if not outdated and not force:
return # No need to recompiled file
...
...
docs/compressors.rst
View file @
d5575271
...
...
@@ -5,10 +5,10 @@ Compressors
===========
YUI
Compressor
compressor
YUI compressor
=========================
The YUI compressor uses `yu
i-compressor <http://developer.yahoo.com/yui/compressor/
>`_
The YUI compressor uses `yu
glify <http://github.com/yui/yuglify
>`_
for compressing javascript and stylesheets.
To use it for your stylesheets add this to your ``PIPELINE_CSS_COMPRESSOR`` ::
...
...
@@ -26,11 +26,7 @@ To use it for your javascripts add this to your ``PIPELINE_JS_COMPRESSOR`` ::
Command line to execute for the YUI program.
You will most likely change this to the location of yui-compressor on your system.
Defaults to ``'/usr/local/bin/yuicompressor'``.
.. warning::
Don't point to ``yuicompressor.jar`` directly, we expect to find a executable script.
Defaults to ``'/usr/bin/env yuglify'``.
``PIPELINE_YUI_CSS_ARGUMENTS``
------------------------------
...
...
@@ -66,7 +62,7 @@ To use it add this to your ``PIPELINE_JS_COMPRESSOR`` ::
Command line to execute for the Closure Compiler program.
You will most likely change this to the location of closure on your system.
Default to ``'/usr/
local/bin/
closure'``
Default to ``'/usr/
bin/env
closure'``
.. warning::
Don't point to ``compiler.jar`` directly, we expect to find a executable script.
...
...
@@ -97,7 +93,7 @@ To use it add this to your ``PIPELINE_JS_COMPRESSOR`` ::
Command line to execute for the Closure Compiler program.
You will most likely change this to the location of closure on your system.
Defaults to ``'/usr/
local/bin/
uglifyjs'``.
Defaults to ``'/usr/
bin/env
uglifyjs'``.
``PIPELINE_UGLIFYJS_ARGUMENTS``
-------------------------------
...
...
@@ -153,7 +149,7 @@ To us it for your stylesheets add this to your ``PIPELINE_CSS_COMPRESSOR`` ::
Command line to execute for csstidy program.
You will most likely change this to the location of csstidy on your system.
Defaults to ``'/usr/
local/bin/
csstidy'``
Defaults to ``'/usr/
bin/env
csstidy'``
``PIPELINE_CSSTIDY_ARGUMENTS``
------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment