Modified: 
incubator/samza/site/learn/documentation/latest/container/state-management.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/container/state-management.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- 
incubator/samza/site/learn/documentation/latest/container/state-management.html 
(original)
+++ 
incubator/samza/site/learn/documentation/latest/container/state-management.html 
Tue Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/container/state-management.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/container/state-management.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -366,6 +371,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/container/state-management.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: incubator/samza/site/learn/documentation/latest/container/streams.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/container/streams.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/container/streams.html 
(original)
+++ incubator/samza/site/learn/documentation/latest/container/streams.html Tue 
Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/container/streams.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/container/streams.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -253,6 +258,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/container/streams.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: 
incubator/samza/site/learn/documentation/latest/container/windowing.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/container/windowing.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/container/windowing.html 
(original)
+++ incubator/samza/site/learn/documentation/latest/container/windowing.html 
Tue Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/container/windowing.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/container/windowing.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -181,6 +186,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/container/windowing.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: incubator/samza/site/learn/documentation/latest/index.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/index.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/index.html (original)
+++ incubator/samza/site/learn/documentation/latest/index.html Tue Aug 19 
21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/index.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/index.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -216,6 +221,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/index.html"; ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: 
incubator/samza/site/learn/documentation/latest/introduction/architecture.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/introduction/architecture.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- 
incubator/samza/site/learn/documentation/latest/introduction/architecture.html 
(original)
+++ 
incubator/samza/site/learn/documentation/latest/introduction/architecture.html 
Tue Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/introduction/architecture.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/introduction/architecture.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -240,6 +245,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/introduction/architecture.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: 
incubator/samza/site/learn/documentation/latest/introduction/background.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/introduction/background.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- 
incubator/samza/site/learn/documentation/latest/introduction/background.html 
(original)
+++ 
incubator/samza/site/learn/documentation/latest/introduction/background.html 
Tue Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/introduction/background.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/introduction/background.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -201,6 +206,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/introduction/background.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: 
incubator/samza/site/learn/documentation/latest/introduction/concepts.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/introduction/concepts.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/introduction/concepts.html 
(original)
+++ incubator/samza/site/learn/documentation/latest/introduction/concepts.html 
Tue Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/introduction/concepts.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/introduction/concepts.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -196,6 +201,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/introduction/concepts.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: 
incubator/samza/site/learn/documentation/latest/jobs/configuration-table.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/jobs/configuration-table.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- 
incubator/samza/site/learn/documentation/latest/jobs/configuration-table.html 
(original)
+++ 
incubator/samza/site/learn/documentation/latest/jobs/configuration-table.html 
Tue Aug 19 21:01:10 2014
@@ -188,6 +188,21 @@
                 </tr>
 
                 <tr>
+                    <td class="property" 
id="job-systemstreampartition-grouper-factory">job.systemstreampartition.grouper.factory</td>
+                    <td 
class="default">org.apache.samza.container.grouper.stream.GroupByPartitionFactory</td>
+                    <td class="description">
+                        A factory class that is used to determine how input 
SystemStreamPartitions are grouped together for processing in individual 
StreamTask instances. The factory must implement the 
SystemStreamPartitionGrouperFactory interface. Once this configuration is set, 
it can't be changed, since doing so could violate state semantics, and lead to 
a loss of data.
+
+                        <dl>
+                          
<dt><code>org.apache.samza.container.grouper.stream.GroupByPartitionFactory</code></dt>
+                          <dd>Groups input stream partitions according to 
their partition number. This grouping leads to a single StreamTask processing 
all messages for a single partition (e.g. partition 0) across all input streams 
that have a partition 0. Therefore, the default is that you get one StreamTask 
for all input partitions with the same partition number. Using this strategy, 
if two input streams have a partition 0, then messages from both partitions 
will be routed to a single StreamTask. This partitioning strategy is useful for 
joining and aggregating streams.</dt>
+                          
<dt><code>org.apache.samza.container.grouper.stream.GroupBySystemStreamPartitionFactory</code></dt>
+                          <dd>Assigns each SystemStreamPartition to its own 
unique StreamTask. The  GroupBySystemStreamPartitionFactory is useful in cases 
where you want increased parallelism (more containers), and don't care about 
co-locating partitions for grouping or joins, since it allows for a greater 
number of StreamTasks to be divided up amongst Samza containers.</dd>
+                        </dl>
+                    </td>
+                </tr>
+
+                <tr>
                     <th colspan="3" class="section" id="task"><a 
