1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4 <title>GreyBox - Compressing GreyBox</title>
6 <script type="text/javascript">
7 var GB_ROOT_DIR = "./greybox/";
10 <script type="text/javascript" src="greybox/AJS.js"></script>
11 <script type="text/javascript" src="greybox/AJS_fx.js"></script>
12 <script type="text/javascript" src="greybox/gb_scripts.js"></script>
13 <link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
15 <script type="text/javascript" src="static_files/help.js"></script>
16 <link href="static_files/help.css" rel="stylesheet" type="text/css" media="all" />
25 <h2>Code structure</h2>
27 <li><b>greybox:</b> Generated and compressed JavaScript and CSS is located here</li>
28 <li><b>greybox_source:</b> CSS and JavaScript structured in directories.</li>
30 It's not recommend that you alter code in the <b>greybox</b> directory, since it's computer generated and very unreadable!
33 <h2>Download Dojo ShrinkSafe</h2>
34 To make the filesize as small as possible GreyBox JavaScript is compressed down using <a href="http://alex.dojotoolkit.org/shrinksafe/">Dojo ShrinkSafe</a>. This library requires <a href="http://www.java.com/getjava/">Java</a>, so make sure you got Java installed. Download following JAR file:
36 <li><a href="http://svn.dojotoolkit.org/dojo/trunk/buildscripts/lib/custom_rhino.jar">custom_rhino.jar</a></li>
38 Place <b>custom_rhino.jar</b> in GreyBox's <b>compression_lib</b> directory.
41 <h2>Compressing GreyBox</h2>
42 Now, you are ready to compress GreyBox. This is done by running a Python script called <b>combiner.py</b>. I.e. you need to download and install <a href="http://www.python.org/download/">Pyhton</a>.
45 You can run <b>combiner.py</b> in following ways:
49 <li><b>python combiner.py full:</b> Compress everything</li>
50 <li><b>python combiner.py gallery:</b> Compress only gallery related CSS and JavaScript</li>
51 <li><b>python combiner.py window:</b> Compress only window related CSS and JavaScript</li>