You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jf...@apache.org on 2012/03/26 00:11:27 UTC

svn commit: r1305161 [5/9] - in /thrift/site: ./ content/ content/docs/ content/docs/committers/ content/docs/install/ content/static/ content/static/css/ content/static/files/ content/static/images/ content/static/js/ content/static/less/ content/tuto...

Added: thrift/site/publish/docs/idl/index.html
URL: http://svn.apache.org/viewvc/thrift/site/publish/docs/idl/index.html?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/docs/idl/index.html (added)
+++ thrift/site/publish/docs/idl/index.html Sun Mar 25 22:11:20 2012
@@ -0,0 +1,294 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+    <meta content="en-us" http-equiv="Content-Language" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <link href="/static/images/favicon.ico" rel="shortcut icon" />
+    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
+    <link href="/static/css/bootstrap.css" media="screen, projection" rel="stylesheet" type="text/css" />
+
+    <script src="/static/js/jquery.min.js"></script>
+	  <script src="/static/js/bootstrap-dropdown.js"></script>
+    <script src="/static/js/bootstrap-tab.js"></script>
+	
+    <title>Apache Thrift</title>
+  </head>
+  <body>
+  	<div class="navbar">
+	<div class="navbar-inner">
+		<div class="container">
+			<a class="brand" href="http://thrift.apache.org">Apache Thrift</a>
+			<div class="nav-collapse">
+				<ul class="nav pull-right">
+					<li>
+						<a href="/download/">Download</a>
+					</li>
+					<li>
+						<a href="/developers/">Developers</a>
+					</li>
+					<li>
+						<a href="/tutorial/">Tutorials</a>
+					</li>
+					<li>
+						<a href="/about/">About</a>
+					</li>
+					<li class="dropdown">
+						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
+							Apache <b class="caret"></b>
+						</a>
+						<ul class="dropdown-menu">
+							<li>
+								<a href="http://www.apache.org/" target="_blank">Apache Home</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/licenses/" target="_blank">Apache License v2.0</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Donate</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+			</div>
+		</div>
+	</div>
+</div>
+
+  	<div class="container">
+		<h2>Thrift interface description language</h2>
+
+<p>The Thrift interface definition language (IDL) allows for the definition of <a href="/docs/types/">Thrift Types</a>. A Thrift IDL file is processed by the Thrift code generator to produce code for the various target languages to support the defined structs and services in the IDL file.</p>
+
+<p>= Description =</p>
+
+<p>''Under construction''</p>
+
+<p>Here is a description of the Thrift IDL.</p>
+
+<p>== Document ==</p>
+
+<p>Every Thrift document contains 0 or more headers followed by 0 or more definitions.</p>
+
+<p>{{{[1]  Document        ::=  Header* Definition*}}}</p>
+
+<p>== Header ==</p>
+
+<p>A header is either a Thrift include, a C++ include, or a namespace declaration.</p>
+
+<p>{{{[2]  Header          ::=  Include | CppInclude | Namespace}}}</p>
+
+<p>=== Thrift Include ===</p>
+
+<p>An include makes all the symbols from another file visible (with a prefix) and adds corresponding include statements into the code generated for this Thrift document.</p>
+
+<p>{{{[3]  Include         ::=  'include' Literal}}}</p>
+
+<p>=== C++ Include ===</p>
+
+<p>A C++ include adds a custom C++ include to the output of the C++ code generator for this Thrift document. </p>
+
+<p>{{{[4]  CppInclude      ::=  'cpp_include' Literal}}}</p>
+
+<p>=== Namespace ===</p>
+
+<p>A namespace declares which namespaces/package/module/etc. the type definitions in this file will be declared in for the target languages. The namespace scope indicates which language the namespace applies to; a scope of '*' indicates that the namespace applies to all target languages.</p>
+
+<p>{{{[5]  Namespace       ::=  ( 'namespace' ( NamespaceScope Identifier ) |}}}&lt;<br>&gt;
+{{{                                        ( 'smalltalk.category' STIdentifier ) |}}}&lt;<br>&gt;
+{{{                                        ( 'smalltalk.prefix' Identifier ) ) |}}}&lt;<br>&gt;
+{{{                          ( 'php<em>namespace' Literal ) |}}}&lt;<br>&gt;
+{{{                          ( 'xsd</em>namespace' Literal )}}}</p>
+
+<p>{{{[6]  NamespaceScope  ::=  '*' | 'cpp' | 'java' | 'py' | 'perl' | 'rb' | 'cocoa' | 'csharp'}}}</p>
+
+<p>NB: Smalltalk has two distinct types of namespace commands.
+''Can someone who knows Smalltalk explain why Smalltalk needs two different kinds of namespaces?''</p>
+
+<p>NB: The php_namespace directive will be deprecated at some point in the future in favor of the scoped syntax, but the scoped syntax is not yet supported for PHP.</p>
+
+<p>NB: The xsd_namespace directive has some purpose internal to Facebook but serves no purpose in Thrift itself. Use of this feature is strongly discouraged</p>
+
+<p>== Definition ==</p>
+
+<p>{{{[7]  Definition      ::=  Const | Typedef | Enum | Senum | Struct | Exception | Service}}}</p>
+
+<p>=== Const ===</p>
+
+<p>{{{[8]  Const           ::=  'const' FieldType Identifier '=' ConstValue ListSeparator?}}}</p>
+
+<p>=== Typedef ===</p>
+
+<p>A typedef creates an alternate name for a type.</p>
+
+<p>{{{[9]  Typedef         ::=  'typedef' DefinitionType Identifier}}}</p>
+
+<p>=== Enum ===</p>
+
+<p>An enum creates an enumerated type, with named values. If no constant value is supplied, the value is either 0 for the first element, or one greater than the preceding value for any subsequent element. Any constant value that is supplied must be non-negative.</p>
+
+<p>{{{[10] Enum            ::=  'enum' Identifier '{' (Identifier ('=' IntConstant)? ListSeparator?)* '}'}}}</p>
+
+<p>=== Senum ===</p>
+
+<p>{{{[11] Senum           ::=  'senum' Identifier '{' (Literal ListSeparator?)* '}'}}}</p>
+
+<p>=== Struct ===</p>
+
+<p>Structs are the fundamental compositional type in Thrift. The name of each field must be unique within the struct.</p>
+
+<p>{{{[12] Struct          ::=  'struct' Identifier 'xsd_all'? '{' Field* '}'}}}</p>
+
+<p>NB: The xsd_all keyword has some purpose internal to Facebook but serves no purpose in Thrift itself. Use of this feature is strongly discouraged</p>
+
+<p>=== Exception ===</p>
+
+<p>Exceptions are similar to structs except that they are intended to integrate with the native exception handling mechanisms in the target languages. The name of each field must be unique within the exception.</p>
+
+<p>{{{[13] Exception       ::=  'exception' Identifier '{' Field* '}' }}}</p>
+
+<p>=== Service ===</p>
+
+<p>A service provides the interface for a set of functionality provided by a Thrift server. The interface is simply a list of functions. A service can extend another service, which simply means that it provides the functions of the extended service in addition to its own.</p>
+
+<p>{{{[14] Service         ::=  'service' Identifier ( 'extends' Identifier )? '{' Function* '}'}}}</p>
+
+<p>== Field ==</p>
+
+<p>{{{[15] Field           ::=  FieldID? FieldReq? FieldType Identifier ('= ConstValue)? XsdFieldOptions ListSeparator?}}}</p>
+
+<p>=== Field ID ===</p>
+
+<p>{{{[16] FieldID         ::=  IntConstant ':'}}}</p>
+
+<p>=== Field Requiredness ===</p>
+
+<p>{{{[17] FieldReq        ::=  'required' | 'optional'}}}</p>
+
+<p>=== XSD Options ===</p>
+
+<p>NB: These have  some internal purpose at Facebook but serve no current purpose in Thrift. Use of these options is strongly discouraged.</p>
+
+<p>{{{[18] XsdFieldOptions ::=  'xsd<em>optional'? 'xsd</em>nillable'? XsdAttrs?}}}</p>
+
+<p>{{{[19] XsdAttrs        ::=  'xsd_attrs' '{' Field* '}'}}}</p>
+
+<p>== Functions ==</p>
+
+<p>{{{[20] Function        ::=  'oneway'? FunctionType Identifier '(' Field* ')' Throws? ListSeparator?}}}</p>
+
+<p>{{{[21] FunctionType    ::=  FieldType | 'void'}}}</p>
+
+<p>{{{[22] Throws          ::=  'throws' '(' Field* ')'}}}</p>
+
+<p>== Types ==</p>
+
+<p>{{{[23] FieldType       ::=  Identifier | BaseType | ContainerType}}}</p>
+
+<p>{{{[24] DefinitionType  ::=  BaseType | ContainerType}}}</p>
+
+<p>{{{[25] BaseType        ::=  'bool' | 'byte' | 'i16' | 'i32' | 'i64' | 'double' |}}}&lt;<br>&gt;
+{{{                            'string' | 'binary' | 'slist'}}}</p>
+
+<p>{{{[26] ContainerType   ::=  MapType | SetType | ListType}}}</p>
+
+<p>{{{[27] MapType         ::=  'map' CppType? '&lt;' FieldType ',' FieldType '&gt;'}}}</p>
+
+<p>{{{[28] SetType         ::=  'set' CppType? '&lt;' FieldType '&gt;'}}}</p>
+
+<p>{{{[29] ListType        ::=  'list' '&lt;' FieldType '&gt;' CppType?}}}</p>
+
+<p>{{{[30] CppType         ::=  'cpp_type' Literal}}}</p>
+
+<p>== Constant Values ==</p>
+
+<p>{{{[31] ConstValue      ::=  IntConstant | DoubleConstant | Literal | Identifier | ConstList | ConstMap}}}</p>
+
+<p>{{{[32] IntConstant     ::=  ('+' | '-')? Digit+}}}</p>
+
+<p>{{{[33] DoubleConstant  ::=  ('+' | '-')? Digit* ('.' Digit+)? ( ('E' | 'e') IntConstant )?}}}</p>
+
+<p>{{{[34] ConstList       ::= '[' (ConstValue ListSeparator?)* ']'}}}</p>
+
+<p>{{{[35] ConstMap        ::= '{' (ConstValue ':' ConstValue ListSeparator?)* '}'}}}</p>
+
+<p>== Basic Definitions ==</p>
+
+<p>=== Literal ===</p>
+
+<p>{{{[36] Literal         ::=  ('“' [^”]* '“') | (”'“ [^']* ”'“)}}}</p>
+
+<p>=== Identifier ===</p>
+
+<p>{{{[37] Identifier      ::=  ( Letter | '<em>' ) ( Letter | Digit | '.' | '</em>' )*}}}</p>
+
+<p>{{{[38] STIdentifier    ::=  ( Letter | '<em>' ) ( Letter | Digit | '.' | '</em>' | '-' )*}}}</p>
+
+<p>=== List Separator ===</p>
+
+<p>{{{[39] ListSeparator   ::=  ',' | ';'}}}</p>
+
+<p>=== Letters and Digits ===</p>
+
+<p>{{{[40] Letter          ::=  ['A'-'Z'] | ['a'-'z']}}}</p>
+
+<p>{{{[41] Digit           ::=  ['0'-'9']}}}</p>
+
+<p>= Examples =</p>
+
+<p>Here are some examples of Thrift definitions, using the Thrift IDL:
+ * [[http://svn.apache.org/repos/asf/thrift/trunk/test/ThriftTest.thrift | ThriftTest.thrift]] used by the Thrift TestFramework
+ * Thrift [[http://svn.apache.org/repos/asf/thrift/trunk/tutorial/ | tutorial ]]
+ * Facebook's [[http://svn.apache.org/repos/asf/thrift/trunk/contrib/fb303/if/fb303.thrift | fb303.thrift]]
+ * [[http://cassandra.apache.org/ | Apache Cassandra's]] Thrift IDL: [[http://svn.apache.org/viewvc/cassandra/trunk/interface/cassandra.thrift?view=co | cassandra.thrift]]
+ * [[http://www.evernote.com/about/developer/api/ | Evernote API]]</p>
+
+<p>= To Do/Questions =
+Initialization of Base Types for all Languages?
+ * Do all Languages initialize them to 0, bool=false and string=”“? or null, undefined?</p>
+
+<p>Why does position of {{{CppType}}} vary between {{{SetType}}} and {{{ListType}}}?
+ * std::set does sort the elements automatically, that's the design. see <a href="/docs/types/">Thrift Types</a> or http://www.cplusplus.com/reference/stl/set/ for further details
+ * The question is, how other languages are doing that? What about custom objects, do they have a Compare function the set the order correctly?</p>
+
+<p>Why can't {{{DefinitionType}}} be the same as {{{FieldType}}} (ie: include {{{Identifier}}})?</p>
+
+<p>Examine the {{{smalltalk.prefix}}} and {{{smalltalk.category}}} status (esp {{{smalltalk.category}}}, which takes {{{STIdentifier}}} as its argument)…</p>
+
+<p>What to do about {{{ListSeparator}}}? Do we really want to be as lax as we currently are?</p>
+
+<p>Should {{{Field*}}} really be {{{Field+}}} in {{{Struct}}}, {{{Enum}}}, etc.?</p>
+	</div>
+	<div class="container">
+	<hr>
+	<footer class="footer">
+		<div class="row">
+			<div class="span3">
+				<h3>Links</h3>
+				<ul class="unstyled">
+					<li><a href="/download/">Download</a></li>
+					<li><a href="/developers/">Developers</a></li>
+					<li><a href="/tutorial/">Tutorials</a></li>
+			    </ul>
+				<ul class="unstyled">
+					<li><a href="/sitemap/">Sitemap</a></li>
+				</ul>
+			</div>
+			<div class="span3">
+				<h3>Get Involved</h3>
+				<ul class="unstyled">
+					<li><a href="/mailing/">Mailing Lists</a></li>
+					<li><a href="http://issues.apache.org/jira/browse/THRIFT">Issue Tracking</a></li>
+					<li><a href="/docs/HowToContribute/">How To Contribute</a></li>
+				</ul>	
+			</div>
+			<div class="span6">
+				<a href="http://www.apache.org/"><img src="/static/images/favicon.ico" /></a> Copyright 2012 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
+			</div>
+		</div>
+		
+	</footer>
+</div>
+  </body>
+</html>

Added: thrift/site/publish/docs/index.html
URL: http://svn.apache.org/viewvc/thrift/site/publish/docs/index.html?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/docs/index.html (added)
+++ thrift/site/publish/docs/index.html Sun Mar 25 22:11:20 2012
@@ -0,0 +1,122 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+    <meta content="en-us" http-equiv="Content-Language" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <link href="/static/images/favicon.ico" rel="shortcut icon" />
+    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
+    <link href="/static/css/bootstrap.css" media="screen, projection" rel="stylesheet" type="text/css" />
+
+    <script src="/static/js/jquery.min.js"></script>
+	  <script src="/static/js/bootstrap-dropdown.js"></script>
+    <script src="/static/js/bootstrap-tab.js"></script>
+	
+    <title>Apache Thrift</title>
+  </head>
+  <body>
+  	<div class="navbar">
+	<div class="navbar-inner">
+		<div class="container">
+			<a class="brand" href="http://thrift.apache.org">Apache Thrift</a>
+			<div class="nav-collapse">
+				<ul class="nav pull-right">
+					<li>
+						<a href="/download/">Download</a>
+					</li>
+					<li>
+						<a href="/developers/">Developers</a>
+					</li>
+					<li>
+						<a href="/tutorial/">Tutorials</a>
+					</li>
+					<li>
+						<a href="/about/">About</a>
+					</li>
+					<li class="dropdown">
+						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
+							Apache <b class="caret"></b>
+						</a>
+						<ul class="dropdown-menu">
+							<li>
+								<a href="http://www.apache.org/" target="_blank">Apache Home</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/licenses/" target="_blank">Apache License v2.0</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Donate</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+			</div>
+		</div>
+	</div>
+</div>
+
+  	<div class="container">
+		<ul>
+<li>
+        <a href="/docs/BuildingFromSource/">Building From Source</a>
+    </li>
+
+    <li>
+        <a href="/docs/features/">Features</a>
+    </li>
+
+    <li>
+        <a href="/docs/HowToContribute/">How To Contribute</a>
+    </li>
+
+    <li>
+        <a href="/docs/committers/">Information for Committers</a>
+    </li>
+
+    <li>
+        <a href="/docs/install/">Installation Tutorials</a>
+    </li>
+
+    <li>
+        <a href="/docs/idl/">Interface Description Language (IDL)</a>
+    </li>
+
+    <li>
+        <a href="/docs/types/">Thrift Type system</a>
+    </li>
+
+</ul>
+	</div>
+	<div class="container">
+	<hr>
+	<footer class="footer">
+		<div class="row">
+			<div class="span3">
+				<h3>Links</h3>
+				<ul class="unstyled">
+					<li><a href="/download/">Download</a></li>
+					<li><a href="/developers/">Developers</a></li>
+					<li><a href="/tutorial/">Tutorials</a></li>
+			    </ul>
+				<ul class="unstyled">
+					<li><a href="/sitemap/">Sitemap</a></li>
+				</ul>
+			</div>
+			<div class="span3">
+				<h3>Get Involved</h3>
+				<ul class="unstyled">
+					<li><a href="/mailing/">Mailing Lists</a></li>
+					<li><a href="http://issues.apache.org/jira/browse/THRIFT">Issue Tracking</a></li>
+					<li><a href="/docs/HowToContribute/">How To Contribute</a></li>
+				</ul>	
+			</div>
+			<div class="span6">
+				<a href="http://www.apache.org/"><img src="/static/images/favicon.ico" /></a> Copyright 2012 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
+			</div>
+		</div>
+		
+	</footer>
+</div>
+  </body>
+</html>

Added: thrift/site/publish/docs/install/centos/index.html
URL: http://svn.apache.org/viewvc/thrift/site/publish/docs/install/centos/index.html?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/docs/install/centos/index.html (added)
+++ thrift/site/publish/docs/install/centos/index.html Sun Mar 25 22:11:20 2012
@@ -0,0 +1,104 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+    <meta content="en-us" http-equiv="Content-Language" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <link href="/static/images/favicon.ico" rel="shortcut icon" />
+    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
+    <link href="/static/css/bootstrap.css" media="screen, projection" rel="stylesheet" type="text/css" />
+
+    <script src="/static/js/jquery.min.js"></script>
+	  <script src="/static/js/bootstrap-dropdown.js"></script>
+    <script src="/static/js/bootstrap-tab.js"></script>
+	
+    <title>Apache Thrift</title>
+  </head>
+  <body>
+  	<div class="navbar">
+	<div class="navbar-inner">
+		<div class="container">
+			<a class="brand" href="http://thrift.apache.org">Apache Thrift</a>
+			<div class="nav-collapse">
+				<ul class="nav pull-right">
+					<li>
+						<a href="/download/">Download</a>
+					</li>
+					<li>
+						<a href="/developers/">Developers</a>
+					</li>
+					<li>
+						<a href="/tutorial/">Tutorials</a>
+					</li>
+					<li>
+						<a href="/about/">About</a>
+					</li>
+					<li class="dropdown">
+						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
+							Apache <b class="caret"></b>
+						</a>
+						<ul class="dropdown-menu">
+							<li>
+								<a href="http://www.apache.org/" target="_blank">Apache Home</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/licenses/" target="_blank">Apache License v2.0</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Donate</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+			</div>
+		</div>
+	</div>
+</div>
+
+  	<div class="container">
+		<h2>CentOS setup</h2>
+
+<p>The following command install all the required tools and libraries to build and install the Apache Thrift compiler on a CentOS5/RHEL5 Linux based system. These packages are available in the “base” repository.</p>
+
+<pre><code>sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel
+</code></pre>
+
+<h4>Additional reading</h4>
+
+<p>For more information on the requirements see: <a href="/docs/install/">Apache Thrift Requirements</a></p>
+
+<p>For more information on building and installing Thrift see: <a href="/docs/BuildingFromSource/">Building from source</a></p>
+	</div>
+	<div class="container">
+	<hr>
+	<footer class="footer">
+		<div class="row">
+			<div class="span3">
+				<h3>Links</h3>
+				<ul class="unstyled">
+					<li><a href="/download/">Download</a></li>
+					<li><a href="/developers/">Developers</a></li>
+					<li><a href="/tutorial/">Tutorials</a></li>
+			    </ul>
+				<ul class="unstyled">
+					<li><a href="/sitemap/">Sitemap</a></li>
+				</ul>
+			</div>
+			<div class="span3">
+				<h3>Get Involved</h3>
+				<ul class="unstyled">
+					<li><a href="/mailing/">Mailing Lists</a></li>
+					<li><a href="http://issues.apache.org/jira/browse/THRIFT">Issue Tracking</a></li>
+					<li><a href="/docs/HowToContribute/">How To Contribute</a></li>
+				</ul>	
+			</div>
+			<div class="span6">
+				<a href="http://www.apache.org/"><img src="/static/images/favicon.ico" /></a> Copyright 2012 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
+			</div>
+		</div>
+		
+	</footer>
+</div>
+  </body>
+</html>

Added: thrift/site/publish/docs/install/index.html
URL: http://svn.apache.org/viewvc/thrift/site/publish/docs/install/index.html?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/docs/install/index.html (added)
+++ thrift/site/publish/docs/install/index.html Sun Mar 25 22:11:20 2012
@@ -0,0 +1,175 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+    <meta content="en-us" http-equiv="Content-Language" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <link href="/static/images/favicon.ico" rel="shortcut icon" />
+    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
+    <link href="/static/css/bootstrap.css" media="screen, projection" rel="stylesheet" type="text/css" />
+
+    <script src="/static/js/jquery.min.js"></script>
+	  <script src="/static/js/bootstrap-dropdown.js"></script>
+    <script src="/static/js/bootstrap-tab.js"></script>
+	
+    <title>Apache Thrift</title>
+  </head>
+  <body>
+  	<div class="navbar">
+	<div class="navbar-inner">
+		<div class="container">
+			<a class="brand" href="http://thrift.apache.org">Apache Thrift</a>
+			<div class="nav-collapse">
+				<ul class="nav pull-right">
+					<li>
+						<a href="/download/">Download</a>
+					</li>
+					<li>
+						<a href="/developers/">Developers</a>
+					</li>
+					<li>
+						<a href="/tutorial/">Tutorials</a>
+					</li>
+					<li>
+						<a href="/about/">About</a>
+					</li>
+					<li class="dropdown">
+						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
+							Apache <b class="caret"></b>
+						</a>
+						<ul class="dropdown-menu">
+							<li>
+								<a href="http://www.apache.org/" target="_blank">Apache Home</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/licenses/" target="_blank">Apache License v2.0</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Donate</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+			</div>
+		</div>
+	</div>
+</div>
+
+  	<div class="container">
+		<p>Apache Thrift's compiler is written in C++ and designed to be portable, but there are some system requirements which must be installed prior to use. Select your os below for a guide on setting up your system to get started</p>
+
+<ul>
+<li>
+        <a href="/docs/install/centos/">Centos Install</a>
+    </li>
+
+    <li>
+        <a href="/docs/install/os_x/">OS X Install</a>
+    </li>
+
+    <li>
+        <a href="/docs/install/ubuntu/">Ubuntu Install</a>
+    </li>
+
+    <li>
+        <a href="/docs/install/windows/">Windows Install</a>
+    </li>
+
+</ul><hr><h2>Basic requirements</h2>
+
+<ul>
+<li>A relatively POSIX-compliant *NIX system
+
+<ul>
+<li>Cygwin or MinGW can be used on Windows</li>
+</ul>
+</li>
+<li>g++ 4.2</li>
+<li>boost 1.33.1 (1.34.0 for building all tests)</li>
+<li>Runtime libraries for lex and yacc might be needed for the compiler.</li>
+</ul><h2>Requirements for building from SVN</h2>
+
+<ul>
+<li>GNU build tools: 
+
+<ul>
+<li>autoconf 2.65</li>
+<li>automake 1.9</li>
+<li>libtool 1.5.24</li>
+</ul>
+</li>
+<li>pkg-config autoconf macros (pkg.m4)</li>
+<li>lex and yacc (developed primarily with flex and bison)</li>
+<li>libssl-dev</li>
+</ul><h2>Language requirements</h2>
+
+<p>These are only required if you choose to build the libraries for the given language</p>
+
+<ul>
+<li>C++
+
+<ul>
+<li>Boost 1.33.1</li>
+<li>libevent (optional, to build the nonblocking server)</li>
+<li>zlib (optional)</li>
+</ul>
+</li>
+<li>Java
+
+<ul>
+<li>Java 1.5</li>
+<li>Apache Ant</li>
+</ul>
+</li>
+<li>C#: Mono 1.2.4 (and pkg-config to detect it) or Visual Studio 2005+</li>
+<li>Python 2.4 (including header files for extension modules)</li>
+<li>PHP 5.0 (optionally including header files for extension modules)</li>
+<li>Ruby 1.8
+
+<ul>
+<li>bundler gem</li>
+</ul>
+</li>
+<li>Erlang R12 (R11 works but not recommended)</li>
+<li>Perl 5
+
+<ul>
+<li>Bit::Vector</li>
+<li>Class::Accessor</li>
+</ul>
+</li>
+</ul>
+	</div>
+	<div class="container">
+	<hr>
+	<footer class="footer">
+		<div class="row">
+			<div class="span3">
+				<h3>Links</h3>
+				<ul class="unstyled">
+					<li><a href="/download/">Download</a></li>
+					<li><a href="/developers/">Developers</a></li>
+					<li><a href="/tutorial/">Tutorials</a></li>
+			    </ul>
+				<ul class="unstyled">
+					<li><a href="/sitemap/">Sitemap</a></li>
+				</ul>
+			</div>
+			<div class="span3">
+				<h3>Get Involved</h3>
+				<ul class="unstyled">
+					<li><a href="/mailing/">Mailing Lists</a></li>
+					<li><a href="http://issues.apache.org/jira/browse/THRIFT">Issue Tracking</a></li>
+					<li><a href="/docs/HowToContribute/">How To Contribute</a></li>
+				</ul>	
+			</div>
+			<div class="span6">
+				<a href="http://www.apache.org/"><img src="/static/images/favicon.ico" /></a> Copyright 2012 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
+			</div>
+		</div>
+		
+	</footer>
+</div>
+  </body>
+</html>

Added: thrift/site/publish/docs/install/os_x/index.html
URL: http://svn.apache.org/viewvc/thrift/site/publish/docs/install/os_x/index.html?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/docs/install/os_x/index.html (added)
+++ thrift/site/publish/docs/install/os_x/index.html Sun Mar 25 22:11:20 2012
@@ -0,0 +1,124 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+    <meta content="en-us" http-equiv="Content-Language" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <link href="/static/images/favicon.ico" rel="shortcut icon" />
+    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
+    <link href="/static/css/bootstrap.css" media="screen, projection" rel="stylesheet" type="text/css" />
+
+    <script src="/static/js/jquery.min.js"></script>
+	  <script src="/static/js/bootstrap-dropdown.js"></script>
+    <script src="/static/js/bootstrap-tab.js"></script>
+	
+    <title>Apache Thrift</title>
+  </head>
+  <body>
+  	<div class="navbar">
+	<div class="navbar-inner">
+		<div class="container">
+			<a class="brand" href="http://thrift.apache.org">Apache Thrift</a>
+			<div class="nav-collapse">
+				<ul class="nav pull-right">
+					<li>
+						<a href="/download/">Download</a>
+					</li>
+					<li>
+						<a href="/developers/">Developers</a>
+					</li>
+					<li>
+						<a href="/tutorial/">Tutorials</a>
+					</li>
+					<li>
+						<a href="/about/">About</a>
+					</li>
+					<li class="dropdown">
+						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
+							Apache <b class="caret"></b>
+						</a>
+						<ul class="dropdown-menu">
+							<li>
+								<a href="http://www.apache.org/" target="_blank">Apache Home</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/licenses/" target="_blank">Apache License v2.0</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Donate</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+			</div>
+		</div>
+	</div>
+</div>
+
+  	<div class="container">
+		<h2>OS X Setup</h2>
+
+<p>The following command install all the required tools and libraries to build and install the Apache Thrift compiler on a OS X based system. </p>
+
+<h3>Install Boost</h3>
+
+<p>Download the boost library and bjam installer from <a href="http://www.boost.org">boost.org</a> untar and place bjam in the boost folder and then compile with</p>
+
+<pre><code>sudo ./bjam toolset=darwin link=shared threading=multi runtime-link=shared variant=release address-model=64 stage install
+</code></pre>
+
+<h3>Install libevent</h3>
+
+<p>Download <a href="http://monkey.org/%7Eprovos/libevent/">libevent</a>, untar and compile with</p>
+
+<pre><code>./configure --prefix=/usr/local --disable-static
+make
+sudo make install
+</code></pre>
+
+<h3>Building Apache Thrift</h3>
+
+<p>Download the latest version of <a href="/download/">Apache Thrift</a>, untar and compile with</p>
+
+<pre><code>./configure --prefix=/usr/local/ --with-boost=/usr/local --with-libevent=/usr/local --disable-static
+</code></pre>
+
+<h2>Additional reading</h2>
+
+<p>For more information on the requirements see: <a href="/docs/install/">Apache Thrift Requirements</a></p>
+
+<p>For more information on building and installing Thrift see: <a href="/docs/BuildingFromSource/">Building from source</a></p>
+	</div>
+	<div class="container">
+	<hr>
+	<footer class="footer">
+		<div class="row">
+			<div class="span3">
+				<h3>Links</h3>
+				<ul class="unstyled">
+					<li><a href="/download/">Download</a></li>
+					<li><a href="/developers/">Developers</a></li>
+					<li><a href="/tutorial/">Tutorials</a></li>
+			    </ul>
+				<ul class="unstyled">
+					<li><a href="/sitemap/">Sitemap</a></li>
+				</ul>
+			</div>
+			<div class="span3">
+				<h3>Get Involved</h3>
+				<ul class="unstyled">
+					<li><a href="/mailing/">Mailing Lists</a></li>
+					<li><a href="http://issues.apache.org/jira/browse/THRIFT">Issue Tracking</a></li>
+					<li><a href="/docs/HowToContribute/">How To Contribute</a></li>
+				</ul>	
+			</div>
+			<div class="span6">
+				<a href="http://www.apache.org/"><img src="/static/images/favicon.ico" /></a> Copyright 2012 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
+			</div>
+		</div>
+		
+	</footer>
+</div>
+  </body>
+</html>

Added: thrift/site/publish/docs/install/ubuntu/index.html
URL: http://svn.apache.org/viewvc/thrift/site/publish/docs/install/ubuntu/index.html?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/docs/install/ubuntu/index.html (added)
+++ thrift/site/publish/docs/install/ubuntu/index.html Sun Mar 25 22:11:20 2012
@@ -0,0 +1,170 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+    <meta content="en-us" http-equiv="Content-Language" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <link href="/static/images/favicon.ico" rel="shortcut icon" />
+    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
+    <link href="/static/css/bootstrap.css" media="screen, projection" rel="stylesheet" type="text/css" />
+
+    <script src="/static/js/jquery.min.js"></script>
+	  <script src="/static/js/bootstrap-dropdown.js"></script>
+    <script src="/static/js/bootstrap-tab.js"></script>
+	
+    <title>Apache Thrift</title>
+  </head>
+  <body>
+  	<div class="navbar">
+	<div class="navbar-inner">
+		<div class="container">
+			<a class="brand" href="http://thrift.apache.org">Apache Thrift</a>
+			<div class="nav-collapse">
+				<ul class="nav pull-right">
+					<li>
+						<a href="/download/">Download</a>
+					</li>
+					<li>
+						<a href="/developers/">Developers</a>
+					</li>
+					<li>
+						<a href="/tutorial/">Tutorials</a>
+					</li>
+					<li>
+						<a href="/about/">About</a>
+					</li>
+					<li class="dropdown">
+						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
+							Apache <b class="caret"></b>
+						</a>
+						<ul class="dropdown-menu">
+							<li>
+								<a href="http://www.apache.org/" target="_blank">Apache Home</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/licenses/" target="_blank">Apache License v2.0</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Donate</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+			</div>
+		</div>
+	</div>
+</div>
+
+  	<div class="container">
+		<h2>Debian or Ubuntu setup</h2>
+
+<p>The following command install all the required tools and libraries to build and install the Apache Thrift compiler on a Debian/Ubuntu Linux based system.</p>
+
+<pre><code>sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev 
+</code></pre>
+
+<p>Then install the Java JDK of your choice. Type <strong>javac</strong> to see a list of available packages, pick the one you prefer and <strong>apt-get install</strong> it.</p>
+
+<p>Debian Lenny Users need some packages from backports</p>
+
+<pre><code>sudo apt-get -t lenny-backports install automake libboost-test-dev
+</code></pre>
+
+<h2>Optional packages</h2>
+
+<p>Some other packages depend on what languages you want Thrift to support.</p>
+
+<ul>
+<li>Ruby 
+
+<ul>
+<li>ruby-full ruby-dev librspec-ruby rake rubygems libdaemons-ruby libgemplugin-ruby mongrel</li>
+</ul>
+</li>
+<li>Python
+
+<ul>
+<li>python-dev python-twisted</li>
+</ul>
+</li>
+<li>Perl
+
+<ul>
+<li>libbit-vector-perl</li>
+</ul>
+</li>
+<li>Php, install
+
+<ul>
+<li>php5-dev php5-cli</li>
+</ul>
+</li>
+<li>C_glib
+
+<ul>
+<li>libglib2.0-dev</li>
+</ul>
+</li>
+<li>Erlang
+
+<ul>
+<li>erlang-base erlang-eunit erlang-dev</li>
+</ul>
+</li>
+<li>Csharp
+
+<ul>
+<li>mono-gmcs libmono-dev libmono-system-web2.0-cil</li>
+</ul>
+</li>
+<li>Haskell
+
+<ul>
+<li>ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev</li>
+</ul>
+</li>
+<li>Thrift Compiler for Windows
+
+<ul>
+<li>mingw32 mingw32-binutils mingw32-runtime</li>
+</ul>
+</li>
+</ul><h2>Additional reading</h2>
+
+<p>For more information on the requirements see: <a href="/docs/install/">Apache Thrift Requirements</a></p>
+
+<p>For more information on building and installing Thrift see: <a href="/docs/BuildingFromSource/">Building from source</a></p>
+	</div>
+	<div class="container">
+	<hr>
+	<footer class="footer">
+		<div class="row">
+			<div class="span3">
+				<h3>Links</h3>
+				<ul class="unstyled">
+					<li><a href="/download/">Download</a></li>
+					<li><a href="/developers/">Developers</a></li>
+					<li><a href="/tutorial/">Tutorials</a></li>
+			    </ul>
+				<ul class="unstyled">
+					<li><a href="/sitemap/">Sitemap</a></li>
+				</ul>
+			</div>
+			<div class="span3">
+				<h3>Get Involved</h3>
+				<ul class="unstyled">
+					<li><a href="/mailing/">Mailing Lists</a></li>
+					<li><a href="http://issues.apache.org/jira/browse/THRIFT">Issue Tracking</a></li>
+					<li><a href="/docs/HowToContribute/">How To Contribute</a></li>
+				</ul>	
+			</div>
+			<div class="span6">
+				<a href="http://www.apache.org/"><img src="/static/images/favicon.ico" /></a> Copyright 2012 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
+			</div>
+		</div>
+		
+	</footer>
+</div>
+  </body>
+</html>

Added: thrift/site/publish/docs/install/windows/index.html
URL: http://svn.apache.org/viewvc/thrift/site/publish/docs/install/windows/index.html?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/docs/install/windows/index.html (added)
+++ thrift/site/publish/docs/install/windows/index.html Sun Mar 25 22:11:20 2012
@@ -0,0 +1,256 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+    <meta content="en-us" http-equiv="Content-Language" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <link href="/static/images/favicon.ico" rel="shortcut icon" />
+    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
+    <link href="/static/css/bootstrap.css" media="screen, projection" rel="stylesheet" type="text/css" />
+
+    <script src="/static/js/jquery.min.js"></script>
+	  <script src="/static/js/bootstrap-dropdown.js"></script>
+    <script src="/static/js/bootstrap-tab.js"></script>
+	
+    <title>Apache Thrift</title>
+  </head>
+  <body>
+  	<div class="navbar">
+	<div class="navbar-inner">
+		<div class="container">
+			<a class="brand" href="http://thrift.apache.org">Apache Thrift</a>
+			<div class="nav-collapse">
+				<ul class="nav pull-right">
+					<li>
+						<a href="/download/">Download</a>
+					</li>
+					<li>
+						<a href="/developers/">Developers</a>
+					</li>
+					<li>
+						<a href="/tutorial/">Tutorials</a>
+					</li>
+					<li>
+						<a href="/about/">About</a>
+					</li>
+					<li class="dropdown">
+						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
+							Apache <b class="caret"></b>
+						</a>
+						<ul class="dropdown-menu">
+							<li>
+								<a href="http://www.apache.org/" target="_blank">Apache Home</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/licenses/" target="_blank">Apache License v2.0</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Donate</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+			</div>
+		</div>
+	</div>
+</div>
+
+  	<div class="container">
+		<h2>Windows Setup</h2>
+
+<p>The windows compiler is available as a prebuilt exe available <a href="/download/">here</a></p>
+
+<hr><h2>Windows setup from source</h2>
+
+<h3>Basic requirements for win32</h3>
+
+<p>Thrift's compiler is written in C++ and designed to be portable, but there are some system requirements:</p>
+
+<ul>
+<li>Cygwin or MinGW</li>
+<li><a href="/docs/install/">Apache Thrift Requirements</a></li>
+</ul><p>Thrift's runtime libraries are written in various languages, which are also required for the particular language interface.</p>
+
+<h3>Installing from source</h3>
+
+<p>If you are building from the first time out of the source repository, you will need to generate the configure scripts.  (This is not necessary if you downloaded a tarball.)  From the top directory, do:</p>
+
+<pre><code>./bootstrap.sh
+</code></pre>
+
+<p>Once the configure scripts are generated, thrift can be configured. From the top directory, do:</p>
+
+<pre><code>export CXXFLAGS="-D PTHREAD_MUTEX_RECURSIVE_NP=PTHREAD_MUTEX_RECURSIVE"
+./configure
+</code></pre>
+
+<p>Setting the CXXFLAGS environmental variable works around compile errors with PTHREAD<em>MUTEX</em>RECURSIVE<em>NP being undeclared, by replacing it with the newer, portable PTHREAD</em>MUTEX_RECURSIVE. (Tested on cygwin 20100320, Thrift r760184, latest pthread.)</p>
+
+<p>''Optional:'' You ''may not'' be able to make from the root  Thrift directory due to errors (see below to resolve). To make the compiler only, change to the compiler directory before running make:</p>
+
+<pre><code>cd compiler/cpp
+</code></pre>
+
+<p>Now make the thrift compiler (&amp; runtime libraries if make is run from the thrift root directory):</p>
+
+<pre><code>make
+make install
+</code></pre>
+
+<p>Some language packages must be installed manually using build tools better suited to those languages (at the time of this writing, this applies to Java, Ruby, PHP).</p>
+
+<p>Look for the README file in the lib/<language>/ folder for more details on the installation of each language library package.</language></p>
+
+<h3>Possible issues with Cygwin install</h3>
+
+<p>See also Possible issues with MinGW install.</p>
+
+<h4>Syntax error in ./configure</h4>
+
+<p>The following error occurs for some users when running ./configure:</p>
+
+<pre><code>./configure: line 21183: syntax error near unexpected token `MONO,'
+./configure: line 21183: `  PKG_CHECK_MODULES(MONO, mono &gt;= 1.2.6, have_mono=yes, have_mono=no)'
+</code></pre>
+
+<p>To resolve this, you'll need to find your pkg.m4 (installed by the pkg-config package) file and copy it to the thrift/aclocal directory.  From the top-level thrift directory, you can copy the file by running</p>
+
+<pre><code>cp /usr/share/aclocal/pkg.m4 aclocal
+</code></pre>
+
+<p>Finally, re-run ./bootstrap.sh and ./configure.  (Note that pkg.m4 is created by the pkg-config tool.  If your /usr/share/aclocal directory doesn't contain the pkg.m4 file, you may not have pkg-config installed.)</p>
+
+<h4>Installing perl runtime libraries</h4>
+
+<p>Sometimes, there will be an error during the install of the perl libraries with chmod.</p>
+
+<p>A workaround is to avoid installing the perl libraries if they are not needed.</p>
+
+<p>If you don't need perl, run configure with –without-perl.</p>
+
+<p>If you need perl, and are happy to manually install it, replace the contents of thrift/lib/perl/Makefile with the following, after building thrift:</p>
+
+<pre><code>TODO
+</code></pre>
+
+<h4>Linking to installed C++ runtime libraries</h4>
+
+<p>Sometimes, the installed libthrift.a will not link using g++, with linker errors about missing vtables and exceptions for Thrift classes.</p>
+
+<p>A workaround is to link the compiled object files directly from your Thrift build, corresponding to the missing classes.</p>
+
+<p>This can be implemented in a Makefile using the following lines:</p>
+
+<pre><code>THRIFT_O=&lt;path to&gt;/thrift/lib/cpp
+LTHRIFT=$(THRIFT_O)/Thrift.o $(THRIFT_O)/TSocket.o $(THRIFT_O)/TBinaryProtocol.o $(THRIFT_O)/TBufferTransports.o
+</code></pre>
+
+<p>Then linking using $(LTHRIFT) instead of -lthrift.</p>
+
+<pre><code>TODO - diagnose issue further
+</code></pre>
+
+<h4>C++ runtime segfault with cygwin 1.7.5-1, g++-4.3.4, fork() and throw</h4>
+
+<p>If your thrift C++ programs segfault on throw after fork()ing, compile them with g++-3.</p>
+
+<p>The issue and patch are described on the Cygwin mailing list at http://cygwin.com/ml/cygwin/2010-05/msg00203.html</p>
+
+<p>This issue should be fixed in Cygwin versions after 1.7.5-1, or g++ 4.5.0.</p>
+
+<h2>Installation from Source (No Cygwin dependency)</h2>
+
+<p>To compile the Thrift generator &amp; runtime libraries (untested) without the cygwin.dll dependency you need to install  MinGW (www.mingw.org). In addition you need to add the following entry to your windows PATH variable.</p>
+
+<pre><code>C:\MINGW\BIN
+</code></pre>
+
+<p>Next, open compiler/cpp/Makefile.am and add the following line to thrift_CXXFLAGS</p>
+
+<pre><code>-DMINGW -mno-cygwin -lfl
+</code></pre>
+
+<p>Run bootstrap.sh:</p>
+
+<pre><code>./bootstrap.sh
+</code></pre>
+
+<p>Make sure you have java in your $PATH variable, if not do(adjust path if necessary):</p>
+
+<pre><code>export PATH=$PATH:"/cygdrive/c/program files/java/jre1.6.0_05/bin"
+</code></pre>
+
+<p>Run configure - using CXXFLAGS to work around an issue with an old pthreads define (untested on MinGW - works on Cygwin):</p>
+
+<pre><code>export CXXFLAGS="-D PTHREAD_MUTEX_RECURSIVE_NP=PTHREAD_MUTEX_RECURSIVE"
+./configure
+</code></pre>
+
+<p>''Optional:'' To make the compiler only, change to the compiler  directory before running make:</p>
+
+<pre><code>cd compiler/cpp
+</code></pre>
+
+<p>Run make:</p>
+
+<pre><code>mingw32-make.exe
+</code></pre>
+
+<h3>Possible issues with MinGW install</h3>
+
+<p>See also Possible issues with Cygwin install, including the discussion about PTHREAD<em>MUTEX</em>RECURSIVE_NP.</p>
+
+<h4>yywrap is not found</h4>
+
+<p>Make sure you add -lfl in your cxxflags in Makefile, also try adding -Lc:/cygwin/libs</p>
+
+<h4>boost is not found</h4>
+
+<p>Try and change the include dir to use the windows path from c like this: Edit compiler/cpp/Makefile, look for the declaration of BOOST_CPPFLAGS, change that line for</p>
+
+<pre><code>BOOST_CPPFLAGS = -Ic:/cygwin/usr/include/boost-1_33_1
+</code></pre>
+
+<h4>realpath is not found</h4>
+
+<p>add -DMINGW -mno-cygwin to the CXXDEFS variable in Makefile</p>
+
+<h2>Additional reading</h2>
+
+<p>For more information on the requirements see: <a href="/docs/install/">Apache Thrift Requirements</a></p>
+
+<p>For more information on building and installing Thrift see: <a href="/docs/BuildingFromSource/">Building from source</a></p>
+	</div>
+	<div class="container">
+	<hr>
+	<footer class="footer">
+		<div class="row">
+			<div class="span3">
+				<h3>Links</h3>
+				<ul class="unstyled">
+					<li><a href="/download/">Download</a></li>
+					<li><a href="/developers/">Developers</a></li>
+					<li><a href="/tutorial/">Tutorials</a></li>
+			    </ul>
+				<ul class="unstyled">
+					<li><a href="/sitemap/">Sitemap</a></li>
+				</ul>
+			</div>
+			<div class="span3">
+				<h3>Get Involved</h3>
+				<ul class="unstyled">
+					<li><a href="/mailing/">Mailing Lists</a></li>
+					<li><a href="http://issues.apache.org/jira/browse/THRIFT">Issue Tracking</a></li>
+					<li><a href="/docs/HowToContribute/">How To Contribute</a></li>
+				</ul>	
+			</div>
+			<div class="span6">
+				<a href="http://www.apache.org/"><img src="/static/images/favicon.ico" /></a> Copyright 2012 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
+			</div>
+		</div>
+		
+	</footer>
+</div>
+  </body>
+</html>

Added: thrift/site/publish/docs/types/index.html
URL: http://svn.apache.org/viewvc/thrift/site/publish/docs/types/index.html?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/docs/types/index.html (added)
+++ thrift/site/publish/docs/types/index.html Sun Mar 25 22:11:20 2012
@@ -0,0 +1,146 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+    <meta content="en-us" http-equiv="Content-Language" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <link href="/static/images/favicon.ico" rel="shortcut icon" />
+    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
+    <link href="/static/css/bootstrap.css" media="screen, projection" rel="stylesheet" type="text/css" />
+
+    <script src="/static/js/jquery.min.js"></script>
+	  <script src="/static/js/bootstrap-dropdown.js"></script>
+    <script src="/static/js/bootstrap-tab.js"></script>
+	
+    <title>Apache Thrift</title>
+  </head>
+  <body>
+  	<div class="navbar">
+	<div class="navbar-inner">
+		<div class="container">
+			<a class="brand" href="http://thrift.apache.org">Apache Thrift</a>
+			<div class="nav-collapse">
+				<ul class="nav pull-right">
+					<li>
+						<a href="/download/">Download</a>
+					</li>
+					<li>
+						<a href="/developers/">Developers</a>
+					</li>
+					<li>
+						<a href="/tutorial/">Tutorials</a>
+					</li>
+					<li>
+						<a href="/about/">About</a>
+					</li>
+					<li class="dropdown">
+						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
+							Apache <b class="caret"></b>
+						</a>
+						<ul class="dropdown-menu">
+							<li>
+								<a href="http://www.apache.org/" target="_blank">Apache Home</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/licenses/" target="_blank">Apache License v2.0</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Donate</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+			</div>
+		</div>
+	</div>
+</div>
+
+  	<div class="container">
+		<h2>Thrift Types</h2>
+
+<p>The Thrift type system is intended to allow programmers to use native types as much as possible, no matter what programming language they are working in. This information is based on, and supersedes, the information in the <a href="/static/files/thrift-20070401.pdf">Thrift Whitepaper</a>. The <a href="/docs/idl/">Thrift IDL</a> provides descriptions of the types which are used to generate code for each target language.</p>
+
+<h3>Base Types</h3>
+
+<p>The base types were selected with the goal of simplicity and clarity rather than abundance, focusing on the key types available in all programming languages.</p>
+
+<ul>
+<li>bool: A boolean value (true or false)</li>
+<li>byte: An 8-bit signed integer</li>
+<li>i16: A 16-bit signed integer</li>
+<li>i32: A 32-bit signed integer</li>
+<li>i64: A 64-bit signed integer</li>
+<li>double: A 64-bit floating point number</li>
+<li>string: A text string encoded using UTF-8 encoding</li>
+</ul><p>Note the absence of unsigned integer types. This is due to the fact that there are no native unsigned integer types in many programming languages.</p>
+
+<h3>Special Types</h3>
+
+<p>binary: a sequence of unencoded bytes</p>
+
+<p>N.B.: This is currently a specialized form of the string type above, added to provide better interoperability with Java. The current plan-of-record is to elevate this to a base type at some point.</p>
+
+<h3>Structs</h3>
+
+<p>Thrift structs define a common object – they are essentially equivalent to classes in OOP languages, but without inheritance. A struct has a set of strongly typed fields, each with a unique name identifier. Fields may have various annotations (numeric field IDs, optional default values, etc.) that are described in the  <a href="/docs/idl/">Thrift IDL</a>.</p>
+
+<h3>Containers</h3>
+
+<p>Thrift containers are strongly typed containers that map to commonly used and commonly available container types in most programming languages.</p>
+
+<p>There are three container types:</p>
+
+<p>list<type>: An ordered list of elements. Translates to an STL vector, Java ArrayList, native arrays in scripting languages, etc.
+set<type>: An unordered set of unique elements. Translates to an STL set, Java HashSet, set in Python, etc. Note: PHP does not support sets, so it is treated similar to a List
+map<type1>: A map of strictly unique keys to values. Translates to an STL map, Java HashMap, PHP associative array, Python/Ruby dictionary, etc.
+While defaults are provided, the type mappings are not explicitly fixed. Custom code generator directives have been added to allow substitution of custom types in various destination languages.</type1></type></type></p>
+
+<p>Container elements may be of any valid Thrift Type.</p>
+
+<p>N.B.: For maximal compatibility, the key type for map should be a basic type rather than a struct or container type. There are some languages which do not support more complex key types in their native map types. In addition the JSON protocol only supports key types that are base types.</p>
+
+<h3>Exceptions</h3>
+
+<p>Exceptions are functionally equivalent to structs, except that they inherit from the native exception base class as appropriate in each target programming language, in order to seamlessly integrate with the native exception handling in any given language.</p>
+
+<h3>Services</h3>
+
+<p>Services are defined using Thrift types. Definition of a service is semantically equivalent to defining an interface (or a pure virtual abstract class) in object oriented programming. The Thrift compiler generates fully functional client and server stubs that implement the interface.</p>
+
+<p>A service consists of a set of named functions, each with a list of parameters and a return type.</p>
+
+<p>Note that void is a valid type for a function return, in addition to all other defined Thrift types. Additionally, an async modifier keyword may be added to a void function, which will generate code that does not wait for a response. Note that a pure void function will return a response to the client which guarantees that the operation has completed on the server side. With async method calls the client will only be guaranteed that the request succeeded at the transport layer. Async method calls of the same client may be executed in parallel/out of order by the server.</p>
+	</div>
+	<div class="container">
+	<hr>
+	<footer class="footer">
+		<div class="row">
+			<div class="span3">
+				<h3>Links</h3>
+				<ul class="unstyled">
+					<li><a href="/download/">Download</a></li>
+					<li><a href="/developers/">Developers</a></li>
+					<li><a href="/tutorial/">Tutorials</a></li>
+			    </ul>
+				<ul class="unstyled">
+					<li><a href="/sitemap/">Sitemap</a></li>
+				</ul>
+			</div>
+			<div class="span3">
+				<h3>Get Involved</h3>
+				<ul class="unstyled">
+					<li><a href="/mailing/">Mailing Lists</a></li>
+					<li><a href="http://issues.apache.org/jira/browse/THRIFT">Issue Tracking</a></li>
+					<li><a href="/docs/HowToContribute/">How To Contribute</a></li>
+				</ul>	
+			</div>
+			<div class="span6">
+				<a href="http://www.apache.org/"><img src="/static/images/favicon.ico" /></a> Copyright 2012 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
+			</div>
+		</div>
+		
+	</footer>
+</div>
+  </body>
+</html>

Added: thrift/site/publish/download/index.html
URL: http://svn.apache.org/viewvc/thrift/site/publish/download/index.html?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/download/index.html (added)
+++ thrift/site/publish/download/index.html Sun Mar 25 22:11:20 2012
@@ -0,0 +1,140 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+    <meta content="en-us" http-equiv="Content-Language" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <link href="/static/images/favicon.ico" rel="shortcut icon" />
+    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
+    <link href="/static/css/bootstrap.css" media="screen, projection" rel="stylesheet" type="text/css" />
+
+    <script src="/static/js/jquery.min.js"></script>
+	  <script src="/static/js/bootstrap-dropdown.js"></script>
+    <script src="/static/js/bootstrap-tab.js"></script>
+	
+    <title>Apache Thrift</title>
+  </head>
+  <body>
+  	<div class="navbar">
+	<div class="navbar-inner">
+		<div class="container">
+			<a class="brand" href="http://thrift.apache.org">Apache Thrift</a>
+			<div class="nav-collapse">
+				<ul class="nav pull-right">
+					<li>
+						<a href="/download/">Download</a>
+					</li>
+					<li>
+						<a href="/developers/">Developers</a>
+					</li>
+					<li>
+						<a href="/tutorial/">Tutorials</a>
+					</li>
+					<li>
+						<a href="/about/">About</a>
+					</li>
+					<li class="dropdown">
+						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
+							Apache <b class="caret"></b>
+						</a>
+						<ul class="dropdown-menu">
+							<li>
+								<a href="http://www.apache.org/" target="_blank">Apache Home</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/licenses/" target="_blank">Apache License v2.0</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Donate</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+			</div>
+		</div>
+	</div>
+</div>
+
+  	<div class="container">
+		<h2>Release</h2>
+
+<p>The latest stable release of Thrift is 0.8.0 (released on 2011-11-29).</p>
+
+<ul>
+<li>
+<a href="http://www.apache.org/dyn/closer.cgi?path=/thrift/0.8.0/thrift-0.8.0.tar.gz">thrift-0.8.0.tar.gz</a> [<a href="http://www.apache.org/dist/thrift/0.8.0/thrift-0.8.0.tar.gz.asc">PGP</a>]
+[<a href="http://www.apache.org/dist/thrift/0.8.0/thrift-0.8.0.tar.gz.md5">MD5</a>]</li>
+<li>
+<a href="http://www.apache.org/dyn/closer.cgi?path=/thrift/0.8.0/thrift-0.8.0.exe">Thrift compiler for Windows (thrift-0.8.0.exe)</a> [<a href="http://www.apache.org/dist/thrift/0.8.0/thrift-0.8.0.exe.asc">PGP</a>] [<a href="http://www.apache.org/dist/thrift/0.8.0/thrift-0.8.0.exe.md5">MD5</a>]</li>
+</ul><h2>Maven artifact</h2>
+
+<pre><code>
+&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.thrift&lt;/groupId&gt;
+  &lt;artifactId&gt;libthrift&lt;/artifactId&gt;
+  &lt;version&gt;0.8.0&lt;/version&gt;
+&lt;/dependency&gt;
+</code></pre>
+
+<p>When downloading from a mirror, please be sure to <a href="http://www.apache.org/info/verification.html">verify</a> the checksums and signature (see the MD5 and PGP links above). The <a href="http://www.apache.org/dist/thrift/KEYS">KEYS</a> file contains the public key(s) used for signing releases.</p>
+
+<hr><h2>Snapshot Releases</h2>
+
+<p>The snapshot releases are built by <a href="https://builds.apache.org/hudson/view/S-Z/view/Thrift/">Thrift Continuous Integration</a> server running on Apache Jenkins instance.</p>
+
+<ul>
+<li>
+<a href="https://builds.apache.org/hudson/job/Thrift/lastSuccessfulBuild/artifact/thrift/">thrift-x.x.x.tar.gz</a> - Latest successful build (make dist)</li>
+<li>
+<a href="https://builds.apache.org/hudson/job/Thrift-Compiler-Windows/lastSuccessfulBuild/artifact/thrift/thrift.exe">Thrift compiler for Windows (thrift.exe)</a> - Latest successful build</li>
+<li>
+<a href="https://builds.apache.org/hudson/job/Thrift/javadoc/">Thrift javadoc</a> - Latest successful build</li>
+</ul><h4>NOTE: These developer snapshots are not certified releases and we recommend that users use the stable release above.</h4>
+
+<hr><h2>Incubator Releases</h2>
+
+<p>Releases from the incubator ( less than 0.6.0 ) are available at the <a href="http://archive.apache.org/dist/incubator/thrift/">Thrift Incubator Archive</a></p>
+
+<p>Releases from 0.6.0 up to the current release are available at the <a href="http://archive.apache.org/dist/thrift/">Apache Thrift Archive</a></p>
+
+<hr><h2>SVN Checkout</h2>
+
+<p>For those who would like to participate in Thrift development, you may checkout Thrift from the <a href="http://svn.apache.org/viewvc/thrift/">Apache SVN repository</a>.
+</p><pre><code>
+svn co http://svn.apache.org/repos/asf/thrift/trunk/ thrift
+cd thrift
+</code></pre>
+	</div>
+	<div class="container">
+	<hr>
+	<footer class="footer">
+		<div class="row">
+			<div class="span3">
+				<h3>Links</h3>
+				<ul class="unstyled">
+					<li><a href="/download/">Download</a></li>
+					<li><a href="/developers/">Developers</a></li>
+					<li><a href="/tutorial/">Tutorials</a></li>
+			    </ul>
+				<ul class="unstyled">
+					<li><a href="/sitemap/">Sitemap</a></li>
+				</ul>
+			</div>
+			<div class="span3">
+				<h3>Get Involved</h3>
+				<ul class="unstyled">
+					<li><a href="/mailing/">Mailing Lists</a></li>
+					<li><a href="http://issues.apache.org/jira/browse/THRIFT">Issue Tracking</a></li>
+					<li><a href="/docs/HowToContribute/">How To Contribute</a></li>
+				</ul>	
+			</div>
+			<div class="span6">
+				<a href="http://www.apache.org/"><img src="/static/images/favicon.ico" /></a> Copyright 2012 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
+			</div>
+		</div>
+		
+	</footer>
+</div>
+  </body>
+</html>

Added: thrift/site/publish/index.html
URL: http://svn.apache.org/viewvc/thrift/site/publish/index.html?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/index.html (added)
+++ thrift/site/publish/index.html Sun Mar 25 22:11:20 2012
@@ -0,0 +1,224 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+    <meta content="en-us" http-equiv="Content-Language" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <link href="/static/images/favicon.ico" rel="shortcut icon" />
+    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
+    <link href="/static/css/bootstrap.css" media="screen, projection" rel="stylesheet" type="text/css" />
+
+    <script src="/static/js/jquery.min.js"></script>
+	  <script src="/static/js/bootstrap-dropdown.js"></script>
+    <script src="/static/js/bootstrap-tab.js"></script>
+	
+    <title>Apache Thrift</title>
+  </head>
+  <body>
+  	<div class="navbar">
+	<div class="navbar-inner">
+		<div class="container">
+			<a class="brand" href="http://thrift.apache.org">Apache Thrift</a>
+			<div class="nav-collapse">
+				<ul class="nav pull-right">
+					<li>
+						<a href="/download/">Download</a>
+					</li>
+					<li>
+						<a href="/developers/">Developers</a>
+					</li>
+					<li>
+						<a href="/tutorial/">Tutorials</a>
+					</li>
+					<li>
+						<a href="/about/">About</a>
+					</li>
+					<li class="dropdown">
+						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
+							Apache <b class="caret"></b>
+						</a>
+						<ul class="dropdown-menu">
+							<li>
+								<a href="http://www.apache.org/" target="_blank">Apache Home</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/licenses/" target="_blank">Apache License v2.0</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Donate</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+			</div>
+		</div>
+	</div>
+</div>
+
+  	<div class="container">
+		<div class="row">
+  <div class="span8">
+    <p>
+      Apache Thrift is a software framework for scalable cross-language services development. It combines a software stack with a code generation engine to build services that work efficiently and seamlessly between C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, OCaml and Delphi and other languages.
+    </p>
+    
+    <h3>Getting Started</h3>
+    <p>
+      </p>
+<ul>
+<li>
+          <b>Download Apache Thrift</b>
+          <p>To get started, <a href="/download/">download</a> a copy of Thrift.</p>
+        </li>
+        <li>
+          <b>Build and Install the Apache Thrift compiler</b>
+          <p>You will then need to build the Apache Thrift compiler and install it. See the <a href="/docs/install/">installing Thrift</a> guide for any help with this step.</p>
+        </li>
+        <li>
+          <b>Writing a .thrift file</b>
+
+          <p>After the Thrift compiler is installed you will need to create a thrift file. This file is an <a href="/docs/idl/">interface definition</a> made up of <a href="/docs/types/">thrift types</a> and Services. The services you define in this file are implemented by the server and are called by any clients. The Thrift compiler is used to generate your Thrift File into source code which is used by the different client libraries and the server you write. To generate the source from a thrift file run</p>
+
+          <pre>
+            <code>thrift --gen &lt;language&gt; &lt;Thrift filename&gt;</code>
+          </pre>
+
+          <p>The sample tutorial.thrift file used for all the client and server tutorials can be found <a href="http://svn.apache.org/repos/asf/thrift/trunk/tutorial/">here</a>. </p>
+        </li>
+      </ul>
+<br><p>
+      To learn more about Apache Thrift <a href="/static/files/thrift-20070401.pdf">Read the Whitepaper</a>
+    </p>
+  </div>
+  <div class="span3 well center pull-right">
+    <h2>Download</h2>
+    <p>Apache Thrift v0.8.0</p>
+    <p>
+      <a class="btn btn-large" href="http://www.apache.org/dyn/closer.cgi?path=/thrift/0.8.0/thrift-0.8.0.tar.gz">
+          Download <small>v0.8.0</small>
+      </a>
+    </p>
+    <p>
+      <small>
+       <a href="http://www.apache.org/dist/thrift/0.8.0/thrift-0.8.0.tar.gz.md5">MD5</a>
+      </small>
+      |
+      <small>
+       <a href="http://www.apache.org/dist/thrift/0.8.0/thrift-0.8.0.tar.gz.asc">PGP</a>
+      </small>
+    </p>
+    <p>
+      </p>
+<h4>[<a href="/download/">Other Downloads</a>]</h4>
+    
+  </div>
+</div>
+<hr><h3>Example<h3>
+</h3>
+</h3><p>Apache Thrift allows you to define data types and service interfaces in a simple definition file. Taking that file as input, the compiler generates code to be used to easily build RPC clients and servers that communicate seamlessly across programming languages. Instead of writing a load of boilerplate code to serialize and transport your objects and invoke remote methods, you can get right down to business.
+</p>
+<p>The following example is a simple service to store user objects for a web front end.</p>
+<div class="tabbable">
+  <ul class="nav nav-tabs">
+<li class="active"><a href="#1" data-toggle="tab">Thrift Definition File</a></li>
+    <li><a href="#2" data-toggle="tab">Python Client</a></li>
+    <li><a href="#3" data-toggle="tab">C++ Server</a></li>
+  </ul>
+<div class="tab-content">
+    <div class="tab-pane active" id="1">
+      <pre><code>
+      struct UserProfile {
+        1: i32 uid,
+        2: string name,
+        3: string blurb
+      }
+      service UserStorage {
+        void store(1: UserProfile user),
+        UserProfile retrieve(1: i32 uid)
+      }
+      </code></pre>
+    </div>
+    <div class="tab-pane" id="2">
+      <pre><code class="language-python">      <span style="color:#777"># Make an object</span>
+      up = UserProfile(uid=<span style="color:#00D">1</span>,
+                       name=<span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">Test User</span><span style="color:#710">"</span></span>,
+                       blurb=<span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">Thrift is great</span><span style="color:#710">"</span></span>)
+
+      <span style="color:#777"># Talk to a server via TCP sockets, using a binary protocol</span>
+      transport = TSocket.TSocket(<span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">localhost</span><span style="color:#710">"</span></span>, <span style="color:#00D">9090</span>)
+      transport.open()
+      protocol = TBinaryProtocol.TBinaryProtocol(transport)
+
+      <span style="color:#777"># Use the service we already defined</span>
+      service = UserStorage.Client(protocol)
+      service.store(up)
+
+      <span style="color:#777"># Retrieve something as well</span>
+      up2 = service.retrieve(<span style="color:#00D">2</span>)</code></pre>
+    </div>
+    <div class="tab-pane" id="3">
+      <pre><code class="language-c">      class UserStorageHandler : virtual public UserStorageIf {
+       <span style="color:#970;font-weight:bold">public:</span>
+        UserStorageHandler() {
+          <span style="color:#777">// Your initialization goes here</span>
+        }
+
+        <span style="color:#088;font-weight:bold">void</span> store(<span style="color:#088;font-weight:bold">const</span> UserProfile&amp; user) {
+          <span style="color:#777">// Your implementation goes here</span>
+          printf(<span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">store</span><span style="color:#b0b">\n</span><span style="color:#710">"</span></span>);
+        }
+
+        <span style="color:#088;font-weight:bold">void</span> retrieve(UserProfile&amp; _return, <span style="color:#088;font-weight:bold">const</span> int32_t uid) {
+          <span style="color:#777">// Your implementation goes here</span>
+          printf(<span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">retrieve</span><span style="color:#b0b">\n</span><span style="color:#710">"</span></span>);
+        }
+      };
+
+      <span style="color:#0a5;font-weight:bold">int</span> main(<span style="color:#0a5;font-weight:bold">int</span> argc, <span style="color:#0a5;font-weight:bold">char</span> **argv) {
+        <span style="color:#0a5;font-weight:bold">int</span> port = <span style="color:#00D">9090</span>;
+        shared_ptr handler(new UserStorageHandler());
+        shared_ptr processor(new UserStorageProcessor(handler));
+        shared_ptr serverTransport(new TServerSocket(port));
+        shared_ptr transportFactory(new TBufferedTransportFactory());
+        shared_ptr protocolFactory(new TBinaryProtocolFactory());
+        TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
+        server.serve();
+        <span style="color:#080;font-weight:bold">return</span> <span style="color:#00D">0</span>;
+      }</code></pre>
+    </div>
+  </div>
+</div>
+	</div>
+	<div class="container">
+	<hr>
+	<footer class="footer">
+		<div class="row">
+			<div class="span3">
+				<h3>Links</h3>
+				<ul class="unstyled">
+					<li><a href="/download/">Download</a></li>
+					<li><a href="/developers/">Developers</a></li>
+					<li><a href="/tutorial/">Tutorials</a></li>
+			    </ul>
+				<ul class="unstyled">
+					<li><a href="/sitemap/">Sitemap</a></li>
+				</ul>
+			</div>
+			<div class="span3">
+				<h3>Get Involved</h3>
+				<ul class="unstyled">
+					<li><a href="/mailing/">Mailing Lists</a></li>
+					<li><a href="http://issues.apache.org/jira/browse/THRIFT">Issue Tracking</a></li>
+					<li><a href="/docs/HowToContribute/">How To Contribute</a></li>
+				</ul>	
+			</div>
+			<div class="span6">
+				<a href="http://www.apache.org/"><img src="/static/images/favicon.ico" /></a> Copyright 2012 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
+			</div>
+		</div>
+		
+	</footer>
+</div>
+  </body>
+</html>

Added: thrift/site/publish/mailing/index.html
URL: http://svn.apache.org/viewvc/thrift/site/publish/mailing/index.html?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/mailing/index.html (added)
+++ thrift/site/publish/mailing/index.html Sun Mar 25 22:11:20 2012
@@ -0,0 +1,121 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+    <meta content="en-us" http-equiv="Content-Language" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <link href="/static/images/favicon.ico" rel="shortcut icon" />
+    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
+    <link href="/static/css/bootstrap.css" media="screen, projection" rel="stylesheet" type="text/css" />
+
+    <script src="/static/js/jquery.min.js"></script>
+	  <script src="/static/js/bootstrap-dropdown.js"></script>
+    <script src="/static/js/bootstrap-tab.js"></script>
+	
+    <title>Apache Thrift</title>
+  </head>
+  <body>
+  	<div class="navbar">
+	<div class="navbar-inner">
+		<div class="container">
+			<a class="brand" href="http://thrift.apache.org">Apache Thrift</a>
+			<div class="nav-collapse">
+				<ul class="nav pull-right">
+					<li>
+						<a href="/download/">Download</a>
+					</li>
+					<li>
+						<a href="/developers/">Developers</a>
+					</li>
+					<li>
+						<a href="/tutorial/">Tutorials</a>
+					</li>
+					<li>
+						<a href="/about/">About</a>
+					</li>
+					<li class="dropdown">
+						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
+							Apache <b class="caret"></b>
+						</a>
+						<ul class="dropdown-menu">
+							<li>
+								<a href="http://www.apache.org/" target="_blank">Apache Home</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/licenses/" target="_blank">Apache License v2.0</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Donate</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+			</div>
+		</div>
+	</div>
+</div>
+
+  	<div class="container">
+		<p>In accordance with the principles of the Apache Software Foundation, Thrift encourages a collaborative and community-based development environment.</p>
+
+<p>All project discussion is carried out publicly, on the following archived lists.</p>
+
+<hr><h3>User Mailing List</h3>
+
+<p>If you use Apache Thrift, please subscribe to the Thrift user mailing list. This list is for questions about Thrift and announcements from the team relevant to all users</p>
+
+<p><a href="mailto:user-subscribe@thrift.apache.org">Subscribe</a> | <a href="mailto:user-unsubscribe@thrift.apache.org">Unsubscribe</a> | <a href="http://mail-archives.apache.org/mod_mbox/thrift-user/">View Archives</a> | <a href="http://mail-archives.apache.org/mod_mbox/incubator-thrift-user/">View Archives (Incubator)</a></p>
+
+<hr><h3>Developers Mailing List</h3>
+
+<p>If you would like to contribute to Apache Thrift, subscribe to the Thrift developer mailing list.</p>
+
+<p><a href="mailto:dev-subscribe@thrift.apache.org">Subscribe</a> | <a href="mailto:dev-unsubscribe@thrift.apache.org">Unsubscribe</a> | <a href="http://mail-archives.apache.org/mod_mbox/thrift-dev/">View Archives</a> | <a href="http://mail-archives.apache.org/mod_mbox/incubator-thrift-dev/">View Archives (Incubator)</a></p>
+
+<hr><h3>Commits Mailing List</h3>
+
+<p>This list receives notifications about all code changes made to Apache Thrift.</p>
+
+<p><a href="mailto:commits-subscribe@thrift.apache.org">Subscribe</a> | <a href="mailto:commits-unsubscribe@thrift.apache.org">Unsubscribe</a> | <a href="http://mail-archives.apache.org/mod_mbox/thrift-commits/">View Archives</a> | <a href="http://mail-archives.apache.org/mod_mbox/incubator-thrift-commits/">View Archives (Incubator)</a></p>
+
+<hr><p>Note: subscription is required to post to all lists.</p>
+
+<h3>IRC</h3>
+
+<p>Many of the Apache Thrift developers and community members hang out in the #thrift channel on irc.freenode.net.</p>
+
+<p>If you are new to IRC, you can use a client such as <a href="http://www.xchat.org/">xchat</a> or <a href="http://www.irssi.org/">Irssi</a> or a <a href="http://webchat.freenode.net/?channels=#thrift">web-based client</a>.</p>
+	</div>
+	<div class="container">
+	<hr>
+	<footer class="footer">
+		<div class="row">
+			<div class="span3">
+				<h3>Links</h3>
+				<ul class="unstyled">
+					<li><a href="/download/">Download</a></li>
+					<li><a href="/developers/">Developers</a></li>
+					<li><a href="/tutorial/">Tutorials</a></li>
+			    </ul>
+				<ul class="unstyled">
+					<li><a href="/sitemap/">Sitemap</a></li>
+				</ul>
+			</div>
+			<div class="span3">
+				<h3>Get Involved</h3>
+				<ul class="unstyled">
+					<li><a href="/mailing/">Mailing Lists</a></li>
+					<li><a href="http://issues.apache.org/jira/browse/THRIFT">Issue Tracking</a></li>
+					<li><a href="/docs/HowToContribute/">How To Contribute</a></li>
+				</ul>	
+			</div>
+			<div class="span6">
+				<a href="http://www.apache.org/"><img src="/static/images/favicon.ico" /></a> Copyright 2012 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
+			</div>
+		</div>
+		
+	</footer>
+</div>
+  </body>
+</html>

Added: thrift/site/publish/sitemap/index.html
URL: http://svn.apache.org/viewvc/thrift/site/publish/sitemap/index.html?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/sitemap/index.html (added)
+++ thrift/site/publish/sitemap/index.html Sun Mar 25 22:11:20 2012
@@ -0,0 +1,126 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+    <meta content="en-us" http-equiv="Content-Language" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <link href="/static/images/favicon.ico" rel="shortcut icon" />
+    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
+    <link href="/static/css/bootstrap.css" media="screen, projection" rel="stylesheet" type="text/css" />
+
+    <script src="/static/js/jquery.min.js"></script>
+	  <script src="/static/js/bootstrap-dropdown.js"></script>
+    <script src="/static/js/bootstrap-tab.js"></script>
+	
+    <title>Apache Thrift</title>
+  </head>
+  <body>
+  	<div class="navbar">
+	<div class="navbar-inner">
+		<div class="container">
+			<a class="brand" href="http://thrift.apache.org">Apache Thrift</a>
+			<div class="nav-collapse">
+				<ul class="nav pull-right">
+					<li>
+						<a href="/download/">Download</a>
+					</li>
+					<li>
+						<a href="/developers/">Developers</a>
+					</li>
+					<li>
+						<a href="/tutorial/">Tutorials</a>
+					</li>
+					<li>
+						<a href="/about/">About</a>
+					</li>
+					<li class="dropdown">
+						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
+							Apache <b class="caret"></b>
+						</a>
+						<ul class="dropdown-menu">
+							<li>
+								<a href="http://www.apache.org/" target="_blank">Apache Home</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/licenses/" target="_blank">Apache License v2.0</a>
+							</li>
+							<li>
+								<a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Donate</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+			</div>
+		</div>
+	</div>
+</div>
+
+  	<div class="container">
+		<ul>
+<li>
+    <a href="/">Home</a>
+    </li>
+    
+            <li><a href="/about/">About</a></li>
+    
+            <li><a href="/developers/">Developers</a></li>
+    
+            <li>
+<a href="/docs/">Documentation</a><ul>
+<li><a href="/docs/BuildingFromSource/">Building From Source</a></li>   <li><a href="/docs/features/">Features</a></li> <li><a href="/docs/HowToContribute/">How To Contribute</a></li> <li>
+<a href="/docs/committers/">Information for Committers</a>  <ul>
+<li><a href="/docs/committers/AdditionalReading/">General articles and links for committers</a></li>        <li><a href="/docs/committers/HowToRelease/">How to create a release</a></li>       <li><a href="/docs/committers/HowToPublish/">How to publish a release</a></li>      <li><a href="/docs/committers/HowToThriftWebsite/">How to update the website</a></li>       <li><a href="/docs/committers/HowToVersion/">How to version client libraries</a></li>   </ul>
+</li>   <li>
+<a href="/docs/install/">Installation Tutorials</a> <ul>
+<li><a href="/docs/install/centos/">Centos Install</a></li>     <li><a href="/docs/install/os_x/">OS X Install</a></li>     <li><a href="/docs/install/ubuntu/">Ubuntu Install</a></li>     <li><a href="/docs/install/windows/">Windows Install</a></li>   </ul>
+</li>   <li><a href="/docs/idl/">Interface Description Language (IDL)</a></li>  <li><a href="/docs/types/">Thrift Type system</a></li>
+</ul>
+</li>
+    
+            <li><a href="/download/">Download</a></li>
+    
+            <li><a href="/mailing/">Mailing Lists</a></li>
+    
+            <li><span class="active" title="You're here.">Sitemap</span></li>
+    
+            <li>
+<a href="/tutorial/">Tutorial</a><ul>
+<li><a href="/tutorial/as3/">As3</a></li>   <li><a href="/tutorial/c_glib/">C Glib</a></li> <li><a href="/tutorial/cpp/">C++</a></li>   <li><a href="/tutorial/csharp/">CSharp</a></li> <li><a href="/tutorial/d/">D</a></li>   <li><a href="/tutorial/delphi/">Delphi</a></li> <li><a href="/tutorial/erl/">Erlang</a></li>    <li><a href="/tutorial/go/">Go</a></li> <li><a href="/tutorial/hs/">Haskell</a></li>    <li><a href="/tutorial/java/">Java</a></li> <li><a href="/tutorial/javame/">Java Me</a></li>    <li><a href="/tutorial/js/">Javascript</a></li> <li><a href="/tutorial/nodejs/">Node.js</a></li>    <li><a href="/tutorial/cocoa/">Objective-c</a></li> <li><a href="/tutorial/ocaml/">OCaml</a></li>   <li><a href="/tutorial/perl/">Perl</a></li> <li><a href="/tutorial/php/">PHP</a></li>   <li><a href="/tutorial/py/">Python</a></li> <li><a href="/tutorial/rb/">Ruby</a></li>   <li><a href="/tutorial/st/">Smalltalk</a></li>
+</ul>
+</li>
+    
+</ul>
+	</div>
+	<div class="container">
+	<hr>
+	<footer class="footer">
+		<div class="row">
+			<div class="span3">
+				<h3>Links</h3>
+				<ul class="unstyled">
+					<li><a href="/download/">Download</a></li>
+					<li><a href="/developers/">Developers</a></li>
+					<li><a href="/tutorial/">Tutorials</a></li>
+			    </ul>
+				<ul class="unstyled">
+					<li><a href="/sitemap/">Sitemap</a></li>
+				</ul>
+			</div>
+			<div class="span3">
+				<h3>Get Involved</h3>
+				<ul class="unstyled">
+					<li><a href="/mailing/">Mailing Lists</a></li>
+					<li><a href="http://issues.apache.org/jira/browse/THRIFT">Issue Tracking</a></li>
+					<li><a href="/docs/HowToContribute/">How To Contribute</a></li>
+				</ul>	
+			</div>
+			<div class="span6">
+				<a href="http://www.apache.org/"><img src="/static/images/favicon.ico" /></a> Copyright 2012 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
+			</div>
+		</div>
+		
+	</footer>
+</div>
+  </body>
+</html>

Added: thrift/site/publish/static/css/alerts.css
URL: http://svn.apache.org/viewvc/thrift/site/publish/static/css/alerts.css?rev=1305161&view=auto
==============================================================================
--- thrift/site/publish/static/css/alerts.css (added)
+++ thrift/site/publish/static/css/alerts.css Sun Mar 25 22:11:20 2012
@@ -0,0 +1,70 @@
+// ALERT STYLES
+// ------------
+
+// Base alert styles
+.alert {
+  padding: 8px 35px 8px 14px;
+  margin-bottom: @baseLineHeight;
+  text-shadow: 0 1px 0 rgba(255,255,255,.5);
+  background-color: @warningBackground;
+  border: 1px solid @warningBorder;
+  .border-radius(4px);
+}
+.alert,
+.alert-heading {
+  color: @warningText;
+}
+
+// Adjust close link position
+.alert .close {
+  position: relative;
+  top: -2px;
+  right: -21px;
+  line-height: 18px;
+}
+
+// Alternate styles
+// ----------------
+
+.alert-success {
+  background-color: @successBackground;
+  border-color: @successBorder;  
+}
+.alert-success,
+.alert-success .alert-heading {
+  color: @successText;
+}
+.alert-danger,
+.alert-error {
+  background-color: @errorBackground;
+  border-color: @errorBorder;
+}
+.alert-danger,
+.alert-error,
+.alert-danger .alert-heading,
+.alert-error .alert-heading {
+  color: @errorText;
+}
+.alert-info {
+  background-color: @infoBackground;
+  border-color: @infoBorder;
+}
+.alert-info,
+.alert-info .alert-heading {
+  color: @infoText;
+}
+
+
+// Block alerts
+// ------------------------
+.alert-block {
+  padding-top: 14px;
+  padding-bottom: 14px;
+}
+.alert-block > p,
+.alert-block > ul {
+  margin-bottom: 0;
+}
+.alert-block p + p {
+  margin-top: 5px;
+}