You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by do...@apache.org on 2016/07/22 21:04:34 UTC
incubator-predictionio git commit: [PIO-6] Clean up for ASF
Repository: incubator-predictionio
Updated Branches:
refs/heads/livedoc e0a73d215 -> 0cebfb7b6
[PIO-6] Clean up for ASF
Cleaned up links
Cleaned up unused JavaScript
Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/0cebfb7b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/0cebfb7b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/0cebfb7b
Branch: refs/heads/livedoc
Commit: 0cebfb7b64cc285f14c2b1408b87b49dc4c55767
Parents: e0a73d2
Author: Donald Szeto <do...@apache.org>
Authored: Fri Jul 22 14:02:04 2016 -0700
Committer: Donald Szeto <do...@apache.org>
Committed: Fri Jul 22 14:02:04 2016 -0700
----------------------------------------------------------------------
docs/manual/source/layouts/layout.html.slim | 2 -
docs/manual/source/partials/_adroll.html.slim | 18 --------
docs/manual/source/partials/_facebook.html.slim | 11 -----
docs/manual/source/partials/_footer.html.slim | 43 +++++---------------
docs/manual/source/partials/_func.html.slim | 4 --
.../source/partials/_google_analytics.html.slim | 10 -----
docs/manual/source/partials/_header.html.slim | 4 +-
.../manual/source/partials/_quantcast.html.slim | 18 --------
docs/manual/source/partials/_rcx.html.slim | 7 ----
.../source/partials/_subscribe_form.html.slim | 6 ---
.../source/partials/head/_javascripts.html.slim | 11 ++---
11 files changed, 15 insertions(+), 119 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0cebfb7b/docs/manual/source/layouts/layout.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/layouts/layout.html.slim b/docs/manual/source/layouts/layout.html.slim
index 982eb43..d83b447 100644
--- a/docs/manual/source/layouts/layout.html.slim
+++ b/docs/manual/source/layouts/layout.html.slim
@@ -26,6 +26,4 @@ html
= yield
= partial 'footer'
= partial 'swiftype'
- = partial 'quantcast'
- = partial 'adroll'
= javascript_include_tag 'application'
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0cebfb7b/docs/manual/source/partials/_adroll.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_adroll.html.slim b/docs/manual/source/partials/_adroll.html.slim
deleted file mode 100644
index 46a5fb6..0000000
--- a/docs/manual/source/partials/_adroll.html.slim
+++ /dev/null
@@ -1,18 +0,0 @@
-javascript:
- adroll_adv_id = "CPSSMJFFZ5DDHITC2STA54";
- adroll_pix_id = "UWX4N2WIMJADVHJGOFTM44";
- (function () {
- var _onload = function(){
- if (document.readyState && !/loaded|complete/.test(document.readyState)){setTimeout(_onload, 10);return}
- if (!window.__adroll_loaded){__adroll_loaded=true;setTimeout(_onload, 50);return}
- var scr = document.createElement("script");
- var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com");
- scr.setAttribute('async', 'true');
- scr.type = "text/javascript";
- scr.src = host + "/j/roundtrip.js";
- ((document.getElementsByTagName('head') || [null])[0] ||
- document.getElementsByTagName('script')[0].parentNode).appendChild(scr);
- };
- if (window.addEventListener) {window.addEventListener('load', _onload, false);}
- else {window.attachEvent('onload', _onload)}
- }());
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0cebfb7b/docs/manual/source/partials/_facebook.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_facebook.html.slim b/docs/manual/source/partials/_facebook.html.slim
deleted file mode 100644
index 6816ed9..0000000
--- a/docs/manual/source/partials/_facebook.html.slim
+++ /dev/null
@@ -1,11 +0,0 @@
-- if build?
- javascript:
- !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
- n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
- n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
- t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
- document,'script','//connect.facebook.net/en_US/fbevents.js');
-
- fbq('init', '1073028432707778');
- fbq('track', "PageView");
-
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0cebfb7b/docs/manual/source/partials/_footer.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_footer.html.slim b/docs/manual/source/partials/_footer.html.slim
index 3d9a528..e9f5c7d 100644
--- a/docs/manual/source/partials/_footer.html.slim
+++ b/docs/manual/source/partials/_footer.html.slim
@@ -4,46 +4,23 @@ footer
.container
.seperator
.row
- .col-md-4.col-md-push-8.col-xs-12
- = partial 'subscribe_form'
-
- .col-md-2.col-md-pull-4.col-xs-6.footer-link-column
+ .col-md-6.col-xs-6.footer-link-column
.footer-link-column-row
h4 Community
ul
li: a href="//docs.prediction.io/install/" target="blank" Download
li: a href="//docs.prediction.io/" target="blank" Docs
- li: a href="//github.com/PredictionIO/PredictionIO" target="blank" GitHub
- li: a href="//groups.google.com/forum/#!forum/predictionio-user" target="blank" Support Forum
+ li: a href="//github.com/apache/incubator-predictionio" target="blank" GitHub
+ li: a href="mailto:user-subscribe@predictionio.incubator.apache.org" target="blank" Subscribe to User Mailing List
li: a href="//stackoverflow.com/questions/tagged/predictionio" target="blank" Stackoverflow
- li: a href="mailto:support@prediction.io" target="blank" Contact Us
- .col-md-2.col-md-pull-4.col-xs-6.footer-link-column
+ .col-md-6.col-xs-6.footer-link-column
.footer-link-column-row
h4 Contribute
ul
- li: a href="//docs.prediction.io/community/contribute-code/" target="blank" Contribute
- li: a href="//github.com/PredictionIO/PredictionIO" target="blank" Source Code
- li: a href="//predictionio.atlassian.net/secure/Dashboard.jspa" target="blank" Bug Tracker
- li: a href="//groups.google.com/forum/#!forum/predictionio-dev" target="blank" Contributors’ Forum
- li: a href="//prediction.io/cla" Contributor Agreement
- li: a href="//predictionio.uservoice.com/forums/219398-general/filters/top" Request Features
- .col-md-2.col-md-pull-4.col-xs-6.footer-link-column
- .footer-link-column-row
- h4 Enterprise
- ul
- li: a href="//docs.prediction.io/support/" target="blank" Support
- li: a href="//prediction.io/enterprise" Enterprise
- li: a href="//prediction.io/products/predictionio-enterprise" Services
- .footer-link-column-row
- h4 Connect
- ul
- li: a href="//blog.prediction.io/" target="blank" Blog
- li: a href="//predictionio.theresumator.com/" target="blank" Careers
- .col-md-2.col-md-pull-4.col-xs-6.footer-link-column
- .footer-link-column-row
- h4 Partnership
- ul
- li: a href="//prediction.io/partners/program" Partner Program
+ li: a href="//predictionio.incubator.apache.org/community/contribute-code/" target="blank" Contribute
+ li: a href="//github.com/apache/incubator-predictionio" target="blank" Source Code
+ li: a href="//issues.apache.org/jira/browse/PIO" target="blank" Bug Tracker
+ li: a href="mailto:dev-subscribe@predictionio.incubator.apache.org" target="blank" Subscribe to Development Mailing List
#footer-bottom
.container
@@ -52,8 +29,8 @@ footer
#footer-logo-wrapper
= image_tag 'logos/logo-white.png', alt: 'PredictionIO'
#social-icons-wrapper
- a.github-button> href="https://github.com/PredictionIO/PredictionIO" data-style="mega" data-count-href="/PredictionIO/PredictionIO/stargazers" data-count-api="/repos/PredictionIO/PredictionIO#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star PredictionIO/PredictionIO on GitHub" Star
- a.github-button> href="https://github.com/PredictionIO/PredictionIO/fork" data-icon="octicon-git-branch" data-style="mega" data-count-href="/PredictionIO/PredictionIO/network" data-count-api="/repos/PredictionIO/PredictionIO#forks_count" data-count-aria-label="# forks on GitHub" aria-label="Fork PredictionIO/PredictionIO on GitHub" Fork
+ a.github-button> href="https://github.com/apache/incubator-predictionio" data-style="mega" data-count-href="/apache/incubator-predictionio/stargazers" data-count-api="/repos/apache/incubator-predictionio#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star apache/incubator-predictionio on GitHub" Star
+ a.github-button> href="https://github.com/apache/incubator-predictionio/fork" data-icon="octicon-git-branch" data-style="mega" data-count-href="/apache/incubator-predictionio/network" data-count-api="/repos/apache/incubator-predictionio#forks_count" data-count-aria-label="# forks on GitHub" aria-label="Fork apache/incubator-predictionio on GitHub" Fork
script#github-bjs(async defer src="https://buttons.github.io/buttons.js")
a> href="//www.facebook.com/predictionio" target="blank"
= image_tag 'icons/twitter.png', alt: 'PredictionIO on Twitter'
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0cebfb7b/docs/manual/source/partials/_func.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_func.html.slim b/docs/manual/source/partials/_func.html.slim
deleted file mode 100644
index d2169d3..0000000
--- a/docs/manual/source/partials/_func.html.slim
+++ /dev/null
@@ -1,4 +0,0 @@
-- if build?
- javascript:
- function t(e){analytics.identify(e); analytics.track("newsletter signup");
- rcx.track("newsletter signup", { '_email': e });}
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0cebfb7b/docs/manual/source/partials/_google_analytics.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_google_analytics.html.slim b/docs/manual/source/partials/_google_analytics.html.slim
deleted file mode 100644
index 4456bc4..0000000
--- a/docs/manual/source/partials/_google_analytics.html.slim
+++ /dev/null
@@ -1,10 +0,0 @@
-- if build?
- javascript:
- (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-38306178-1', 'auto');
- ga('require', 'linkid', 'linkid.js');
- ga('send', 'pageview');
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0cebfb7b/docs/manual/source/partials/_header.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_header.html.slim b/docs/manual/source/partials/_header.html.slim
index 0212098..ed78bed 100644
--- a/docs/manual/source/partials/_header.html.slim
+++ b/docs/manual/source/partials/_header.html.slim
@@ -5,7 +5,7 @@ header
#logo-wrapper
span#drawer-toggle
a href="#"
- = link_to 'http://prediction.io/' do
+ = link_to 'http://predictionio.incubator.apache.org/' do
= image_tag 'logos/logo.png', alt: 'PredictionIO', id: 'logo'
#menu-wrapper
#header-nav-options-wrapper
@@ -14,5 +14,5 @@ header
li>: a href="/support" Support
#pill-wrapper
a.pill.left> href="//templates.prediction.io/" TEMPLATES
- a.pill.right href="//github.com/PredictionIO/PredictionIO/" OPEN SOURCE
+ a.pill.right href="//github.com/apache/incubator-predictionio/" OPEN SOURCE
= image_tag 'icons/search-glass.png', class: 'mobile-search-bar-toggler hidden-md hidden-lg'
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0cebfb7b/docs/manual/source/partials/_quantcast.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_quantcast.html.slim b/docs/manual/source/partials/_quantcast.html.slim
deleted file mode 100644
index c30ddfa..0000000
--- a/docs/manual/source/partials/_quantcast.html.slim
+++ /dev/null
@@ -1,18 +0,0 @@
-javascript:
- var _qevents = _qevents || [];
- (function() {
- var elem = document.createElement('script');
- elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js";
- elem.async = true;
- elem.type = "text/javascript";
- var scpt = document.getElementsByTagName('script')[0];
- scpt.parentNode.insertBefore(elem, scpt);
- })();
- _qevents.push({
- qacct:"p-stVMxuw8H5EPX"
- });
-
-noscript
- <div style="display:none;">
- <img src="//pixel.quantserve.com/pixel/p-stVMxuw8H5EPX.gif" border="0" height="1" width="1" alt="Quantcast"/>
- </div>
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0cebfb7b/docs/manual/source/partials/_rcx.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_rcx.html.slim b/docs/manual/source/partials/_rcx.html.slim
deleted file mode 100644
index 30531dc..0000000
--- a/docs/manual/source/partials/_rcx.html.slim
+++ /dev/null
@@ -1,7 +0,0 @@
-- if build?
- javascript:
- RCX_CUSTOM_LIB="https://cdn.recontext.com/staging/rcx.min.js";
- (function(b,d,a){b.RCX_OBJECT=a;a=b[a]||[];if(!a.snipV&&!a.libV){b.rcx=a;a.snipV="0.2.0";var g=function(a,b,c,d){a[b]=a[b]||function(){c.push([d].concat(Array.prototype.slice.call(arguments)))}};b="init page track identify link setUserProperty unsetUserProperty".split(" ");for(var f=0;f<b.length;f++){var e,c;e=b[f];c=e.split(".");2==c.length?(a[c[0]]=a[c[0]]||[],g(a[c[0]],c[1],a,e)):g(a,e,a,e)}a=d.createElement("script");a.type="text/javascript";a.async=!0;a.src="undefined"!==typeof RCX_CUSTOM_LIB?
- RCX_CUSTOM_LIB:"https://cdn.recontext.com/rcx.min.js";d=d.getElementsByTagName("script")[0];d.parentNode.insertBefore(a,d)}})(window,document,"rcx");
- rcx.init("kTxFcI3IWdXYfRsh6uuYuej4qYl8m8LVMePM2hdIkM9YjHqkAFC6mqdqO9fpp8p9");
- rcx.page();
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0cebfb7b/docs/manual/source/partials/_subscribe_form.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_subscribe_form.html.slim b/docs/manual/source/partials/_subscribe_form.html.slim
deleted file mode 100644
index b2dd6b2..0000000
--- a/docs/manual/source/partials/_subscribe_form.html.slim
+++ /dev/null
@@ -1,6 +0,0 @@
-.subscription-form-wrapper
- h4 Subscribe to our Newsletter
- form.ajax-form#subscribe-form method="POST" action="https://script.google.com/macros/s/AKfycbwhzeKCQJjQ52eVAqNT_vcklH07OITUO7wzOMDXvK6EGAWgaZgF/exec"
- input.required.underlined-input type="email" placeholder="Your email address" name="subscription_email" id="subscription_email"
- input.pill-button value="SUBSCRIBE" type="submit" data-state-normal="SUBSCRIBE" data-state-sucess="SUBSCRIBED!" data-state-loading="SENDING..." onclick="t($('#subscription_email').val());"
- p.result
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0cebfb7b/docs/manual/source/partials/head/_javascripts.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/head/_javascripts.html.slim b/docs/manual/source/partials/head/_javascripts.html.slim
index 1ff0ed8..14685fd 100644
--- a/docs/manual/source/partials/head/_javascripts.html.slim
+++ b/docs/manual/source/partials/head/_javascripts.html.slim
@@ -1,13 +1,8 @@
/[if lt IE 9]
- = javascript_include_tag '//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js'
+= javascript_include_tag '//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js'
= javascript_include_tag '//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
-= partial 'google_analytics'
-= partial 'segment'
-= partial 'rcx'
-= partial 'func'
-= partial 'facebook'
/azo sans font
-= javascript_include_tag '//use.typekit.net/mut4mjx.js'
+= javascript_include_tag '//use.typekit.net/pqo0itb.js'
javascript:
- try{Typekit.load();}catch(e){}
+ try{Typekit.load({ async: true });}catch(e){}