href="../api/overview.html">Task configuration</a></th>
                 </tr>
 

Modified: 
incubator/samza/site/learn/documentation/latest/jobs/configuration.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/jobs/configuration.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/jobs/configuration.html 
(original)
+++ incubator/samza/site/learn/documentation/latest/jobs/configuration.html Tue 
Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/configuration.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/configuration.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -189,6 +194,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/configuration.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: incubator/samza/site/learn/documentation/latest/jobs/job-runner.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/jobs/job-runner.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/jobs/job-runner.html 
(original)
+++ incubator/samza/site/learn/documentation/latest/jobs/job-runner.html Tue 
Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/job-runner.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/job-runner.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -178,6 +183,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/job-runner.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: incubator/samza/site/learn/documentation/latest/jobs/logging.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/jobs/logging.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/jobs/logging.html (original)
+++ incubator/samza/site/learn/documentation/latest/jobs/logging.html Tue Aug 
19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/logging.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/logging.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -207,6 +212,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/logging.html"; 
) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: incubator/samza/site/learn/documentation/latest/jobs/packaging.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/jobs/packaging.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/jobs/packaging.html 
(original)
+++ incubator/samza/site/learn/documentation/latest/jobs/packaging.html Tue Aug 
19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/packaging.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/packaging.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -165,6 +170,26 @@ lib/*.jar
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/packaging.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: incubator/samza/site/learn/documentation/latest/jobs/reprocessing.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/jobs/reprocessing.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/jobs/reprocessing.html 
(original)
+++ incubator/samza/site/learn/documentation/latest/jobs/reprocessing.html Tue 
Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/reprocessing.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/reprocessing.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -216,6 +221,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/reprocessing.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: incubator/samza/site/learn/documentation/latest/jobs/yarn-jobs.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/jobs/yarn-jobs.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/jobs/yarn-jobs.html 
(original)
+++ incubator/samza/site/learn/documentation/latest/jobs/yarn-jobs.html Tue Aug 
19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/yarn-jobs.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/yarn-jobs.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -156,6 +161,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/yarn-jobs.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: incubator/samza/site/learn/documentation/latest/operations/kafka.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/operations/kafka.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/operations/kafka.html 
(original)
+++ incubator/samza/site/learn/documentation/latest/operations/kafka.html Tue 
Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/operations/kafka.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/operations/kafka.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -156,6 +161,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/operations/kafka.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: 
incubator/samza/site/learn/documentation/latest/operations/security.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/operations/security.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/operations/security.html 
(original)
+++ incubator/samza/site/learn/documentation/latest/operations/security.html 
Tue Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/operations/security.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/operations/security.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -198,6 +203,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/operations/security.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: 
incubator/samza/site/learn/documentation/latest/yarn/application-master.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/yarn/application-master.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- 
incubator/samza/site/learn/documentation/latest/yarn/application-master.html 
(original)
+++ 
incubator/samza/site/learn/documentation/latest/yarn/application-master.html 
Tue Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/yarn/application-master.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/yarn/application-master.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -197,6 +202,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/yarn/application-master.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: incubator/samza/site/learn/documentation/latest/yarn/isolation.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/latest/yarn/isolation.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/latest/yarn/isolation.html 
(original)
+++ incubator/samza/site/learn/documentation/latest/yarn/isolation.html Tue Aug 
19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/yarn/isolation.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/documentation/0.7.0/yarn/isolation.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -170,6 +175,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/documentation/0.7.0/yarn/isolation.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: 
incubator/samza/site/learn/tutorials/latest/deploy-samza-job-from-hdfs.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/tutorials/latest/deploy-samza-job-from-hdfs.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/tutorials/latest/deploy-samza-job-from-hdfs.html 
(original)
+++ incubator/samza/site/learn/tutorials/latest/deploy-samza-job-from-hdfs.html 
Tue Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/tutorials/0.7.0/deploy-samza-job-from-hdfs.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/tutorials/0.7.0/deploy-samza-job-from-hdfs.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -162,6 +167,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/tutorials/0.7.0/deploy-samza-job-from-hdfs.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: incubator/samza/site/learn/tutorials/latest/index.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/tutorials/latest/index.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/tutorials/latest/index.html (original)
+++ incubator/samza/site/learn/tutorials/latest/index.html Tue Aug 19 21:01:10 
2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/tutorials/0.7.0/index.html";><i 
class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/tutorials/0.7.0/index.html";><i 
id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -163,6 +168,26 @@
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/tutorials/0.7.0/index.html"; ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: 
incubator/samza/site/learn/tutorials/latest/remote-debugging-samza.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/tutorials/latest/remote-debugging-samza.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/tutorials/latest/remote-debugging-samza.html 
(original)
+++ incubator/samza/site/learn/tutorials/latest/remote-debugging-samza.html Tue 
Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/tutorials/0.7.0/remote-debugging-samza.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/tutorials/0.7.0/remote-debugging-samza.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -208,6 +213,26 @@ deploy/samza/bin/run-job.sh --config-fac
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/tutorials/0.7.0/remote-debugging-samza.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: 
incubator/samza/site/learn/tutorials/latest/run-hello-samza-without-internet.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/tutorials/latest/run-hello-samza-without-internet.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- 
incubator/samza/site/learn/tutorials/latest/run-hello-samza-without-internet.html
 (original)
+++ 
incubator/samza/site/learn/tutorials/latest/run-hello-samza-without-internet.html
 Tue Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/tutorials/0.7.0/run-hello-samza-without-internet.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/tutorials/0.7.0/run-hello-samza-without-internet.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -187,6 +192,26 @@ NOTICE AUTH :*** Found your hostname
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/tutorials/0.7.0/run-hello-samza-without-internet.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: 
incubator/samza/site/learn/tutorials/latest/run-in-multi-node-yarn.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/learn/tutorials/latest/run-in-multi-node-yarn.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/learn/tutorials/latest/run-in-multi-node-yarn.html 
(original)
+++ incubator/samza/site/learn/tutorials/latest/run-in-multi-node-yarn.html Tue 
Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/learn/tutorials/0.7.0/run-in-multi-node-yarn.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/learn/tutorials/0.7.0/run-in-multi-node-yarn.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -266,6 +271,26 @@ tar -xvf ./samza-job-package/target/samz
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/learn/tutorials/0.7.0/run-in-multi-node-yarn.html";
 ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: incubator/samza/site/sitemap.xml
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/sitemap.xml?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/sitemap.xml (original)
+++ incubator/samza/site/sitemap.xml Tue Aug 19 21:01:10 2014
@@ -20,7 +20,7 @@
 
   <url>
     <loc>http://samza.incubator.apache.org/</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     <changefreq>daily</changefreq>
     <priority>1.0</priority>
   </url>
@@ -30,322 +30,322 @@
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/yarn/application-master.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/introduction/architecture.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/introduction/background.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/container/checkpointing.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     <loc>http://samza.incubator.apache.org/contribute/code.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     <loc>http://samza.incubator.apache.org/contribute/coding-guide.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     <loc>http://samza.incubator.apache.org/community/committers.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/introduction/concepts.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/jobs/configuration.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/tutorials/versioned/deploy-samza-job-from-hdfs.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     <loc>http://samza.incubator.apache.org/contribute/disclaimer.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/container/event-loop.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/index.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     <loc>http://samza.incubator.apache.org/archive/index.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     <loc>http://samza.incubator.apache.org/index.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/tutorials/versioned/index.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     <loc>http://samza.incubator.apache.org/startup/download/index.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/startup/hello-samza/versioned/index.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/comparisons/introduction.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     <loc>http://samza.incubator.apache.org/community/irc.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/yarn/isolation.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/container/jmx.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/jobs/job-runner.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/operations/kafka.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/jobs/logging.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     <loc>http://samza.incubator.apache.org/community/mailing-lists.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/container/metrics.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/comparisons/mupd8.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/api/overview.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/jobs/packaging.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     <loc>http://samza.incubator.apache.org/contribute/projects.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/tutorials/versioned/remote-debugging-samza.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/jobs/reprocessing.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     <loc>http://samza.incubator.apache.org/contribute/rules.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/tutorials/versioned/run-hello-samza-without-internet.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/tutorials/versioned/run-in-multi-node-yarn.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/container/samza-container.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/operations/security.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     <loc>http://samza.incubator.apache.org/contribute/seps.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/container/serialization.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/comparisons/spark-streaming.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/container/state-management.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/comparisons/storm.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/container/streams.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/container/windowing.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>
   
   <url>
     
<loc>http://samza.incubator.apache.org/learn/documentation/versioned/jobs/yarn-jobs.html</loc>
-    <lastmod>2014-08-14</lastmod>
+    <lastmod>2014-08-19</lastmod>
     
     
   </url>

Modified: incubator/samza/site/startup/download/index.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/startup/download/index.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/startup/download/index.html (original)
+++ incubator/samza/site/startup/download/index.html Tue Aug 19 21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,6 +41,7 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
               </div>
             </div>
@@ -231,6 +233,8 @@
       </div>
     </div>
 
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

Modified: incubator/samza/site/startup/hello-samza/latest/index.html
URL: 
http://svn.apache.org/viewvc/incubator/samza/site/startup/hello-samza/latest/index.html?rev=1618985&r1=1618984&r2=1618985&view=diff
==============================================================================
--- incubator/samza/site/startup/hello-samza/latest/index.html (original)
+++ incubator/samza/site/startup/hello-samza/latest/index.html Tue Aug 19 
21:01:10 2014
@@ -25,6 +25,7 @@
     <link href="/css/main.css" rel="stylesheet"/>
     <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
+    <script src="/js/jquery-1.11.1.min.js"></script>
   </head>
   <body>
     <div class="wrapper">
@@ -40,8 +41,12 @@
                 <a href="/startup/download"><i class="fa 
fa-arrow-circle-o-down masthead-icon"></i></a>
                 <a 
href="https://git-wip-us.apache.org/repos/asf?p=incubator-samza.git;a=tree"; 
target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: 
bold;"></i></a>
                 <a href="https://twitter.com/samzastream"; target="_blank"><i 
class="fa fa-twitter masthead-icon"></i></a>
+                <!-- this icon only shows in versioned pages -->
                 
-                  <a 
href="http://samza.incubator.apache.org/startup/hello-samza/0.7.0/index.html";><i
 class="fa fa-history masthead-icon"></i></a>
+                  
+                    
+                  
+                  <a 
href="http://samza.incubator.apache.org/startup/hello-samza/0.7.0/index.html";><i
 id="switch-version-button"></i></a>
                 
               </div>
             </div>
@@ -221,6 +226,26 @@ deploy/samza/bin/run-job.sh --config-fac
       </div>
     </div>
 
+  
+    <script>
+      $( document ).ready(function() {
+        if ( $.fn.urlExists( 
"http://samza.incubator.apache.org/startup/hello-samza/0.7.0/index.html"; ) ) {
+          $("#switch-version-button").addClass("fa fa-history masthead-icon");
+        }
+      });
+
+      /* a function to test whether the url exists or not */
+      (function( $ ) {
+        $.fn.urlExists = function(url) {
+          var http = new XMLHttpRequest();
+          http.open('HEAD', url, false);
+          http.send();
+          return http.status != 404;
+        };
+      }( jQuery ));
+    </script>
+  
+
     <!-- Google Analytics -->
     <script>
       
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){


Reply via email to