Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into source
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Jul 28, 2015
2 parents 780d696 + e2f8c5a commit 46f5b3d
Show file tree
Hide file tree
Showing 19 changed files with 110 additions and 133 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.jekyll-assets-cache/
.sass-cache/
npm-debug.log
_site/
bower_components/
content/
node_modules/
15 changes: 10 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
---
language: [ ruby, node_js ]
rvm: [ 2.2.2 ]
node_js: [ iojs ]
language:
- ruby
- node_js
rvm:
- 2.2.2
node_js:
- iojs
cache:
bundler: true
directories:
- bower_components
- node_modules
sudo: false

before_script:
- npm install -g bower
- bower install
- npm install
- npm run install

# Install the travis gem.
# Create a deploy key and encrypt it with:
Expand Down
6 changes: 6 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: body
title: Page Not Found
---

Sorry, but the page you were trying to view does not exist.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
- Switch to using [rake-jekyll] for git based deployment.
You may now set the `SOURCE_BRANCH` environment variable
to enable testing on all other branches.
- Split main body content out from the default layout
and into a new body layout.
- Use gist-aysnc bower package.
- Remove Sub-content feature.
- Add staging environment support for Travis CI builds.
- Add 404 page.
- Optimize Travis build by adding bower to package.json.

[rake-jekyll]: https://github.com/jirutka/rake-jekyll

Expand Down
39 changes: 21 additions & 18 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GEM
remote: https://rubygems.org/
specs:
addressable (2.3.8)
bibtex-ruby (4.0.13)
bibtex-ruby (4.0.14)
latex-decode (~> 0.0)
blankslate (2.1.2.4)
celluloid (0.16.0)
Expand Down Expand Up @@ -33,7 +33,7 @@ GEM
sass (>= 3.3.0, < 3.5)
compass-import-once (1.0.5)
sass (>= 3.2, < 3.5)
csl (1.4.2)
csl (1.4.3)
namae (~> 0.7)
csl-styles (1.0.1.6)
csl (~> 1.0)
Expand All @@ -45,11 +45,11 @@ GEM
fast-stemmer (1.0.2)
fastimage (1.7.0)
addressable (~> 2.3, >= 2.3.5)
ffi (1.9.8)
ffi (1.9.10)
formatador (0.2.5)
guard (2.12.5)
guard (2.13.0)
formatador (>= 0.2.4)
listen (~> 2.7)
listen (>= 2.7, <= 4.0)
lumberjack (~> 1.0)
nenv (~> 0.1)
notiffany (~> 0.0)
Expand Down Expand Up @@ -99,23 +99,23 @@ GEM
jekyll (~> 2.0)
jekyll-watch (1.2.1)
listen (~> 2.7)
json (1.8.2)
kramdown (1.7.0)
json (1.8.3)
kramdown (1.8.0)
latex-decode (0.2.2)
unicode (~> 0.4)
liquid (2.6.2)
listen (2.10.0)
liquid (2.6.3)
listen (2.10.1)
celluloid (~> 0.16.0)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
lumberjack (1.0.9)
mercenary (0.3.5)
method_source (0.8.2)
mini_magick (4.2.7)
multi_json (1.11.0)
multi_json (1.11.2)
namae (0.10.1)
nenv (0.2.0)
notiffany (0.0.6)
notiffany (0.0.7)
nenv (~> 0.1)
shellany (~> 0.0)
parslet (1.5.0)
Expand All @@ -128,25 +128,25 @@ GEM
pygments.rb (0.6.3)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.2.0)
rack (1.6.1)
rack (1.6.4)
rake (10.4.2)
rake-jekyll (1.0.3)
rake-jekyll (1.0.4)
rake (~> 10.0)
rb-fsevent (0.9.5)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
redcarpet (3.2.3)
redcarpet (3.3.2)
safe_yaml (1.0.4)
sass (3.4.14)
sass (3.4.16)
shellany (0.0.1)
slop (3.6.0)
sprockets (2.12.3)
sprockets (2.12.4)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-helpers (1.1.0)
sprockets (~> 2.0)
sprockets-helpers (1.2.1)
sprockets (>= 2.2)
sprockets-sass (1.3.1)
sprockets (~> 2.0)
tilt (~> 1.1)
Expand Down Expand Up @@ -176,3 +176,6 @@ DEPENDENCIES
rake (~> 10.4.2)
rake-jekyll (~> 1.0.3)
uglifier (~> 2.7.0)

