Author: joes
Date: Wed Mar 19 20:04:14 2014
New Revision: 1579375
URL: http://svn.apache.org/r1579375
Log:
better tutorial index page
Modified:
thrift/cms-site/trunk/content/tutorial/index.html
thrift/cms-site/trunk/templates/default.html
Modified: thrift/cms-site/trunk/content/tutorial/index.html
URL:
http://svn.apache.org/viewvc/thrift/cms-site/trunk/content/tutorial/index.html?rev=1579375&r1=1579374&r2=1579375&view=diff
==============================================================================
--- thrift/cms-site/trunk/content/tutorial/index.html (original)
+++ thrift/cms-site/trunk/content/tutorial/index.html Wed Mar 19 20:04:14 2014
@@ -1 +1,35 @@
-{% include 'default' %}
+{% extends 'default' %}
+{% block title %}Index of Tutorial{% endblock %}
+{% block content %}
+{% filter markdown %}
+## Apache Thrift Tutorial
+----
+
+* ### Download Apache Thrift
+ To get started, [download](/download/) a copy of Thrift.
+
+* ### Build and Install the Apache Thrift compiler and libraries
+ You will then need to build the Apache Thrift compiler and libraries.
+
+ ./configure && make
+
+ This will also compile the tutorial client and server for several
languages.
+ See the [Building from source](/docs/BuildingFromSource/) guide for any
help with this step.
+
+* ### Writing a .thrift file
+ After the Thrift compiler is installed you will need to create a thrift
file. This file is an [interface definition](/docs/idl/) made up of [thrift
types](/docs/types/) and Services. The services you define in this file are
implemented by the server and are called by any clients.
+
+* ### Generate Thrift file to source code
+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
+
+ thrift --gen <language> <Thrift filename>
+
+ The sample
[tutorial.thrift](https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob_plain;f=tutorial/tutorial.thrift)
file defines a basic calculator service. This will be used to demonstrate both
the client and server.
+
+## Examples Clients and Servers
+{% endfilter %}
+{{ content | markdown }}
+{% end block %}
+
+
+
Modified: thrift/cms-site/trunk/templates/default.html
URL:
http://svn.apache.org/viewvc/thrift/cms-site/trunk/templates/default.html?rev=1579375&r1=1579374&r2=1579375&view=diff
==============================================================================
--- thrift/cms-site/trunk/templates/default.html (original)
+++ thrift/cms-site/trunk/templates/default.html Wed Mar 19 20:04:14 2014
@@ -13,12 +13,14 @@
<script src="/static/js/bootstrap-dropdown.js"></script>
<script src="/static/js/bootstrap-tab.js"></script>
- <title>{{ headers.title }}</title>
+ <title>{% block title %}{{ headers.title }}{% endblock %}</title>
</head>
<body>
{% include 'header' %}
<div class="container">
+ {% block content %}
{{ content|markdown }}
+ {% endblock %}
</div>
{% include 'footer' %}
</body>