bug 2509: fix file permissions
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / lib / greybox / GreyBox_v5_5 / compressing_greybox.html
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">
3 <head>
4     <title>GreyBox - Compressing GreyBox</title>
5
6     <script type="text/javascript">
7         var GB_ROOT_DIR = "./greybox/";
8     </script>
9
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" />
14
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" />
17 </head>
18 <body>
19
20 <script>
21 insertHeader();
22 insertMenu('cmpr');
23 </script>
24
25 <h2>Code structure</h2>
26 <ul>
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>
29 </ul>
30 It's not recommend that you alter code in the <b>greybox</b> directory, since it's computer generated and very unreadable!
31
32
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:
35 <ul>
36     <li><a href="http://svn.dojotoolkit.org/dojo/trunk/buildscripts/lib/custom_rhino.jar">custom_rhino.jar</a></li>
37 </ul>
38 Place <b>custom_rhino.jar</b> in GreyBox's <b>compression_lib</b> directory.
39
40
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>. 
43
44 <p>
45 You can run <b>combiner.py</b> in following ways:
46 </p>
47
48 <ul>
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>
52 </ul>
53
54 </body>
55 </html>