You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2017/04/25 23:06:08 UTC
[08/20] groovy-user-site git commit: move content to asf-site branch
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/assets/js/vendor/modernizr-2.6.2.min.js
----------------------------------------------------------------------
diff --git a/site/src/site/assets/js/vendor/modernizr-2.6.2.min.js b/site/src/site/assets/js/vendor/modernizr-2.6.2.min.js
deleted file mode 100644
index f65d479..0000000
--- a/site/src/site/assets/js/vendor/modernizr-2.6.2.min.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
- * Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-mq-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
- */
-;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:F(f,"function")?f.bind(d||b):f}return!1}function J(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return F(b,"string")||F(b,"undefined")?H(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),I(e,b,c))}function K(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:
absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,
"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return y("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},A=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=F(e[d],"function"),F(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),B={}.hasOwnProperty,C;!F(B,"undefined")&&!F(B.call,"undefined")?C=function(a,b){return B.
call(a,b)}:C=function(a,b){return b in a&&F(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return J("flexWrap")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!F(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=funct
ion(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!J("indexedDB",a)},s.hashchange=function(){return A("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return D("background-color:rgba(150,255,150,.5)"),G(j.backgroundColor,"rgba")},s.hsla=function(){return D("background-color:hsla(120,40%,100%,.5)"),G(j.backgroundColor,"rgba")||G(j.backgroundColor,"hsla")},s.multiplebgs=function(){return D("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return J("backgroundSize")},s.borderimage=function(){return J("borderImage")},s.borderradius=fun
ction(){return J("borderRadius")},s.boxshadow=function(){return J("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return E("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return J("animationName")},s.csscolumns=function(){return J("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return D((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),G(j.backgroundImage,"gradient")},s.cssreflections=function(){return J("boxReflect")},s.csstransforms=function(){return!!J("transform")},s.csstransforms3d=function(){var a=!!J("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},s.csstransitions=function(){return J("
transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},s.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayTy
pe("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},s.webworkers=function(){return!!a.Worker},s.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var L
in s)C(s,L)&&(x=L.toLowerCase(),e[x]=s[L](),v.push((e[x]?"":"no-")+x));return e.input||K(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)C(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},D(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var
d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.create
Element("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.mq=z,e.hasEvent=A,e.testProp=function(a){return H([a])},e.testAllProps=J,e.testStyles=y,e.prefixed=function(a,b,c){return b?J(a,b,c):J(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){functio
n d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.load
er={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,
i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.
addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/assets/js/vendor/sidebarEffects.js
----------------------------------------------------------------------
diff --git a/site/src/site/assets/js/vendor/sidebarEffects.js b/site/src/site/assets/js/vendor/sidebarEffects.js
deleted file mode 100644
index 5906710..0000000
--- a/site/src/site/assets/js/vendor/sidebarEffects.js
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * sidebarEffects.js v1.0.0
- * http://www.codrops.com
- *
- * Licensed under the MIT license.
- * http://www.opensource.org/licenses/mit-license.php
- *
- * Copyright 2013, Codrops
- * http://www.codrops.com
- */
- var SidebarMenuEffects = (function() {
-
- function hasParentClass( e, classname ) {
- if(e === document) return false;
- if( classie.has( e, classname ) ) {
- return true;
- }
- return e.parentNode && hasParentClass( e.parentNode, classname );
- }
-
- // http://coveroverflow.com/a/11381730/989439
- function mobilecheck() {
- var check = false;
- (function(a){if(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kdd
i|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check = tru
e})(navigator.userAgent||navigator.vendor||window.opera);
- return check;
- }
-
- function init() {
-
- var container = document.getElementById( 'st-container' ),
- buttons = Array.prototype.slice.call( document.querySelectorAll( '.st-trigger' ) ),
- // event type (if mobile use touch events)
- eventtype = mobilecheck() ? 'touchstart' : 'click',
- resetMenu = function() {
- classie.remove( container, 'st-menu-open' );
- $("html").removeClass('noScroll');
- },
- bodyClickFn = function(evt) {
- if( !hasParentClass( evt.target, 'st-menu' ) ) {
- resetMenu();
- document.removeEventListener( eventtype, bodyClickFn );
- }
- };
-
- buttons.forEach( function( el, i ) {
- var effect = el.getAttribute( 'data-effect' );
-
- el.addEventListener( eventtype, function( ev ) {
- ev.stopPropagation();
- ev.preventDefault();
- container.className = 'st-container'; // clear
- classie.add( container, effect );
- setTimeout( function() {
- classie.add( container, 'st-menu-open' );
- $("html").addClass('noScroll');
- }, 25 );
- document.addEventListener( eventtype, bodyClickFn );
- });
- } );
-
- }
-
- init();
-
-})();
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/html/index.html
----------------------------------------------------------------------
diff --git a/site/src/site/html/index.html b/site/src/site/html/index.html
deleted file mode 100644
index 970d45e..0000000
--- a/site/src/site/html/index.html
+++ /dev/null
@@ -1,68 +0,0 @@
- <section class="row colset-2-its">
- <h1>A multi-faceted language for the Java platform</h1>
-
- <p>
- <a href='http://www.apache.org/'>Apache</a> Groovy is a <strong>powerful</strong>, <strong>optionally typed</strong> and <strong>dynamic</strong>
- language, with <strong>static-typing and static compilation</strong> capabilities, for the Java platform
- aimed at improving developer productivity thanks to a concise, <strong>familiar and easy to learn
- syntax</strong>. It integrates smoothly with any Java program, and immediately delivers to your application
- powerful features, including scripting capabilities, <strong>Domain-Specific Language</strong> authoring,
- runtime and compile-time <strong>meta-programming</strong> and <strong>functional</strong> programming.
- </p>
-
- <div class="col1">
- <article>
- <div class="icon icon-1"></div>
- <h1>Flat learning curve</h1>
-
- <p>Concise, readable and expressive syntax, easy to learn for Java developers</p>
- </article>
- <article>
- <div class="icon icon-2"></div>
- <h1>Smooth Java integration</h1>
-
- <p>
- Seamlessly and transparently integrates and interoperates with Java and any third-party libraries
- </p>
- </article>
- <article>
- <div class="icon icon-6"></div>
- <h1>Vibrant and rich ecosystem</h1>
-
- <p>
- Web development, reactive applications, concurrency / asynchronous / parallelism library, test
- frameworks, build tools, code analysis, GUI building
- </p>
- </article>
- </div>
-
- <div class="col2">
- <article>
- <div class="icon icon-4"></div>
- <h1>Powerful features</h1>
-
- <p>
- Closures, builders, runtime & compile-time meta-programming, functional programming, type
- inference, and static compilation
- </p>
- </article>
- <article>
- <div class="icon icon-5"></div>
- <h1>Domain-Specific Languages</h1>
-
- <p>
- Flexible & malleable syntax, advanced integration & customization mechanisms, to integrate
- readable business rules in your applications
- </p>
- </article>
- <article>
- <div class="icon icon-3"></div>
- <h1>Scripting and testing glue</h1>
-
- <p>
- Great for writing concise and maintainable tests, and for all your build and automation tasks
- </p>
- </article>
- </div>
- </section>
- <hr class="row"/>
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/html/they-use-groovy.html
----------------------------------------------------------------------
diff --git a/site/src/site/html/they-use-groovy.html b/site/src/site/html/they-use-groovy.html
deleted file mode 100644
index 69124ed..0000000
--- a/site/src/site/html/they-use-groovy.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<div id="they-use-groovy" class="orange-band">
- <div class="row">
- <div class="item">
- <h1><strong>They all use Apache Groovy!</strong></h1>
- <div id='logos-holder'>
- <div class='logo' style='background-image:url(img/logos/netflix.png)'></div>
- <div class='logo' style='background-image:url(img/logos/amadeus.png)'></div>
- <div class='logo' style='background-image:url(img/logos/bestbuy.png)'></div>
- <div class='logo' style='background-image:url(img/logos/carfax.png)'></div>
- <div class='logo' style='background-image:url(img/logos/carriots.png)'></div>
- <div class='logo' style='background-image:url(img/logos/cisco.png)'></div>
- <div class='logo' style='background-image:url(img/logos/mutual-of-omaha.png)'></div>
- <div class='logo' style='background-image:url(img/logos/credit-suisse.png)'></div>
- <div class='logo' style='background-image:url(img/logos/airbusgroup.png)'></div>
- <div class='logo' style='background-image:url(img/logos/energy-transfer.png)'></div>
- <div class='logo' style='background-image:url(img/logos/epo.png)'></div>
- <div class='logo' style='background-image:url(img/logos/fanniemae.png)'></div>
- <div class='logo' style='background-image:url(img/logos/google.png)'></div>
- <div class='logo' style='background-image:url(img/logos/hypoport.png)'></div>
- <div class='logo' style='background-image:url(img/logos/ibm.png)'></div>
- <div class='logo' style='background-image:url(img/logos/jpmorganchase.png)'></div>
- <div class='logo' style='background-image:url(img/logos/linkedin.png)'></div>
- <div class='logo' style='background-image:url(img/logos/mastercard.png)'></div>
- <div class='logo' style='background-image:url(img/logos/mtv.png)'></div>
- <div class='logo' style='background-image:url(img/logos/commerzbank.png)'></div>
- <div class='logo' style='background-image:url(img/logos/national-cancer-institute.png)'></div>
- <div class='logo' style='background-image:url(img/logos/nestle.png)'></div>
- <div class='logo' style='background-image:url(img/logos/oracle.png)'></div>
- <div class='logo' style='background-image:url(img/logos/paterson-cancer-institute.png)'></div>
- <div class='logo' style='background-image:url(img/logos/roche.png)'></div>
- <div class='logo' style='background-image:url(img/logos/sas.png)'></div>
- <div class='logo' style='background-image:url(img/logos/sky.png)'></div>
- <div class='logo' style='background-image:url(img/logos/sony.png)'></div>
- <div class='logo' style='background-image:url(img/logos/smartthings.png)'></div>
- <div class='logo' style='background-image:url(img/logos/target.png)'></div>
- <div class='logo' style='background-image:url(img/logos/thales.png)'></div>
- <div class='logo' style='background-image:url(img/logos/ubs.png)'></div>
- <div class='logo' style='background-image:url(img/logos/vodafone.png)'></div>
- <div class='logo' style='background-image:url(img/logos/voyages-sncf.png)'></div>
- <div class='logo' style='background-image:url(img/logos/walmart.png)'></div>
- <div class='logo' style='background-image:url(img/logos/wells-fargo.png)'></div>
- </div>
- </div>
- </div>
-</div>
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/html/twittersearch.html
----------------------------------------------------------------------
diff --git a/site/src/site/html/twittersearch.html b/site/src/site/html/twittersearch.html
deleted file mode 100644
index e4897de..0000000
--- a/site/src/site/html/twittersearch.html
+++ /dev/null
@@ -1,2 +0,0 @@
-<a width="100%" height="450" class="twitter-timeline" href="https://twitter.com/groovylang" data-widget-id="484358291535851520" data-link-color="#db4800" data-screen-name="ApacheGroovy">Tweets by @ApacheGroovy</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>
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/includes/bottommenu.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/includes/bottommenu.groovy b/site/src/site/includes/bottommenu.groovy
deleted file mode 100644
index 828f23a..0000000
--- a/site/src/site/includes/bottommenu.groovy
+++ /dev/null
@@ -1,29 +0,0 @@
-
-// footer
-footer(id: 'footer') {
- div(class: 'row') {
- div(class: 'colset-3-footer') {
- menu.entrySet().eachWithIndex { entry, i ->
- def (name, menu) = [entry.key, entry.value]
- div(class: "col-${i+1}") {
- h1(name)
- ul {
- menu.each { menuItem ->
- li { a(href: relative(menuItem.link), menuItem.name) }
- }
- }
- }
- }
- div(class: 'col-right') {
- p {
- yield "The Groovy programming language is supported by the "
- a href: 'http://www.apache.org', 'Apache Software Foundation'
- yield " and the Groovy community"
- }
- img(src: 'img/asf_logo.png', title: 'The Apache Software Foundation', alt: 'The Apache Software Foundation', class:'img-responsive')
- }
- }
- div(class: 'clearfix', "© 2003-${Calendar.instance[Calendar.YEAR]} the Apache Groovy project — " +
- "Groovy is Open Source, ${$a(href: 'http://www.apache.org/licenses/LICENSE-2.0.html', 'Apache 2 License')}")
- }
-}
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/includes/community-navbar.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/includes/community-navbar.groovy b/site/src/site/includes/community-navbar.groovy
deleted file mode 100644
index 86a3474..0000000
--- a/site/src/site/includes/community-navbar.groovy
+++ /dev/null
@@ -1,22 +0,0 @@
-
-ul(class: 'nav-sidebar') {
- [
- 'community': 'Community',
- 'contribute': 'Contribute',
- 'thanks': 'Thanks',
- 'mailing-lists': 'Mailing-lists',
- 'events': 'Events',
- 'usergroups': 'User groups',
- 'groovy-weekly': 'Groovy newsletter'
- ].each { page, label ->
- if (currentPage == page) {
- li(class: 'active') { a(href: relative("${page}.html")) { strong(label) } }
- } else {
- li { a(href: "${page}.html", label) }
- }
- }
- li { a(href: relative("groovy-weekly.html#subscribe"), class: 'anchor-link', 'Subscribe') }
- li { a(href: relative("groovy-weekly.html#archives"), class: 'anchor-link', 'Archive') }
-}
-br()
-include unescaped: 'html/twittersearch.html'
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/includes/contribute-button.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/includes/contribute-button.groovy b/site/src/site/includes/contribute-button.groovy
deleted file mode 100644
index 41729e8..0000000
--- a/site/src/site/includes/contribute-button.groovy
+++ /dev/null
@@ -1,7 +0,0 @@
-div(id: 'contribute-btn') {
- button(type: 'button', class: 'btn btn-default',
- onclick: "window.location.href=\"https://github.com/groovy/groovy-website/tree/master/site/src/site/pages/${currentPage}.groovy\"") {
- i(class: 'fa fa-pencil-square-o') {}
- yield ' Improve this doc'
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/includes/topmenu.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/includes/topmenu.groovy b/site/src/site/includes/topmenu.groovy
deleted file mode 100644
index 2d5fc1d..0000000
--- a/site/src/site/includes/topmenu.groovy
+++ /dev/null
@@ -1,31 +0,0 @@
-div(class: 'navbar navbar-default navbar-static-top', role: 'navigation') {
- div(class: 'container') {
- div(class: 'navbar-header') {
- button(type: 'button', class: 'navbar-toggle', 'data-toggle': 'collapse', 'data-target': '.navbar-collapse') {
- span(class: 'sr-only') {}
- span(class: 'icon-bar') {}
- span(class: 'icon-bar') {}
- span(class: 'icon-bar') {}
- }
- a(class: 'navbar-brand', href: relative('index.html')) {
- i(class: 'fa fa-star') {}
- yield ' Apache Groovy'
- }
- }
- div(class: 'navbar-collapse collapse') {
- ul(class: 'nav navbar-nav navbar-right') {
- menu['Groovy'].each { menuItem ->
- li(class: category == menuItem.name ? 'active' : '') { a(href: relative(menuItem.link), menuItem.name) }
- }
- li {
- a('data-effect': 'st-effect-9', class: 'st-trigger', href: '#', 'Socialize')
- }
- li(class: (category == 'Search') ? 'active' : '') {
- a(href: relative('search.html')) {
- i(class: 'fa fa-search') {}
- }
- }
- }
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/layouts/iframedoc.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/layouts/iframedoc.groovy b/site/src/site/layouts/iframedoc.groovy
deleted file mode 100644
index fb528fd..0000000
--- a/site/src/site/layouts/iframedoc.groovy
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * This layout accepts the following parameters:
- *
- * @param menu the navigation menu
- * @param pageTitle the page title
- * @param extraStyles , a list of CSS files to be added in the header
- * @param scripts , a list of scripts to be imported
- * @param iframeTarget , the URL of the page to be included as an iframe
- */
-layout 'layouts/page.groovy', true,
- mainContent: contents {
- div {
- include template: 'includes/topmenu.groovy'
- }
- iframe(class: 'doc-embed', frameborder: '0', height: '100%', width: '100%', src: iframeTarget) {}
- }
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/layouts/main.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/layouts/main.groovy b/site/src/site/layouts/main.groovy
deleted file mode 100644
index 2f4626c..0000000
--- a/site/src/site/layouts/main.groovy
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * This layout accepts the following parameters:
- *
- * @param menu the navigation menu
- * @param pageTitle the page title
- * @param extraStyles , a list of CSS files to be added in the header
- * @param scripts , a list of scripts to be imported
- * @param extraFooter , a section to be added before closing body
- */
-layout 'layouts/page.groovy', true,
- mainContent: contents {
- // 'Content'
- div {
- include template: 'includes/topmenu.groovy'
-
- // main contents goes here!
- mainContent()
-
- include template: 'includes/bottommenu.groovy'
- }
- }
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/layouts/page.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/layouts/page.groovy b/site/src/site/layouts/page.groovy
deleted file mode 100644
index bff19e9..0000000
--- a/site/src/site/layouts/page.groovy
+++ /dev/null
@@ -1,90 +0,0 @@
-/**
- * This layout accepts the following parameters:
- *
- * @param pageTitle the page title
- * @param extraStyles , a list of CSS files to be added in the header
- * @param scripts , a list of scripts to be imported
- * @param contents the main page contents
- * @param extraFooter, a section to be added before closing body
- */
-
-// main layout
-yieldUnescaped '''<!DOCTYPE html>
-<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
-<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
-<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
-<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->'''
-
-head {
- meta charset: 'utf-8'
- meta 'http-equiv': 'X-UA-Compatible', content: 'IE=edge'
- meta name: 'viewport', content: "width=device-width, initial-scale=1"
- title(pageTitle)
- link(href: relative("img/favicon.ico"), type: "image/x-ico", rel: "icon")
- def styles = extraStyles ?: []
- ['bootstrap.css', 'font-awesome.min.css', 'style.css', *styles].each {
- link rel: 'stylesheet', type: 'text/css', href:
- it.startsWith('http')?it:relative("css/$it")
- }
-}
-
-body {
- div(id: 'fork-me') {
- a(href: 'https://github.com/apache/groovy') {
- img(
- style: "position: fixed; top: -14px; right: -14px; border: 0; z-index: 100",
- src: 'https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67', alt: 'Fork me on GitHub', 'data-canonical-src': 'https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png'
- )
- }
- }
-
- div(id: 'st-container', class: "st-container st-effect-9") {
- nav(class: "st-menu st-effect-9", id: "menu-12") {
- h2(class: "icon icon-lab", 'Socialize')
- ul {
- menu['Socialize'].each {
- def (text,url, style) = [it.name, it.link, it.style ]
- li {
- a(href: relative(url), class: 'icon') { yieldUnescaped "<span class='fa $style'></span> $text" }
- }
- }
- }
- }
-
- // 'content push wrapper'
-
- div(class: 'st-pusher') {
- div(class: 'st-content') {
- div(class: 'st-content-inner') {
- yieldUnescaped '''<!--[if lt IE 7]>
- <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
- <![endif]-->'''
- if (mainContent) {
- mainContent()
- }
- }
- }
- }
- }
-
- def scripts = extraScripts ?: []
- ['vendor/jquery-1.10.2.min.js', 'vendor/classie.js', 'vendor/bootstrap.js', 'vendor/sidebarEffects.js', 'vendor/modernizr-2.6.2.min.js','plugins.js', *scripts].each {
- yieldUnescaped "<script src='${it.startsWith('http')?it:relative('js/'+it)}' defer></script>"
- }
-
- if (extraFooter) {
- extraFooter()
- }
-
- 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-257558-10', 'auto');
- ga('send', 'pageview');
- '''
-}
-
-yieldUnescaped '</html>'
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/pages/404.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/pages/404.groovy b/site/src/site/pages/404.groovy
deleted file mode 100644
index 283d3b6..0000000
--- a/site/src/site/pages/404.groovy
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Ths template is generating the 404 page
- */
-
-layout 'layouts/main.groovy', true,
- pageTitle: 'The Apache Groovy programming language - 404',
- mainContent: contents {
- div(id: 'content', class: 'page-1') {
- div(class: 'row') {
- div(class: 'row-fluid') {
- div(class: 'panel panel-danger') {
- div(class: 'panel-heading', 'Oops! The page you are looking for does not exist!')
- div(class: 'panel-body') {
- p 'We could not find the page you are looking for. Maybe you are looking for one of those?'
- ul {
- li("The ${$a(href: latestDocURL('documentation'), 'reference documentation')} of the Groovy language.")
- li("The latest ${$a(href: latestDocURL('api'), 'Javadocs')} of the language.")
- li("The latest ${$a(href: latestDocURL('gapi'), 'Groovdocs')} of the language.")
- li("Description of ${$a(href: latestDocURL('groovy-jdk'), 'the Groovy development kit APIs')}.")
- }
- }
- }
- }
- }
- }
- }
-
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/pages/api.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/pages/api.groovy b/site/src/site/pages/api.groovy
deleted file mode 100644
index ec42398..0000000
--- a/site/src/site/pages/api.groovy
+++ /dev/null
@@ -1,2 +0,0 @@
-layout 'layouts/iframedoc.groovy', true,
- pageTitle: "The Apache Groovy programming language - Groovy Development Kit"
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/pages/buildstatus.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/pages/buildstatus.groovy b/site/src/site/pages/buildstatus.groovy
deleted file mode 100644
index 3cf930c..0000000
--- a/site/src/site/pages/buildstatus.groovy
+++ /dev/null
@@ -1,77 +0,0 @@
-layout 'layouts/main.groovy', true,
- pageTitle: 'The Apache Groovy programming language - Continuous integration',
- mainContent: contents {
- div(id: 'content', class: 'page-1') {
- div(class: 'row') {
- div(class: 'row-fluid') {
- div(class: 'col-lg-3') {
- include template: 'includes/community-navbar.groovy'
- }
-
- div(class: 'col-lg-8 col-lg-pull-0') {
- include template: 'includes/contribute-button.groovy'
- h1 {
- i(class: 'fa fa-circle-o-notch') {}
- yield ' Continuous integration'
- }
- article {
- p """
- Our ${
- $a(href: 'http://ci.groovy-lang.org?guest=1', 'continuous integration server')
- },
- sponsored by ${$a(href: 'http://www.jetbrains.com', 'JetBrains')},
- builds Groovy against multiple JDK versions, as well as some projects from the community tested
- against development versions of Groovy:
- """
- hr(class: 'divider')
-
- h2 'Groovy builds'
-
- def renderBuilds = { Map builds ->
- table(class: 'table table-stripped') {
- thead {
- tr {
- th('Build name')
- th('Status')
- }
- }
- tbody {
- builds.each { name, ref ->
- def (id, branch) = ref
- tr {
- td(name)
- td {
- a(href: "http://ci.groovy-lang.org/viewType.html?buildTypeId=$id&branch=$branch&tab=buildTypeStatusDiv&guest=1") {
- img(src: """http://ci.groovy-lang.org:8111/app/rest/builds/buildType:(id:$id)${branch?",branch:$branch":''}/statusIcon""")
- }
- }
- }
- }
- }
- }
- }
- renderBuilds(['Groovy master, JDK 7': ['Groovy_Jdk7Build', 'master'],
- 'Groovy master, JDK 8': ['Groovy_Jdk8Build_2', 'master'],
- 'Groovy master, JDK 9': ['Groovy_Jdk9Build', 'master'],
- 'Groovy 2.4.X, JDK 6': ['Groovy_Jdk6Build', 'GROOVY_2_4_X'],
- 'Groovy 2.4.X, JDK 7': ['Groovy_Jdk7Build', 'GROOVY_2_4_X']
- ])
-
- hr(class: 'divider')
-
- h2 'Community joint builds'
- renderBuilds(['Nextflow master, Groovy 2.4.X': ['JointBuilds_Nextflow_Groovy24xJointBuild', ''],
- 'Ratpack master, Groovy 2.4.X': ['JointBuilds_Ratpac_RatpackGroovy24x', '']
- ])
-
- p """
- The Groovy development team is willing to test Groovy development versions against important
- ecosystem projects. If you want your project to be added to the list, please contact
- us on the ${$a(href:'mailing-lists.html','development mailing list')}.
- """
- }
- }
- }
- }
- }
- }
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/pages/changelog.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/pages/changelog.groovy b/site/src/site/pages/changelog.groovy
deleted file mode 100644
index dfbdf09..0000000
--- a/site/src/site/pages/changelog.groovy
+++ /dev/null
@@ -1,39 +0,0 @@
-layout 'layouts/main.groovy', true,
- pageTitle: "The Apache Groovy programming language - Groovy $groovyVersion Changelog",
- mainContent: contents {
- def issueMap = issues.groupBy { it.type }
- def issueTypes = issueMap.keySet().sort()
-
- div(id: 'content', class: 'page-1') {
- div(class: 'row') {
- div(class: 'row-fluid') {
- div(class: 'col-lg-3') {
- ul(class: 'nav-sidebar') {
- li(class:'active') {
- a(href: '#changelog', "Changelog for Groovy $groovyVersion")
- }
- issueTypes.eachWithIndex { type, i ->
- li { a(href: "#type$i", class: 'anchor-link', type) }
- }
- }
- }
-
- div(class: 'col-lg-8 col-lg-pull-0') {
- a(name:"changelog"){}
- h1("Changelog for Groovy $groovyVersion")
- issueTypes.eachWithIndex { type,i ->
- def list = issueMap[type]
- a(name:"type$i"){}
- h2("$type")
- ul {
- list.each { issue ->
- li("[${$a(href: 'https://issues.apache.org/jira/browse/' + issue.id, issue.id)}] - ${issue.description}")
- }
- }
-
- }
- }
- }
- }
- }
- }
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/pages/changelogs.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/pages/changelogs.groovy b/site/src/site/pages/changelogs.groovy
deleted file mode 100644
index 3d8cd8e..0000000
--- a/site/src/site/pages/changelogs.groovy
+++ /dev/null
@@ -1,43 +0,0 @@
-layout 'layouts/main.groovy', true,
- pageTitle: "The Apache Groovy programming language - Changelogs",
- mainContent: contents {
- def majorize = { it.split(/\.|-/)[0..1].join('.')}
-
- def major = versions.collect([] as Set) { majorize(it) }
-
- div(id: 'content', class: 'page-1') {
- div(class: 'row') {
- div(class: 'row-fluid') {
- div(class: 'col-lg-3') {
- ul(class: 'nav-sidebar') {
- li(class:'active') {
- a(href: '#changelog', "Changelogs")
- }
- major.each { v ->
- li { a(href: "#changelog$v", class: 'anchor-link', "Groovy $v") }
- }
- }
- }
-
- div(class: 'col-lg-8 col-lg-pull-0') {
- h1('Changelogs for Groovy')
- p 'Here you can find the changelogs for the past Groovy releases.'
- versions.groupBy { majorize(it) }.each {
- String mj = it.key
- List<String> minor = it.value
- a(name: "changelog$mj") {}
- h2("Groovy $mj")
- ul {
- minor.each { v->
- li {
- yieldUnescaped "Changelog for "
- a(href: "changelogs/changelog-${v}.html", "Groovy $v")
- }
- }
- }
- }
- }
- }
- }
- }
- }
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/pages/community.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/pages/community.groovy b/site/src/site/pages/community.groovy
deleted file mode 100644
index efb44ac..0000000
--- a/site/src/site/pages/community.groovy
+++ /dev/null
@@ -1,58 +0,0 @@
-layout 'layouts/main.groovy', true,
- pageTitle: 'The Apache Groovy programming language - Community',
- mainContent: contents {
- div(id: 'content', class: 'page-1') {
- div(class: 'row') {
- div(class: 'row-fluid') {
- div(class: 'col-lg-3') {
- include template: 'includes/community-navbar.groovy'
- }
-
- div(class: 'col-lg-8 col-lg-pull-0') {
- include template: 'includes/contribute-button.groovy'
- h1 {
- i(class: 'fa fa-users') {}
- yield ' Community'
- }
- article {
- p {
- yield '''
- Groovy would not be the successful Open Source project it is today,
- without the help of its users, forming the base of a wider Groovy community
- and '''
- a(href: 'ecosystem.html', 'ecosystem')
- yield ' of projects using Groovy.'
- }
- p 'In this section of the website, you can find useful links and information about: '
- ul {
- li "how you can ${$a(href: 'contribute.html', 'contribute')} to the project, its codebase, its documentation,"
- li "how to raise issues in our ${$a(href: 'contribute.html#reporting-issues', 'bug tracker')},"
- li "how to interact with other Groovy users and developers through the ${$a(href: 'mailing-lists.html', 'mailing-lists')} or ${$a(href: 'https://groovycommunity.com/', 'Slack')}. The Slack channel is not endorsed by the Apache Software Foundation, It's run by Groovy enthusiasts in the community for casual conversations and Q&A. Official discussions must happen on the mailing lists only,"
- li "the upcoming ${$a(href: 'events.html', 'events and conferences')} you might want to attend to learn more about Groovy and to share your experience with others,"
- li "the list of ${$a(href: 'usergroups.html', 'user groups')} you can attend and where to meet other Groovy users."
- }
- p '''
- If you click on the socialize link in the menu, you will also find other ways to interact
- with the Groovy community, and follow the news around the ecosystem:
- '''
- ul {
- li {
- a(href: 'groovy-weekly.html', 'Groovy newsletter')
- yieldUnescaped ' — links to articles, presentations, tweets, podcasts, etc.'
- }
- li {
- a(href: 'https://google.com/+groovy', 'Google+ Groovy page')
- yieldUnescaped ' — for sharing news and articles'
- }
- li {
- a(href: 'http://bit.ly/g-community', 'Google+ Groovy community')
- yieldUnescaped ' — for discussing and exchanging with other Groovy users'
- }
- }
- }
- hr(class: 'divider')
- }
- }
- }
- }
- }
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/pages/contribute.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/pages/contribute.groovy b/site/src/site/pages/contribute.groovy
deleted file mode 100644
index 89eb478..0000000
--- a/site/src/site/pages/contribute.groovy
+++ /dev/null
@@ -1,197 +0,0 @@
-layout 'layouts/main.groovy', true,
- pageTitle: 'The Apache Groovy programming language - Contribute',
- mainContent: contents {
- div(id: 'content', class: 'page-1') {
- div(class: 'row') {
- div(class: 'row-fluid') {
- div(class: 'col-lg-3') {
- include template: 'includes/community-navbar.groovy'
- }
-
- div(class: 'col-lg-8 col-lg-pull-0') {
- include template: 'includes/contribute-button.groovy'
- h1 {
- i(class: 'fa fa-pencil-square-o') {}
- yield ' Contribute'
- }
- article {
- p '''
- Would you like to help us make the Groovy programming language even better?
- There are many ways in which you can get involved, make a difference and help the Groovy development team to make Groovy even, well, groovier?
- We really appreciate and welcome contributions and you can help us by:
-
- '''
- ul {
- li {
- yield 'helping other users on the '
- a(href: 'mailing-lists.html', 'mailing-lists')
- }
- li {
- a(href: '#reporting-issues', 'reporting issues')
- yield ' you encounter in our '
- a(href: 'https://issues.apache.org/jira/browse/GROOVY', 'bug tracker')
- }
- li {
- a(href: '#documenting', 'documenting')
- yield ' various aspects of the language or its APIs'
- }
- li {
- yield 'improving this '
- a(href: 'https://github.com/groovy/groovy-website', 'website')
- }
- li 'covering the code base with more tests to avoid future regressions, '
- li {
- yield 'and of course, by '
- a(href: '#code', 'contributing bug fixes or new features')
- }
- }
- hr(class: 'divider')
-
- h2 'Discussing on the mailing-lists'
- p {
- yield '''
- If you encounter a problem, want to discuss a new feature,
- share interesting findings, and more, then the '''
- a(href: 'mailing-lists.html', 'mailing-lists')
- yield ' are the place to go to start a conversation with the Groovy developers and other Groovy users.'
- }
- hr(class: 'divider')
-
- a(name: 'reporting-issues') {}
- h2 'Reporting issues'
- p {
- yield 'The Groovy project is using the '
- a(href: 'https://issues.apache.org/jira/browse/GROOVY/', 'JIRA bug tracker')
- yield '''
- to report and track issues, feature enhancements, and new features.
- Be sure to be signed-up and logged-in, before proceeding.
- '''
- }
- p {
- button(type: 'button', class: 'btn btn-default', 'Report an issue',
- onclick: 'window.location.href="https://issues.apache.org/jira/browse/GROOVY"')
- }
-
- hr(class: 'divider')
-
- a(name: 'documenting') {}
- h2 'Improving the documentation'
- p 'The documentation of the Groovy programming language comes in various forms:'
- ul {
- li {
- yield 'the '
- a(href: 'single-page-documentation.html', 'reference documentation')
- yield ' covering the language specification, the user guides, getting started, and more.'
- }
- li {
- yield 'the '
- a(href: 'api.html', 'GroovyDoc APIs')
- yield ' documenting the classes of the Groovy code base'
- }
- li {
- yield 'the '
- a(href: 'gdk.html', 'Groovy GDK')
- yield ' documentation, explaining how Groovy enriches the JDK APIs'
- }
- li {
- yield 'this '
- a(href: 'https://github.com/groovy/groovy-website', 'website')
- }
- }
- p {
- yield 'To contribute to the Groovy reference documentation, this '
- a(href: 'http://blog.cacoethes.co.uk/groovyandgrails/contributing-to-the-groovy-documentation', 'blog post')
- yield ' gives all the details on how you can work on that documentation.'
- }
- p {
- yield 'All the above is stored in our code '
- a(href: 'https://github.com/groovy', 'repositories on Github')
- yield ', so having an account on Github would be ideal.'
- }
- p """
- Contributing to this website is fairly easy, if you have a Github account already,
- as you can click on the ${$em('Improve this doc')} buttons that you can see on all the pages of this website.
- So don't hesitate to help us improve it, fix typos, broken language, clarify complicated sections,
- add new material, etc.
- """
- p 'Please check the following section for more information on how to contribute to our codebase.'
- hr(class: 'divider')
-
- a(name: 'code') {}
- h2 'Contributing code'
- p {
- yield '''
- If you know the area you want to contribute to, this is great, but if you are looking for
- some first contributions, the Groovy development team tries to maintain a '''
- a(href: 'https://issues.apache.org/jira/secure/IssueNavigator%21executeAdvanced.jspa?jqlQuery=project%3DGROOVY+and+labels+%3D+contrib+AND+resolution%3DUnresolved&runQuery=true&clear=true', 'list of tickets')
- yield '''
- of possible easy contributions that could get you started on your journey
- to become a Groovy committer. Just raise your hand on the Groovy developer '''
- a(href: 'mailing-lists.html', 'mailing-list')
- yield ''' to tell us about your desire to work on that ticket.'''
- }
- p '''
- For more complicated tasks, the best approach is also to bring that to the attention of the Groovy developers,
- so they can give you some guidance on how best to tackle a particular problem, discuss implementation ideas
- and the semantics or scope of the proposed change.
- '''
-
- h3 'Cloning the code base'
- p {
- yield 'To work on the Groovy code base, you should be proficient enough in '
- a(href: 'http://git-scm.com/', 'git')
- yield ' and you should have an account on '
- a(href: 'https://github.com/', 'Github')
- yield ' to be able to create '
- a(href: 'https://help.github.com/articles/creating-a-pull-request', 'pull requests')
- yield ' with your changes.'
- }
- p {
- yield 'Please fork '
- a(href: 'https://github.com/apache/groovy', 'https://github.com/apache/groovy')
- yield ' and create a local clone of your fork as explained in '
- a(href: 'https://help.github.com/articles/fork-a-repo/', 'fork a repo')
- yield '.'
- }
- p 'Make sure you configure Git appropriately with the same email that you registered with on Github:'
- pre { code 'git config --global user.name "YOUR NAME"\n' +
- 'git config --global user.email "YOUR EMAIL"' }
- p 'You can verify these are configured appropriately by running:'
- pre { code 'git config --list' }
-
- h3 'Working on the code base'
- p {
- yield 'If you are working with the IntelliJ IDEA development environment, this '
- a(href: 'http://melix.github.io/blog/2014/06/contribute-groovy-ide.html', 'screencast')
- yield ' gives lots of details on how to setup your IDE.'
- }
- p {
- yield 'Then, to work on the Groovy code base, to build and test Groovy, you can follow the '
- a(href: 'https://github.com/apache/groovy/blob/master/README.adoc', 'instructions')
- yield ' from the readme file in the Groovy repository.'
- }
- p 'The most important command you will have to run before sending your changes is the test command:'
- pre { code './gradlew test' }
- p 'For a successful contribution, all tests should be green!'
-
- h3 'Creating a pull request'
- p 'Once you are satisfied with your changes:'
- ul {
- li 'commit your changes in your local branch'
- li 'push your changes to your remote branch on Github'
- li {
- yield 'send us a '
- a(href: 'https://help.github.com/articles/creating-a-pull-request', 'pull requests')
- }
- }
- }
- hr(class: 'divider')
-
- h2('Build status')
-
- p "The Groovy sources are tested thanks to our ${$a(href:'buildstatus.html','continuous integration server')}."
- }
- }
- }
- }
- }
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/pages/docpage.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/pages/docpage.groovy b/site/src/site/pages/docpage.groovy
deleted file mode 100644
index b15e3df..0000000
--- a/site/src/site/pages/docpage.groovy
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * This layout accepts the following parameters:
- *
- * @param menu the navigation menu
- * @param pageTitle the page title
- * @param extraStyles , a list of CSS files to be added in the header
- * @param scripts , a list of scripts to be imported
- * @param iframeTarget , the URL of the page to be included as an iframe
- */
-layout 'layouts/main.groovy', true,
- pageTitle: "The Apache Groovy programming language - $title",
- extraStyles: ['docstyle.css','https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css'],
- extraFooter: contents {
- script(src: 'https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js') {}
- script { yieldUnescaped "document.addEventListener('DOMContentLoaded',prettyPrint)" }
- },
- mainContent: contents {
- div(id: 'content', class: 'page-1') {
- div(class: 'row') {
- div(class: 'row-fluid') {
- div(class: 'col-lg-3') {
- ul(class: 'nav-sidebar') {
- li(class: 'active') {
- a(href: '#') { strong('Table of contents') }
- }
- yieldUnescaped page.toc
- }
- }
-
- div(class: 'col-lg-8 col-lg-pull-0') {
- h1(title)
- yieldUnescaped(page.content)
- }
- }
- }
- }
- }
http://git-wip-us.apache.org/repos/asf/groovy-user-site/blob/de805f31/site/src/site/pages/documentation.groovy
----------------------------------------------------------------------
diff --git a/site/src/site/pages/documentation.groovy b/site/src/site/pages/documentation.groovy
deleted file mode 100644
index 08fd3af..0000000
--- a/site/src/site/pages/documentation.groovy
+++ /dev/null
@@ -1,79 +0,0 @@
-layout 'layouts/main.groovy', true,
- pageTitle: 'The Apache Groovy programming language - Documentation',
- mainContent: contents {
- div(id: 'content', class: 'page-1') {
- div(class: 'row') {
- div(class: 'row-fluid') {
- div(class: 'col-lg-3') {
- ul(class: 'nav-sidebar') {
- li(class: 'active') {
- a(href: '#') { strong('Documentation') }
- }
- docSections.each { section ->
- li { a(href: "#${section.anchor}", class: 'anchor-link', section.name) }
- }
- li {
- a(href: "#all-versions", class: 'anchor-link', 'Documentation for other versions')
- }
- li {
- a(href: 'faq.html', 'FAQ')
- }
- }
- }
-
- div(class: 'col-lg-8 col-lg-pull-0') {
- include template: 'includes/contribute-button.groovy'
- h1 {
- i(class: 'fa fa-university') {}
- yield ' Documentation'
- }
- p {
- yield 'The documentation is available as a '
- a(href: "single-page-documentation.html", 'single-page document')
- yield ', or feel free to pick at a direct section below.'
- }
- p "You can also browse ${$a(href: '#all-versions', 'documentation for other versions')}."
- hr(class: 'divider')
-
- // group sections by 2, for 2 columns
- def rows = docSections.collate(2)
- rows.each { row ->
- div(class: 'row-fluid') {
- article {
- row.each { section ->
- div(class: 'col-md-6') {
- a(name: section.anchor) {}
- h2 {
- i(class: "fa ${section.icon}", " $section.name")
- }
- ul {
- section.getItems().each { item ->
- li { a(href: "${item.targetFilename}.html", item.name) }
- }
- }
- }
- }
- }
- }
- }
- div(class: 'col-md-12') {
- hr(class: 'divider')
-
- a(name: 'all-versions') {}
- article {
- h2 'Documentation for all Groovy versions'
- p 'You can browse the documentation of a particular version of Groovy (since Groovy 1.7):'
- def allVersions = [*allDocVersions, 'Select a version'].reverse()
-
- select(class: 'form-control', onchange: "window.location.href='http://docs.groovy-lang.org/docs/groovy-' + this.value + '/html/'") {
- allVersions.each { String version ->
- option version
- }
- }
- }
- }
- }
- }
- }
- }
- }