http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/layouts/default.html ---------------------------------------------------------------------- diff --git a/geode-site/website/layouts/default.html b/geode-site/website/layouts/default.html deleted file mode 100644 index 0df020a..0000000 --- a/geode-site/website/layouts/default.html +++ /dev/null @@ -1,12 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - -<%= render '/header.*', {:docs => @docs, :community => @community, :releases => @releases} %> - -<%= @content %> - -<%= render '/footer.*' %> - - -</body> -</html>
http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/layouts/docs.html ---------------------------------------------------------------------- diff --git a/geode-site/website/layouts/docs.html b/geode-site/website/layouts/docs.html deleted file mode 100644 index ddfaf8a..0000000 --- a/geode-site/website/layouts/docs.html +++ /dev/null @@ -1 +0,0 @@ -<%= render '/default.*', :docs => true, :content => @content, :item => @item %> http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/layouts/footer.html ---------------------------------------------------------------------- diff --git a/geode-site/website/layouts/footer.html b/geode-site/website/layouts/footer.html deleted file mode 100644 index 89e9a64..0000000 --- a/geode-site/website/layouts/footer.html +++ /dev/null @@ -1,81 +0,0 @@ -<footer class="bf-footer" role="contentinfo"> - <div class="container"> - <div class="row"> - <div class="col-md-2"> - <ul class="nav nav-list"> - <li class="nav-header"><a href="/">Home</a></li> - <li class="nav-header"><a href="/community/">Community</a></li> - <li><a href="/community/#events">Events</a></li> - <li><a href="/community/#mailing-lists">Mailing Lists</a></li> - <li><a href="/community/#deployments">Deployments</a></li> - <!-- <li><a href="/community/#committers">Commiters</a></li> --> - </ul> - </div> - <div class="col-md-2"> - <ul class="nav nav-list"> - <li class="nav-header"><a href="http://github.com/apache/geode" target="_blank">Code</a></li> - <li><a href="https://cwiki.apache.org/confluence/display/GEODE/Project+Proposals+and+Specifications" target="_blank">Specifications</a></li> - <li><a href="https://cwiki.apache.org/confluence/display/GEODE/Geode+Internal+Architecture" target="_blank">Internal Architecture</a></li> - <li><a href="https://cwiki.apache.org/confluence/display/GEODE/Writing+tests" target="_blank">Writing Tests</a></li> - <li><a href="https://cwiki.apache.org/confluence/display/GEODE/Criteria+for+Code+Submissions" target="_blank">Code Submissions</a></li> - </ul> - </div> - <div class="col-md-2"> - <ul class="nav nav-list"> - <li class="nav-header">Resources</li> - <li><a href="http://github.com/apache/geode" target="_blank">GitHub Code</a></li> - <li><a href="/docs/">Docs</a></li> - <li><a href="https://issues.apache.org/jira/browse/GEODE" target="_blank">JIRA Bug Tracker</a></li> - <li><a href="http://stackoverflow.com/search?q=Apache%20Geode" target="_blank">StackOverflow</a></li> - <li><a href="/community/#live">Live Chat</a></li> - <li><a href="https://twitter.com/apachegeode" target="_blank">Twitter</a></li> - <li><a href="https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutesGeodein5minutes" target="_blank">Geode in 5 minutes</a></li> - <li><a href="https://cwiki.apache.org/confluence/display/GEODE/How+to+Contribute" target="_blank">How to Contribute</a></li> - <li><a href="https://cwiki.apache.org/confluence/display/GEODE/Application+Development" target="_blank">Application Development</a></li> - - <li><a href="https://cwiki.apache.org/confluence/display/GEODE/Technology+FAQ" target="_blank">FAQ</a></li> - - </ul> - </div> - <div class="col-md-2"> - <ul class="nav nav-list"> - <li class="nav-header">Apache</li> - <li><a href="http://www.apache.org/licenses/" target="_blank">License</a></li> - <li><a href="http://www.apache.org/foundation/sponsorship.html" target="_blank">Sponsorship</a></li> - <li><a href="http://www.apache.org/foundation/thanks.html" target="_blank">Thanks</a></li> - <li><a href="http://www.apache.org/security/">Security</a></li> - <li><a href="http://www.apache.org/" target="_blank">Apache Foundation</a></li> - </ul> - </div> - <div class="col-md-4"> - <a class="twitter-timeline" href="https://twitter.com/search?q=%23ApacheGeode%20OR%20Apache%20Geode" data-widget-id="665030887004725248">Tweets about #ApacheGeode OR Apache Geode</a> -<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> - </div> - <!-- - <div class="col-md-4"> - <div class="input-group form-search"> - <input type="text" class="form-control search-query"> - <span class="input-group-btn"> - <button type="submit" class="btn btn-primary" data-type="last">Search</button> - </span> - </div> - </div> --> - </div> - <div class="row"> - <center> - <div id="copyright"> - <a href="http://www.apache.org" target="_blank"><img src="/img/asf_logo.png" height="125"></a><br/><br/> - <p>Copyright © 2016 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.<br> - Apache, Apache Geode, and the Apache feather logos are trademarks of The Apache Software Foundation.</p> - <p>Site designed & assembled with love by <a href="https://github.com/ryuneeee">@ryuneeee</a> + <a href="https://github.com/realbeast">@realbeast</a> + <a href="https://twitter.com/timanglade">@timanglade</a> + <a href="https://twitter.com/snoopdave">@snoopdave</a> for Apache Usergrid.</p> - <p>Modified for Apache Geode by <a href="https://twitter.com/william_markito">@william_markito</a>.</p> - </div> - </center> - </div> - </div> -</footer> - -<script type="text/javascript" src="/js/head.js"></script> -<script type="text/javascript"> - head.js("/js/jquery-1.10.1.min.js", "/js/bootstrap.min.js", "/js/usergrid-site.js"); -</script> http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/layouts/header.html ---------------------------------------------------------------------- diff --git a/geode-site/website/layouts/header.html b/geode-site/website/layouts/header.html deleted file mode 100644 index ea15471..0000000 --- a/geode-site/website/layouts/header.html +++ /dev/null @@ -1,260 +0,0 @@ -<head> - <!-- 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. --> - <meta charset="utf-8"> - <title>Apache Geode â <%= @item[:title] %></title> - <meta http-equiv="x-ua-compatible" content="ie=edge" /> - <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" /> - <meta name="keywords" content="Apache Geode, Geode, GemFire, In-memory, IMDB, IMDG, cache"> - <meta name="description" content="Apache Geode is a distributed, in-memory database with strong data consistency, built to support transactional applications with low latency and high concurrency needs." /> - <meta property="og:title" content="Apache Geode" /> - <meta property="og:description" content="Apache Geode is a distributed, in-memory database with strong data consistency, built to support transactional applications with low latency and high concurrency needs." /> - <!-- Loading Typekit --> - <script type="text/javascript" src="//use.typekit.net/ddl7izx.js"></script> - <script type="text/javascript">try{Typekit.load();}catch(e){}</script> - <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script> - <!-- Enabling Issue collector --> - <script type="text/javascript" src="https://issues.apache.org/jira/s/bfe7c1e06d911e53fc96873d31176352-T/en_UK-ugtin9/6332/81/1.4.15/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-UK&collectorId=2e0eeb8d"></script> - - <!-- Place this tag right after the last button or just before your close body tag. --> - <script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script> - <!-- Loading Bootstrap --> - <link href="/bootstrap/bootstrap.min.css" rel="stylesheet" type='text/css'> - <link href="/css/bootflat.css" rel="stylesheet" type='text/css'> - <link href="/css/geode-site.css" rel="stylesheet" type='text/css'> - <link href="https://fonts.googleapis.com/css?family=Open+Sans:200,400,500,300,600,800,700,400italic,600italic,700italic,800italic,300italic" rel="stylesheet" type="text/css"> - <link href="/css/font-awesome.min.css" rel="stylesheet" type='text/css'> - -<!-- google analytics --> - <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), - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - - ga('create', 'UA-63425957-1', 'auto'); - ga('send', 'pageview'); -</script> -<!-- end google analytics --> - - <% if @community == true %> - <script type="text/javascript" - src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBYSxyIKS22zC4wSLFXZGR8QKXbGWLFwYw&sensor=false"> - </script> - <script type="text/javascript"> - - var points = [ - new google.maps.LatLng(-33.8674869,151.2069902), - new google.maps.LatLng(40.2338438,-111.6585337), - new google.maps.LatLng(37.6909682,-122.3107517), - new google.maps.LatLng(-37.6825027,176.1880232), - new google.maps.LatLng(-0.023559,37.906193), - new google.maps.LatLng(41.00527,28.97696), - new google.maps.LatLng(47.1569444,27.5902778), - new google.maps.LatLng(49.261226,-123.1139268), - new google.maps.LatLng(55.378051,-3.435973), - new google.maps.LatLng(30.3321838,-81.65565099999999), - new google.maps.LatLng(30.267153,-97.7430608), - new google.maps.LatLng(-14.235004,-51.92528), - new google.maps.LatLng(41.76371109999999,-72.6850932), - new google.maps.LatLng(53.3498053,-6.2603097), - new google.maps.LatLng(-37.814107,144.96328), - new google.maps.LatLng(26.820553,30.802498), - new google.maps.LatLng(34.0522342,-118.2436849), - new google.maps.LatLng(37.566535,126.9779692), - new google.maps.LatLng(7.873053999999999,80.77179699999999), - new google.maps.LatLng(39.737567,-104.9847179), - new google.maps.LatLng(52.9399159,-73.5491361), - new google.maps.LatLng(40.7143528,-74.00597309999999), - new google.maps.LatLng(44.9374831,-93.20099979999999), - new google.maps.LatLng(38.963745,35.243322), - new google.maps.LatLng(35.7795897,-78.6381787), - new google.maps.LatLng(35.907757,127.766922), - new google.maps.LatLng(-6.2689913,106.8060388), - new google.maps.LatLng(27.3364347,-82.53065269999999), - new google.maps.LatLng(44.494887,11.3426163), - new google.maps.LatLng(39.952335,-75.16378900000001), - new google.maps.LatLng(37.09024,-95.712891), - new google.maps.LatLng(40.5852602,-105.084423), - new google.maps.LatLng(43.653226,-79.3831843), - new google.maps.LatLng(47.6062095,-122.3320708), - new google.maps.LatLng(31.046051,34.851612), - new google.maps.LatLng(51.41233,-0.300689), - new google.maps.LatLng(39.4699075,-0.3762881), - new google.maps.LatLng(51.51121389999999,-0.1198244), - new google.maps.LatLng(42.3556899,-83.361853), - new google.maps.LatLng(33.4483771,-112.0740373), - new google.maps.LatLng(45.5234515,-122.6762071), - new google.maps.LatLng(43.0730517,-89.4012302), - new google.maps.LatLng(36.1031378,-80.202394), - new google.maps.LatLng(37.7749295,-122.4194155), - new google.maps.LatLng(5.263234100000001,100.4846227), - new google.maps.LatLng(35.5950581,-82.5514869), - new google.maps.LatLng(35.86166,104.195397), - new google.maps.LatLng(34.4208305,-119.6981901), - new google.maps.LatLng(1.352083,103.819836), - new google.maps.LatLng(36.8507689,-76.28587259999999), - new google.maps.LatLng(22.396428,114.109497), - new google.maps.LatLng(48.856614,2.3522219), - new google.maps.LatLng(40.4167754,-3.7037902), - new google.maps.LatLng(18.5204303,73.8567437), - new google.maps.LatLng(36.1666667,-86.7833333), - new google.maps.LatLng(53.3498053,-6.2603097), - new google.maps.LatLng(26.0993883,-80.1343301), - new google.maps.LatLng(42.331427,-83.0457538), - new google.maps.LatLng(37.82206000000001,-122.272437), - new google.maps.LatLng(30.42130899999999,-87.2169149), - new google.maps.LatLng(44.4325,26.1038889), - new google.maps.LatLng(41.0700485,-81.49516210000002), - new google.maps.LatLng(12.9715987,77.5945627), - new google.maps.LatLng(53.41291,-8.24389), - new google.maps.LatLng(34.0583995,-106.8914159), - new google.maps.LatLng(-9.189967,-75.015152), - new google.maps.LatLng(55.6760968,12.5683371), - new google.maps.LatLng(53.9807737,-6.7148821), - new google.maps.LatLng(31.230416,121.473701), - new google.maps.LatLng(33.7489954,-84.3879824), - new google.maps.LatLng(8.4874949,76.948623), - new google.maps.LatLng(13.0524139,80.25082460000002), - new google.maps.LatLng(28.0836269,-80.60810889999999), - new google.maps.LatLng(39.0457549,-76.64127119999999), - new google.maps.LatLng(17.385044,78.486671), - new google.maps.LatLng(-23.5489433,-46.6388182), - new google.maps.LatLng(52.09179,5.114569899999999), - new google.maps.LatLng(19.2667,76.7833), - new google.maps.LatLng(19.0759837,72.8776559), - new google.maps.LatLng(12.9715987,77.5945627), - new google.maps.LatLng(41.1566892,-8.6239254), - new google.maps.LatLng(39.90403,116.407526), - new google.maps.LatLng(42.3584308,-71.0597732), - new google.maps.LatLng(32.725409,-97.3208496), - new google.maps.LatLng(39.074208,21.824312), - new google.maps.LatLng(10.066049,123.538599), - new google.maps.LatLng(37.42410599999999,-122.1660756), - new google.maps.LatLng(36.204824,138.252924) - ]; - - var map; - var markers = []; - var iterator = 0; - var dropped = false; - var recentered = false; - - function initialize() { - var mapOptions = { - center: new google.maps.LatLng(0,0), - //draggable: false, - //zoomControl: false, - scrollwheel: false, - streetViewControl: false, - mapTypeControl: false, - panControl: false, - //disableDoubleClickZoom: true, - zoom: 2, - //disableDefaultUI: true, - mapTypeId: google.maps.MapTypeId.ROADMAP - }; - map = new google.maps.Map(document.getElementById("map-canvas"), - mapOptions); - - google.maps.event.addDomListener(map, 'idle', function() { - if (recentered == false) { - map.setCenter(new google.maps.LatLng(20,0)); - recentered = true; - } - }); - - var bounds = new google.maps.LatLngBounds(); - - // Extend bounds with each point - for (var i = 0; i < points.length; i++) { - bounds.extend(points[i]); - } - map.fitBounds(bounds); - - if (document.hasFocus()) { - dropped = true; - drop(); - } - - - } - function drop() { - dropped = true; - for (var i = 0; i < points.length; i++) { - setTimeout(function() { - addMarker(); - }, i * 50); - } - } - - function addMarker() { - markers.push(new google.maps.Marker({ - position: points[iterator], - map: map, - draggable: false, - animation: google.maps.Animation.DROP - })); - iterator++; - } - - google.maps.event.addDomListener(window, 'load', initialize); - - window.onfocus = function () { - if (dropped == false) { - drop(); - } - }; - </script> - <% end %> - - <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. --> - <!--[if lt IE 9]> - <script src="js/html5shiv.js"></script> - <script src="js/respond.min.js"></script> - <![endif]--> -</head> -<body> - - <header class="navbar navbar-inverse navbar-fixed-top bf-docs-nav <%= 'secondary' if @docs or @community or @releases %>" role="banner"> - <div class="container"> - <div class="navbar-header"> - <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bf-navbar-collapse"> - <span class="sr-only">Toggle navigation</span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - </div> - <a href="/" class="navbar-brand"> - <img id="home-logo" src="/img/apache_geode_logo_white_small.png" /> - </a> - <nav class="collapse navbar-collapse bf-navbar-collapse" role="navigation"> - <ul class="nav navbar-nav navbar-right"> - <li class="<%= 'active' if @community %>"><a href="/community/"><span class="fa fa-users"></span></a></li> - <li class="<%= 'active' if @docs %>"><a href="/docs/"><span class="fa fa-book"></span></a></li> - <li><a href="http://github.com/apache/geode" target="_blank"><span class="fa fa-github-square"></span></a></li> - <li><a href="https://issues.apache.org/jira/browse/GEODE/" target="_blank"><span class="fa fa-bug"></span></a></li> - <li><a href="http://stackoverflow.com/search?q=Apache%20Geode" target="_blank"><span class="fa fa-stack-overflow"></span></a></li> - <li><a href="/community/#mailing-lists"><span class="fa fa-envelope"></span></a></li> - <li><a href="https://twitter.com/apachegeode" target="_blank"><span class="fa fa-twitter"></span></a></li> - <li><a href="https://cwiki.apache.org/confluence/display/geode/" target="_blank"><span class="fa fa-pencil-square-o"></span></a></li> - <li class="<%= 'active' if @releases %>"><a href="/releases/"><span class="fa fa-arrow-circle-o-down"></span></a></li> - </ul> - </nav> - </div> - </header> http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/layouts/releases.html ---------------------------------------------------------------------- diff --git a/geode-site/website/layouts/releases.html b/geode-site/website/layouts/releases.html deleted file mode 100644 index fa58ee9..0000000 --- a/geode-site/website/layouts/releases.html +++ /dev/null @@ -1 +0,0 @@ -<%= render '/default.*', :releases => true, :content => @content, :item => @item %> http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/lib/default.rb ---------------------------------------------------------------------- diff --git a/geode-site/website/lib/default.rb b/geode-site/website/lib/default.rb deleted file mode 100644 index 95383f2..0000000 --- a/geode-site/website/lib/default.rb +++ /dev/null @@ -1,60 +0,0 @@ -# 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. - -# All files in the 'lib' directory will be loaded -# before nanoc starts compiling. -include Nanoc::Helpers::Rendering - -require 'pandoc-ruby' -require 'htmlentities' - -class PandocFilter < Nanoc::Filter - identifier :pandoc - type :text - - def run(content, params = {}) - ::PandocRuby.convert(content, 'smart', 'no-highlight', 'toc', :template => 'lib/pandoc.template') - end -end - -class FencedCodeBlock < Nanoc::Filter - identifier :fenced_code_block - - def run(content, params={}) - content.gsub(/(^`{3,}\s*(\S*)\s*$([^`]*)^`{3,}\s*$)+?/m) {|match| - lang_spec = $2 - code_block = $3 - - replacement = '' - - replacement << '<pre class="highlight"><code class="language' - - if lang_spec && lang_spec.length > 0 - replacement << '-' - replacement << lang_spec - end - - replacement << '">' - - code_block.gsub!("[:backtick:]", "`") - - coder = HTMLEntities.new - replacement << coder.encode(code_block) - replacement << '</code></pre>' - } - end -end http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/lib/helpers_.rb ---------------------------------------------------------------------- diff --git a/geode-site/website/lib/helpers_.rb b/geode-site/website/lib/helpers_.rb deleted file mode 100644 index 13a8339..0000000 --- a/geode-site/website/lib/helpers_.rb +++ /dev/null @@ -1,16 +0,0 @@ -# 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. http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/lib/pandoc.template ---------------------------------------------------------------------- diff --git a/geode-site/website/lib/pandoc.template b/geode-site/website/lib/pandoc.template deleted file mode 100644 index 382b091..0000000 --- a/geode-site/website/lib/pandoc.template +++ /dev/null @@ -1,4 +0,0 @@ -<div class="toc"> - $toc$ -</div> -$body$ http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/nanoc.yaml ---------------------------------------------------------------------- diff --git a/geode-site/website/nanoc.yaml b/geode-site/website/nanoc.yaml deleted file mode 100644 index 5fcc351..0000000 --- a/geode-site/website/nanoc.yaml +++ /dev/null @@ -1,96 +0,0 @@ -# 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. - -# A list of file extensions that nanoc will consider to be textual rather than -# binary. If an item with an extension not in this list is found, the file -# will be considered as binary. -text_extensions: [ 'coffee', 'css', 'erb', 'haml', 'handlebars', 'hb', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'ms', 'mustache', 'php', 'rb', 'sass', 'scss', 'txt', 'xhtml', 'xml' ] - -# The path to the directory where all generated files will be written to. This -# can be an absolute path starting with a slash, but it can also be path -# relative to the site directory. -output_dir: ../content - -# A list of index filenames, i.e. names of files that will be served by a web -# server when a directory is requested. Usually, index files are named -# âindex.htmlâ, but depending on the web server, this may be something else, -# such as âdefault.htmâ. This list is used by nanoc to generate pretty URLs. -index_filenames: [ 'index.html' ] - -# Whether or not to generate a diff of the compiled content when compiling a -# site. The diff will contain the differences between the compiled content -# before and after the last site compilation. -enable_output_diff: true - -prune: - # Whether to automatically remove files not managed by nanoc from the output - # directory. For safety reasons, this is turned off by default. - auto_prune: false - - # Which files and directories you want to exclude from pruning. If you version - # your output directory, you should probably exclude VCS directories such as - # .git, .svn etc. - exclude: [ '.git', '.hg', '.svn', 'CVS' ] - -string_pattern_type: glob -# The data sources where nanoc loads its data from. This is an array of -# hashes; each array element represents a single data source. By default, -# there is only a single data source that reads data from the âcontent/â and -# âlayout/â directories in the site directory. -data_sources: - - - # The type is the identifier of the data source. By default, this will be - # `filesystem_unified`. - type: filesystem_unified - identifier_type: full - - # The path where items should be mounted (comparable to mount points in - # Unix-like systems). This is â/â by default, meaning that items will have - # â/â prefixed to their identifiers. If the items root were â/en/â - # instead, an item at content/about.html would have an identifier of - # â/en/about/â instead of just â/about/â. - items_root: / - - # The path where layouts should be mounted. The layouts root behaves the - # same as the items root, but applies to layouts rather than items. - layouts_root: / - - # Whether to allow periods in identifiers. When turned off, everything - # past the first period is considered to be the extension, and when - # turned on, only the characters past the last period are considered to - # be the extension. For example, a file named âcontent/about.html.erbâ - # will have the identifier â/about/â when turned off, but when turned on - # it will become â/about.html/â instead. - allow_periods_in_identifiers: false - -# Configuration for the âwatchâ command, which watches a site for changes and -# recompiles if necessary. -watcher: - # A list of directories to watch for changes. When editing this, make sure - # that the âoutput/â and âtmp/â directories are _not_ included in this list, - # because recompiling the site will cause these directories to change, which - # will cause the site to be recompiled, which will cause these directories - # to change, which will cause the site to be recompiled again, and so on. - dirs_to_watch: [ 'content', 'layouts', 'lib' ] - - # A list of single files to watch for changes. As mentioned above, donât put - # any files from the âoutput/â or âtmp/â directories in here. - files_to_watch: [ 'nanoc.yaml', 'Rules' ] - - # When to send notifications (using Growl or notify-send). - notify_on_compilation_success: true - notify_on_compilation_failure: true http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/run.sh ---------------------------------------------------------------------- diff --git a/geode-site/website/run.sh b/geode-site/website/run.sh deleted file mode 100755 index cecf19e..0000000 --- a/geode-site/website/run.sh +++ /dev/null @@ -1,18 +0,0 @@ -# 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. - -nanoc autocompile http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/utilities/map-markers.rb ---------------------------------------------------------------------- diff --git a/geode-site/website/utilities/map-markers.rb b/geode-site/website/utilities/map-markers.rb deleted file mode 100644 index 19e2306..0000000 --- a/geode-site/website/utilities/map-markers.rb +++ /dev/null @@ -1,75 +0,0 @@ -# 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. - -require 'rest_client' -require 'csv' -require 'json/ext' - -rapportive_token = "BAgiX3BYOTZUVXlNalExclVBNWIyazVNcjBxK3UzdURNUnovTXVTamRZVTVmRmNsakw5WGZrUHJIYXFRaVV2YkRYaGctLWNFQjJLUmZNam05cjdmZDEzVGFPL3c9PQ==--71d66f8c1b8eafb0a8f31691b55b95fbce58857a" -rapportive_qs = "?viewport_height=325&view_type=cv&user_email=tim.anglade%40gmail.com&client_version=ChromeExtension+rapportive+1.4.1&client_stamp=1382671311" - -places = {} - -# CSV.foreach("usergrid.csv") do |row| -# begin -# next if row[0].start_with?('Members ') -# next if row[0].start_with?('Email ') -# email = row[0] -# #puts email - -# response = RestClient.get "http://profiles.rapportive.com/contacts/email/#{URI.escape(email)}#{rapportive_qs}", {"user-agent" => "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36", "origin" => "https://mail.google.com", "referer" => "https://mail.google.com/mail/u/0/", "x-session-token" => rapportive_token} -# rapportive = JSON.parse(response.to_str) - -# next unless rapportive['contact']['location'] -# location = rapportive['contact']['location'].gsub(/\sBay\sArea$/,'').gsub(' Area,',',').gsub(/\sArea$/,'').gsub(/^Greater\s/,'') - -# puts location - -# places[location] ? places[location] += 1 : places[location] = 1 -# rescue => e -# puts e -# sleep 10 -# retry -# end -# end - -# places.each do |place, count| -# puts "\"#{place}\",#{count}" -# end - -places2 = {"Sydney, Australia"=>2, "Provo, Utah"=>1, "San Francisco Bay"=>27, "Bay of Plenty, New Zealand"=>1, "Kenya"=>1, "Istanbul, Turkey"=>2, "Iasi County, Romania"=>1, "Vancouver, Canada"=>2, "United Kingdom"=>3, "Jacksonville, Florida"=>1, "Austin, Texas"=>6, "Brazil"=>1, "Hartford, Connecticut"=>2, "Dublin"=>1, "Melbourne, Australia"=>1, "Egypt"=>1, "Los Angeles"=>7, "Seoul, Korea"=>1, "Sri Lanka"=>2, "Denver"=>6, "Quebec, Canada"=>1, "New York City"=>5, "Minneapolis-St. Paul"=>1, "Turkey"=>2, "Raleigh-Durham, North Carolina"=>3, "Korea"=>4, "Jakarta Selatan"=>1, "Sarasota, Florida"=>1, "Bologna, Italy"=>1, "Philadelphia"=>2, "United States"=>1, "Fort Collins, CO"=>2, "Toronto, Canada"=>2, "Seattle"=>6, "Israel"=>1, "Kingston upon Thames, United Kingdom"=>1, "Valencia, Spain"=>1, "London, United Kingdom"=>2, "Washington D.C. Metro"=>1, "Phoenix, Arizona"=>2, "Portland, Oregon"=>1, "Madison, Wisconsin"=>1, "Greensboro/Winston-Salem, North Carolina"=>1, "San Francisco, CA"=>1, "Penang, Malaysia"=>1, "Asheville, North Carolina"=>1, "China"=>1, "Santa Barbara, California"=>1, "Singapore"=>2, "Norfolk, Virginia"=>1, "Hong Kong"=>3, "Paris, France"=>1, "Madrid, Spain"=>1, "Pune, India"=>3, "nashville, TN"=>1, "Dublin, Ireland"=>1, "Miami/Fort Lauderdale"=>1, "Detroit"=>1, "720 32nd St, Oakland, CA 94609"=>1, "Pensacola, Florida"=>1, "Bucharest, Romania"=>1, "Cleveland/Akron, Ohio"=>1, "Bengaluru, India"=>7, "Ireland"=>1, "Socorro, New Mexico"=>1, "Peru"=>1, "Copenhagen, Denmark"=>1, "Somewhere"=>1, "Istanbul, Turkey"=>1, "Shanghai City, China"=>1, "Atlanta"=>2, "Thiruvananthapuram, India"=>1, "Chennai, Tamil Nadu"=>1, "Melbourne, Florida"=>1, "Maryland"=>1, "Hyderabad, India"=>1, "Sao Paulo, Brazil"=>1, "Utrecht, Netherlands"=>1, "Parbhani, India"=>1, "Mumbai, India"=>1, "Bangalore, Karnataka, India"=>1, "Porto, Portugal"=>1, "Beijing, China"=>1, "Boston"=>1, "Dallas/Fort Worth"=>1, "Greece"=>1, "Mountains"=>1, "Stanford, California"=>1, "Japan"=>1} - -countries = {} - -places2.each do |place, count| - begin - response = RestClient.get "http://maps.googleapis.com/maps/api/geocode/json?address=#{URI.escape(place)}&sensor=false" - j = JSON.parse(response.to_str) - geocoding = j["results"][0]["geometry"] - j["results"][0]["address_components"].each do |c| - next unless c["types"].include?("country") - countries[c["short_name"]] ? countries[c["short_name"]] += 1 : countries[c["short_name"]] = 1 - end - - #puts "new google.maps.Marker({\nmap:map,\nanimation: google.maps.Animation.DROP,\nposition: new google.maps.LatLng(#{geocoding['location']['lat']},#{geocoding['location']['lng']})\n});" - sleep 0.1 - rescue => e - puts e - end -end - -puts "Found #{countries.size} countries" http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/utilities/markers.txt ---------------------------------------------------------------------- diff --git a/geode-site/website/utilities/markers.txt b/geode-site/website/utilities/markers.txt deleted file mode 100644 index 994555d..0000000 --- a/geode-site/website/utilities/markers.txt +++ /dev/null @@ -1,440 +0,0 @@ -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(-33.8674869,151.2069902) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(40.2338438,-111.6585337) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(37.6909682,-122.3107517) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(-37.6825027,176.1880232) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(-0.023559,37.906193) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(41.00527,28.97696) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(47.1569444,27.5902778) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(49.261226,-123.1139268) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(55.378051,-3.435973) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(30.3321838,-81.65565099999999) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(30.267153,-97.7430608) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(-14.235004,-51.92528) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(41.76371109999999,-72.6850932) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(53.3498053,-6.2603097) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(-37.814107,144.96328) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(26.820553,30.802498) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(34.0522342,-118.2436849) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(37.566535,126.9779692) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(7.873053999999999,80.77179699999999) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(39.737567,-104.9847179) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(52.9399159,-73.5491361) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(40.7143528,-74.00597309999999) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(44.9374831,-93.20099979999999) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(38.963745,35.243322) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(35.7795897,-78.6381787) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(35.907757,127.766922) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(-6.2689913,106.8060388) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(27.3364347,-82.53065269999999) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(44.494887,11.3426163) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(39.952335,-75.16378900000001) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(37.09024,-95.712891) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(40.5852602,-105.084423) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(43.653226,-79.3831843) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(47.6062095,-122.3320708) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(31.046051,34.851612) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(51.41233,-0.300689) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(39.4699075,-0.3762881) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(51.51121389999999,-0.1198244) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(42.3556899,-83.361853) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(33.4483771,-112.0740373) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(45.5234515,-122.6762071) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(43.0730517,-89.4012302) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(36.1031378,-80.202394) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(37.7749295,-122.4194155) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(5.263234100000001,100.4846227) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(35.5950581,-82.5514869) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(35.86166,104.195397) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(34.4208305,-119.6981901) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(1.352083,103.819836) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(36.8507689,-76.28587259999999) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(22.396428,114.109497) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(48.856614,2.3522219) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(40.4167754,-3.7037902) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(18.5204303,73.8567437) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(36.1666667,-86.7833333) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(53.3498053,-6.2603097) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(26.0993883,-80.1343301) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(42.331427,-83.0457538) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(37.82206000000001,-122.272437) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(30.42130899999999,-87.2169149) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(44.4325,26.1038889) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(41.0700485,-81.49516210000002) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(12.9715987,77.5945627) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(53.41291,-8.24389) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(34.0583995,-106.8914159) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(-9.189967,-75.015152) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(55.6760968,12.5683371) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(53.9807737,-6.7148821) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(31.230416,121.473701) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(33.7489954,-84.3879824) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(8.4874949,76.948623) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(13.0524139,80.25082460000002) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(28.0836269,-80.60810889999999) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(39.0457549,-76.64127119999999) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(17.385044,78.486671) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(-23.5489433,-46.6388182) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(52.09179,5.114569899999999) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(19.2667,76.7833) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(19.0759837,72.8776559) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(12.9715987,77.5945627) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(41.1566892,-8.6239254) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(39.90403,116.407526) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(42.3584308,-71.0597732) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(32.725409,-97.3208496) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(39.074208,21.824312) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(10.066049,123.538599) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(37.42410599999999,-122.1660756) -}); -new google.maps.Marker({ -map:map, -animation: google.maps.Animation.DROP, - position: new google.maps.LatLng(36.204824,138.252924) -}); http://git-wip-us.apache.org/repos/asf/geode/blob/da3767da/geode-site/website/utilities/snapshot-apigee.rb ---------------------------------------------------------------------- diff --git a/geode-site/website/utilities/snapshot-apigee.rb b/geode-site/website/utilities/snapshot-apigee.rb deleted file mode 100644 index 4adf0ca..0000000 --- a/geode-site/website/utilities/snapshot-apigee.rb +++ /dev/null @@ -1,88 +0,0 @@ -# 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. - -require 'rubygems' -require 'mechanize' -require 'anemone' -require 'pandoc-ruby' -# require 'json/ext' - -TO_REMOVE = [ 'div.toc-filter-back-to-top', - '.rate-yesno-title', - 'colgroup', - 'div.rate-widget', - 'div.toc-filter.toc-filter-bullet' ] - -puts "Crawling..." - -urls = [] -Anemone.crawl("http://apigee.com/docs/app_services", :skip_query_strings => true) do |anemone| - # anemone.on_every_page {|page| puts page.url} - # anemone.skip_links_like(/https?\:\/\/apigee.com\/docs\/(comment|node|api-platform|console|ja|enterprise|consoletogo)/) - anemone.focus_crawl { |page| page.links.select{|l| l.to_s.match(/https?\:\/\/apigee.com\/docs\/(app-services|geode)\/content/) } } - anemone.on_pages_like(/https?\:\/\/apigee.com\/docs\/(app-services|geode)\/content/) do |page| - urls.push page.url - # puts "Found #{page.url}" - end - # anemone.after_crawl { } -end - -urls = urls.compact.map{|u| u.to_s}.uniq.sort - -puts "Found #{urls.size} documentation articles" -puts urls.join("\n") -gets - -a = Mechanize.new { |agent| - agent.user_agent_alias = 'Mac Safari' -} - -urls.each do |url| - name = url.split('/')[-1] - puts "Processing #{name}" - begin - a.get(url) do |article| - # title = article.search('h1').first - body = article.search('section#block-system-main>div.node>div.field-name-body').first - next if body.nil? - # body.children.first.add_previous_sibling(title) - # body.search('br').each {|l| l.remove} - body.search(TO_REMOVE.join(', ')).each {|l| l.remove} - body.search('div#collapse').each do |div| - div.add_next_sibling '<a id="'+div.attributes['id'].value+'"></a>' - div.remove - end - body.search('h2').each {|h| h.remove_attribute('class')} - body.search('*').each{|n| n.remove_attribute('style')} - body.search("a").each do |link| - begin - link.attributes["href"].value = link.attributes["href"].value.gsub(/^\/docs\/app-services\/content\//,'/') - rescue - end - end - markdown = PandocRuby.convert(body, :from => :html, :to => :markdown) - front_matter = "---\ntitle: #{title.inner_html.gsub(':',' - ')}\ncategory: \nlayout: article\n---\n\n" - markdown.gsub!('Apigee App Services', 'Apache Usergrid') - markdown.gsub!('App Services', 'Apache Usergrid') - markdown.insert(0,front_matter) - today = Time.new.strftime('%Y-%m-%d') - File.open("../content/docs/#{today}-#{name}.md", 'w') {|f| f.write(markdown) } - end - rescue Exception => e - puts e - end -end
