flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject flink git commit: [docs] Add custom search
Date Fri, 10 Apr 2015 09:49:21 GMT
Repository: flink
Updated Branches:
  refs/heads/master 0e3e6a3ce -> a4794631a


[docs] Add custom search

This closes #563.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/a4794631
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/a4794631
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/a4794631

Branch: refs/heads/master
Commit: a4794631a5d468636528cb2735791c7952c50373
Parents: 0e3e6a3
Author: Ufuk Celebi <uce@apache.org>
Authored: Thu Apr 2 11:29:42 2015 +0200
Committer: Ufuk Celebi <uce@apache.org>
Committed: Fri Apr 10 11:48:48 2015 +0200

----------------------------------------------------------------------
 docs/_layouts/default.html | 27 +++++++++++++++------------
 docs/search.md             | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/a4794631/docs/_layouts/default.html
----------------------------------------------------------------------
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
index 051b44f..3151128 100644
--- a/docs/_layouts/default.html
+++ b/docs/_layouts/default.html
@@ -54,13 +54,21 @@ under the License.
           {% include sidenav.html %}
         </div>  
         <div class="col-md-9">
-          <h1>{{ page.title }}{% if page.is_beta == true %} <span class="badge">Beta</span>{%
endif %}</h1>
-	  
-          {{ content }}
-	  
-        <!-- Disqus Area -->
-          <div style="padding-top:30px" id="disqus_thread"></div>
-      
+          <div class="row" style="padding-bottom:5px">
+            <form class="form-horizontal" action="search.html">
+              <div class="col-sm-10"><input name="q" type="text" class="form-control"
placeholder="Search all pages"></div>
+              <div class="col-sm-2"><button type="submit" class="btn btn-default">Search</button></div>
+            </form>
+          </div>
+
+          <div class="row">
+            <h1>{{ page.title }}{% if page.is_beta == true %} <span class="badge">Beta</span>{%
endif %}</h1>
+  	  
+            {{ content }}
+  	  
+            <!-- Disqus Area -->
+            <div style="padding-top:30px" id="disqus_thread"></div>
+        
             <script type="text/javascript">
                 /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * *
*/
                 var disqus_shortname = 'stratosphere-eu'; // required: replace example with
your forum shortname
@@ -75,7 +83,6 @@ under the License.
             <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments
powered by Disqus.</a></noscript>
           </div>
         </div>
-
         <div class="footer">
           {% capture footer %}{% include footer.md %}{% endcapture %}
           {{ footer | markdownify }}
@@ -83,8 +90,6 @@ under the License.
       </div>
     </div>
 
-    
-
     <script>
       (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
       (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -93,8 +98,6 @@ under the License.
 
       ga('create', 'UA-52545728-1', 'auto');
       ga('send', 'pageview');
-
     </script>
-
   </body>
 </html>

http://git-wip-us.apache.org/repos/asf/flink/blob/a4794631/docs/search.md
----------------------------------------------------------------------
diff --git a/docs/search.md b/docs/search.md
new file mode 100644
index 0000000..d7505ce
--- /dev/null
+++ b/docs/search.md
@@ -0,0 +1,36 @@
+---
+title:  "Search"
+---
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<script>
+  (function() {
+    var cx = '000888944958067045520:z90hn2izm0k';
+    var gcse = document.createElement('script');
+    gcse.type = 'text/javascript';
+    gcse.async = true;
+    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
+        '//www.google.com/cse/cse.js?cx=' + cx;
+    var s = document.getElementsByTagName('script')[0];
+    s.parentNode.insertBefore(gcse, s);
+  })();
+</script>
+
+<gcse:searchresults-only></gcse:searchresults-only>
\ No newline at end of file


Mime
View raw message