BUNDLED WITH
1.10.6
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ $ git push

### Staging site

If the environment variable `JEKYLL_STAGING_URL` is set,
If the environment variable `STAGING_URL` is set,
then this value will be used to set `domain`, `baseurl`, and the assets `baseurl`.
This is useful when you want to setup a staging site
on a separate development repository.
Expand Down
35 changes: 20 additions & 15 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,29 @@ def spawn *cmd

switch = true
Signal.trap 'SIGINT' do
Process.kill( :QUIT, pid ) && Process.wait
Process.kill(:QUIT, pid) && Process.wait
switch = false
end
while switch do sleep 1 end
end

# Generate a staging config if staging URL is set.
def generate_staging_config(url, config)
staging = {'domain' => url, 'baseurl' => url,
'assets' => {'baseurl' => "#{url}/assets"}}
File.open(config, 'w') { |f| f.write staging.to_yaml }
end

# Command to build static site to destination (as an Array).
def build_site_command(destination=nil)
def build_site_command(destination=nil, staging_url='')
config = '_config.staging.yml'
generate_staging_config(staging_url, config) unless staging_url.empty?

args = []
args.concat ['--destination', destination] unless destination.nil?

if File.exists? '_config.staging.yml'
args.concat ['--config', '_config.yml,_config.staging.yml']
if File.exists? config
args.concat ['--config', "_config.yml,#{config}"]
end

['bundle', 'exec', 'jekyll', 'build', *args]
Expand All @@ -43,7 +53,11 @@ end
# rake build
desc 'Generate the site'
task :build do
sh(*build_site_command)
staging_url = ENV['STAGING_URL'].to_s
sh(*build_site_command(nil, staging_url))
if File.exists?('_config.staging.yml') && !staging_url.empty?
File.delete '_config.staging.yml'
end
end

# rake test
Expand Down Expand Up @@ -126,7 +140,7 @@ Rake::Jekyll::GitDeployTask.new(:publish) do |t|
}

t.jekyll_build = -> (dest_dir) {
Rake.sh(*build_site_command(dest_dir))
Rake.sh(*build_site_command(dest_dir, ENV['STAGING_URL'].to_s))
}

