diff --git a/.travis.yml b/.travis.yml index b5531af7f..62b6624ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,3 +19,5 @@ script: - bundle exec jekyll build 2> error.log - cat >&2 error.log - ( ! grep -qie Error error.log ) +- find ./_site \( -type d \( -name events -o -name training \) -prune -false \) -o \( -type f ! -name error.log -empty \) +- find ./_site \( -type d \( -name events -o -name training \) -prune -false \) -o \( -type f ! -name error.log -empty \) | ( ! read ) diff --git a/_config.yml b/_config.yml index c83a03326..1a8043b20 100644 --- a/_config.yml +++ b/_config.yml @@ -4,5 +4,13 @@ scalaversion: "2.12.0" baseurl: "" markdown: kramdown -exclude: [bundle-vendor] +exclude: + - bundle-vendor/ + - blog/README.md + - training/README.md + - README.md + - news/README.md + - events/README.md + - Gemfile + - Gemfile.lock future: true diff --git a/_includes/footer.html b/_includes/footer.html index 96f4f6e90..61ed5ebc2 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -53,7 +53,6 @@ - diff --git a/_layouts/alldownloadspage.html b/_layouts/alldownloadspage.html deleted file mode 100644 index c242bc9aa..000000000 --- a/_layouts/alldownloadspage.html +++ /dev/null @@ -1,43 +0,0 @@ ---- -layout: page ---- - - - - -
-This page contains a comprehensive archive of previous Scala releases. -
- -{% for top in (0..3) reversed %} -{% for major in (0..20) reversed %} - -{% assign possibleVersionShort = top | append:'.' | append:major %} -{% assign sz = possibleVersionShort | size %} -{% if 3 == sz %} - {% assign possibleVersion = possibleVersionShort | append:'.' %} -{% else %} - {% assign possibleVersion = possibleVersionShort %} -{% endif %} - -{% for page in site.categories.download %} - -{% assign releaseVersion = page.release_version | truncate:4, '' %} - -{% if releaseVersion == possibleVersion %} - -Learn how to code elegantly.
Digest bite-size pieces of the essentials.
+Dispel your doubts about common Scala features.
+Understand Scala's vocabulary.
This page contains a comprehensive archive of previous Scala releases.
+{% for top in (0..3) reversed %} + {% for major in (0..20) reversed %} + {% assign possibleVersionShort = top | append:'.' | append:major %} + {% assign sz = possibleVersionShort | size %} + {% if 3 == sz %} + {% assign possibleVersion = possibleVersionShort | append:'.' %} + {% else %} + {% assign possibleVersion = possibleVersionShort %} + {% endif %} + {% for page in site.categories.download %} + {% assign releaseVersion = page.release_version | truncate:4, '' %} + {% if releaseVersion == possibleVersion %} +Error ' + tweets[0].code + ': ' + tweets[0].message + '
'); - } - else { // There isn't an error displayed yet - // Display an error message above the container - $(tweetMachine.container).before('Error ' + tweets[0].code + ': ' + tweets[0].message + '
'); - } - } - // There are tweets - else { - // If there was an error before - if ( $('.twitter-error').length ) { - // Remove it - $('.twitter-error').remove(); - } - - // Reverse them so they are added in the correct order - tweets.reverse(); - - // Count the number of tweets displayed - tweetsDisplayed = 0; - - // Loop through each tweet - $.each(tweets, function () { - var tweet, tweetObj; - tweet = this; - - // If there is no filter, or this tweet passes the filter - if (!tweetMachine.settings.filter || tweetMachine.settings.filter(this)) { - // Build the tweet as a jQuery object - tweetObj = tweetMachine.buildTweet(tweet); - - // If there are already tweets on the screen - if (!firstLoad) { - - // If we are animating out the old tweets - if (tweetMachine.settings.animateOut) { - /* - * TODO Support this feature - */ - } else { // We are not animating the old tweets - // Remove them - $(tweetMachine.container).children(':last-child').remove(); - } - } - - // Prepend the new tweet - $(tweetMachine.container).prepend(tweetObj); - - // If we are animating in the new tweets - if (tweetMachine.settings.animateIn) { - // Fade in the new tweet - /* - * TODO Figure out why .fadeIn() doesn't work - */ - $(tweetMachine.container).children(':first-child').animate({ - opacity: 1 - }); - } - - // Increment the tweets diplayed - tweetsDisplayed++; - - // Save this tweet ID so we only get newer noes - tweetMachine.lastTweetID = tweet.id_str; - - // If we've reached the limit of tweets to display - if (tweetsDisplayed > tweetMachine.settings.limit) { - // Quit the loop - return false; - } - } - }); - } - } - //Callback function - if (typeof tweetMachine.callback === "function") { - if(typeof tweets === 'undefined' || typeof tweetsDisplayed === 'undefined' ) { - tweets = null; - tweetsDisplayed = 0; - } - tweetMachine.callback(tweets, tweetsDisplayed); - } - }); - } - /* TODO: Implement an "x new Tweets, click to refresh" link if auto refresh is turned off - else { - } - */ - }, - - // Start refreshing - start: function () { - var tweetMachine; - tweetMachine = this; - - // If there's no interval yet - if (!this.interval) { - // Create an interval to refresh after the rate has passed - this.interval = setInterval(function () { - tweetMachine.refresh(); - }, tweetMachine.settings.rate); - // Start refreshing with the firstLoad flag = true - this.refresh(true); - } - }, - - // Stop refreshing - stop: function () { - var tweetMachine; - tweetMachine = this; - - // If there is an interval - if (tweetMachine.interval) { - // Clear it - clearInterval(tweetMachine.interval); - - // Remove the reference to it - tweetMachine.interval = false; - } - }, - - // Clear all tweets - clear: function () { - var tweetMachine; - tweetMachine = this; - - // Remove all tweets - $(tweetMachine.container).find('.tweet').remove(); - - // Set the lastTweetID to null so we start clean next time - tweetMachine.lastTweetID = null; - } - }; - - // Save a global tweetMachine object - tweetMachine = this.tweetMachine; - - // Create an interval to update the timestamps - this.timeInterval = setInterval(function () { - tweetMachine.updateTimestamps(); - }, tweetMachine.settings.rate); - - // Start the Machine! - this.tweetMachine.start(); - } - }); - }; -})(jQuery); \ No newline at end of file diff --git a/resources/js/vendor/tweetMachine.min.js b/resources/js/vendor/tweetMachine.min.js deleted file mode 100644 index 45dc62f88..000000000 --- a/resources/js/vendor/tweetMachine.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/* - * jQuery TweetMachine v0.2.1b - * GitHub: https://github.com/ryangiglio/jquery-tweetMachine - * Copyright (c) 2013 Ryan Giglio (@ryangiglio) - */(function(e){e.fn.tweetMachine=function(t,n,r){e(this).each(function(){var i,s;if(this.tweetMachine){i=e.extend(this.tweetMachine.settings,n);this.tweetMachine.settings=i;t&&(this.tweetMachine.query=t);this.tweetMachine.interval&&this.tweetMachine.refresh();r&&(this.tweetMachine.callback=r)}else{i=e.extend({backendScript:"ajax/getFromTwitter.php",endpoint:"search/tweets",user_name:"jason_alvis",include_retweets:!0,exclude_replies:!1,rate:5e3,limit:5,autoRefresh:!0,animateOut:!1,animateIn:!0,tweetFormat:"Error '+n[0].code+": "+n[0].message+"
"):e(r.container).before('Error '+n[0].code+": "+n[0].message+"
");else{e(".twitter-error").length&&e(".twitter-error").remove();n.reverse();i=0;e.each(n,function(){var n,s;n=this;if(!r.settings.filter||r.settings.filter(this)){s=r.buildTweet(n);t||r.settings.animateOut||e(r.container).children(":last-child").remove();e(r.container).prepend(s);r.settings.animateIn&&e(r.container).children(":first-child").animate({opacity:1});i++;r.lastTweetID=n.id_str;if(i>r.settings.limit)return!1}})}if(typeof r.callback=="function"){if(typeof n=="undefined"||typeof i=="undefined"){n=null;i=0}r.callback(n,i)}})}},start:function(){var e;e=this;if(!this.interval){this.interval=setInterval(function(){e.refresh()},e.settings.rate);this.refresh(!0)}},stop:function(){var e;e=this;if(e.interval){clearInterval(e.interval);e.interval=!1}},clear:function(){var t;t=this;e(t.container).find(".tweet").remove();t.lastTweetID=null}};s=this.tweetMachine;this.timeInterval=setInterval(function(){s.updateTimestamps()},s.settings.rate);this.tweetMachine.start()}})}})(jQuery); \ No newline at end of file diff --git a/test.md b/test.md deleted file mode 100644 index 9f33bbeb8..000000000 --- a/test.md +++ /dev/null @@ -1,93 +0,0 @@ ---- -layout: page -title: Test Page ---- - -## Test Header 2 - -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! - - - -### Test Header 3 - -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! - - -#### Test Header 4 - -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! - -##### Test Header 5 - -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! - -###### Test Header 6 - -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! - -> this is a quote dear watson! - -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! - - def kitty(catnip: Catnip) = { - val goNuts = 42 - while (goNuts = 42) { - jumpOnBed - } - } - -I'm a paragraph!! I'm `monospace` **within** a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! -I'm a paragraph!! I'm a paragraph!! I'm a paragraph!! - - -I bring you... a _bulleted list!_: - -- Red -- Green -- Blue - -And now... _an ordered list!_: - -1. item 1 -2. item 2 -3. item 3 -4. item 4 - diff --git a/training/index.md b/training/index.md index b8eb3a6a1..c2876249b 100644 --- a/training/index.md +++ b/training/index.md @@ -1,5 +1,5 @@ --- -layout: page-no-toc +layout: page title: Training ---