t.skip_commit = -> {
Expand All @@ -139,15 +153,6 @@ end
# rake travis_env
desc 'Prepare the Travis CI build environment'
task :travis_env do
# Generate a staging config if staging URL is set.
url = ENV['JEKYLL_STAGING_URL'].to_s
unless url.empty?
puts 'Creating _config.staging.yml.'
staging = {'domain' => url, 'baseurl' => url,
'assets' => {'baseurl' => "#{url}/assets"}}
File.open('_config.staging.yml','w') { |f| f.write staging.to_yaml }
end

# Setup the deploy key.
puts 'Adding deploy key.'
verbose false do
Expand Down
2 changes: 1 addition & 1 deletion _assets/javascripts/app.js.coffee.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Require JavaScript for responsive images.
<% case site.config['picture']['markup']
when 'picturefill'
require_asset 'vendor/picturefill'
require_asset 'picturefill'
when 'interchange'
require_asset 'foundation/js/foundation/foundation.interchange'
end unless site.config['picture'].nil?
Expand Down
61 changes: 0 additions & 61 deletions _assets/javascripts/vendor/picturefill.js

This file was deleted.

14 changes: 7 additions & 7 deletions _assets/stylesheets/_settings.sass
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ $header-font-weight: 300
// $block-grid-default-spacing: rem-calc(20)
// $align-block-grid-to-grid: false
// @if $align-block-grid-to-grid {$block-grid-default-spacing: $column-gutter;}
// @if $align-block-grid-to-grid {$block-grid-default-spacing: $column-gutter}
// Enables media queries for block-grid classes. Set to false if writing semantic HTML.
$block-grid-media-queries: false
Expand Down Expand Up @@ -914,7 +914,7 @@ $block-grid-media-queries: false
// $orbit-caption-bg: rgba(51,51,51, .8)
// $orbit-caption-font-color: $white
// $orbit-caption-font-size: rem-calc(14)
// $orbit-caption-position: "bottom"; // Supported values: "bottom", "under"
// $orbit-caption-position: "bottom" // Supported values: "bottom", "under"
// $orbit-caption-padding: rem-calc(10 14)
// $orbit-caption-height: auto
Expand Down Expand Up @@ -1415,7 +1415,7 @@ $sub-nav-active-bg: $clr_waves
// $topbar-link-color-active-hover: $white
// $topbar-link-weight: $font-weight-normal
// $topbar-link-font-size: rem-calc(13)
// $topbar-link-hover-lightness: -10%; // Darken by 10%
// $topbar-link-hover-lightness: -10% // Darken by 10%
// $topbar-link-bg: $topbar-bg
// $topbar-link-bg-hover: $jet
// $topbar-link-bg-color-hover: $charcoal
Expand Down Expand Up @@ -1454,12 +1454,12 @@ $sub-nav-active-bg: $clr_waves
// $topbar-menu-icon-color: $white
// $topbar-menu-link-color-toggled: $jumbo
// $topbar-menu-icon-color-toggled: $jumbo
// $topbar-menu-icon-position: $opposite-direction; // Change to $default-float for a left menu icon
// $topbar-menu-icon-position: $opposite-direction // Change to $default-float for a left menu icon
// Transitions and breakpoint styles
// $topbar-transition-speed: 300ms
// Using rem-calc for the below breakpoint causes issues with top bar
// $topbar-breakpoint: #{lower-bound($medium-range)}; // Change to 9999px for always mobile layout
// $topbar-breakpoint: #{lower-bound($medium-range)} // Change to 9999px for always mobile layout
// $topbar-media-query: "#{$screen} and (min-width:#{lower-bound($topbar-breakpoint)})"
// Top-bar input styles
Expand All @@ -1471,8 +1471,8 @@ $sub-nav-active-bg: $clr_waves
// Sticky Class
// $topbar-sticky-class: ".sticky"
// $topbar-arrows: true; //Set false to remove the triangle icon from the menu item
// $topbar-dropdown-arrows: true; //Set false to remove the \00bb >> text from dropdown subnavigation li//
// $topbar-arrows: true //Set false to remove the triangle icon from the menu item
// $topbar-dropdown-arrows: true //Set false to remove the \00bb >> text from dropdown subnavigation li//
// 36. Visibility Classes
// - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down
2 changes: 0 additions & 2 deletions _assets/stylesheets/app.css.sass.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
// Make sure the charset is set appropriately.
@charset "UTF-8"

//
// Fonts
//
@import fonts

// Compass
Expand Down
22 changes: 22 additions & 0 deletions _layouts/body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: default
---

<header id="top">
<h1 id="banner" title="{{ site.data.text.tagline }}"><a id="title" href="{{ site.baseurl }}/">Evan <span></span> Sosenko</a></h1>
{% include personal_links.html %}
</header>

{{ content }}

<div id="email_modal" class="reveal-modal" data-reveal>
{% if site.data.text.emails %}
<dl>
{% for item in site.data.text.emails %}
<dt>{{ item.name }}</dt>
<dd>{{ item.email }}</dd>
<dl>
{% endfor %}
{% endif %}
<a class="close-reveal-modal" title="Close modal.">×</a>
</div>
Loading

0 comments on commit 46f5b3d

Please sign in to comment.