| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2524063 commit 2111e18
63 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,20 +1,23 @@ | |||
| 1 | 1 | source 'http://rubygems.org' | |
| 2 | - | ||
| 3 | 2 | ruby '2.2.3' | |
| 4 | 3 | ||
| 5 | 4 | gem 'builder' | |
| 6 | - gem 'kramdown', '~> 0.13.2' | ||
| 5 | + gem 'kramdown', '~> 1.8' | ||
| 7 | 6 | gem 'nanoc', '~> 4.0' | |
| 8 | 7 | gem 'nokogiri', '~> 1.6.0' | |
| 9 | 8 | gem 'rouge', '~> 1.4' | |
| 10 | - gem 'rake', '~> 0.9.2' | ||
| 11 | 9 | ||
| 12 | 10 | group :development do | |
| 11 | + gem 'rake', '10.3.2' | ||
| 13 | 12 | gem 'adsf' | |
| 14 | 13 | gem 'fssm' | |
| 15 | 14 | gem 'guard-nanoc' | |
| 16 | 15 | end | |
| 17 | 16 | ||
| 17 | + group :staging do | ||
| 18 | + gem 'jekyll-auth', '~> 2.0' | ||
| 19 | + end | ||
| 20 | + | ||
| 18 | 21 | group :test do | |
| 19 | 22 | gem 'html-proofer', '~> 2.5' | |
| 20 | 23 | end | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,67 +1,141 @@ | |||
| 1 | 1 | GEM | |
| 2 | 2 | remote: http://rubygems.org/ | |
| 3 | 3 | specs: | |
| 4 | + activesupport (4.2.5) | ||
| 5 | + i18n (~> 0.7) | ||
| 6 | + json (~> 1.7, >= 1.7.7) | ||
| 7 | + minitest (~> 5.1) | ||
| 8 | + thread_safe (~> 0.3, >= 0.3.4) | ||
| 9 | + tzinfo (~> 1.1) | ||
| 4 | 10 | addressable (2.3.8) | |
| 5 | 11 | adsf (1.2.0) | |
| 6 | 12 | rack (>= 1.0.0) | |
| 7 | 13 | builder (3.2.2) | |
| 8 | - celluloid (0.15.2) | ||
| 9 | - timers (~> 1.1.0) | ||
| 10 | 14 | coderay (1.1.0) | |
| 15 | + colorator (0.1) | ||
| 11 | 16 | colored (1.2) | |
| 12 | 17 | cri (2.7.0) | |
| 13 | 18 | colored (~> 1.2) | |
| 14 | - ethon (0.7.4) | ||
| 19 | + dotenv (2.0.2) | ||
| 20 | + ethon (0.8.0) | ||
| 15 | 21 | ffi (>= 1.3.0) | |
| 22 | + faraday (0.9.2) | ||
| 23 | + multipart-post (>= 1.2, < 3) | ||
| 16 | 24 | ffi (1.9.10) | |
| 17 | 25 | formatador (0.2.5) | |
| 18 | 26 | fssm (0.2.10) | |
| 19 | - guard (2.6.1) | ||
| 27 | + guard (2.13.0) | ||
| 20 | 28 | formatador (>= 0.2.4) | |
| 21 | - listen (~> 2.7) | ||
| 29 | + listen (>= 2.7, <= 4.0) | ||
| 22 | 30 | lumberjack (~> 1.0) | |
| 31 | + nenv (~> 0.1) | ||
| 32 | + notiffany (~> 0.0) | ||
| 23 | 33 | pry (>= 0.9.12) | |
| 34 | + shellany (~> 0.0) | ||
| 24 | 35 | thor (>= 0.18.1) | |
| 25 | - guard-nanoc (1.0.2) | ||
| 26 | - guard (>= 1.8.0) | ||
| 27 | - nanoc (>= 3.6.3) | ||
| 28 | - html-proofer (2.5.1) | ||
| 36 | + guard-compat (1.2.1) | ||
| 37 | + guard-nanoc (2.0.0) | ||
| 38 | + guard (~> 2.8) | ||
| 39 | + guard-compat (~> 1.0) | ||
| 40 | + nanoc (~> 4.0) | ||
| 41 | + html-proofer (2.5.2) | ||
| 29 | 42 | addressable (~> 2.3) | |
| 30 | 43 | colored (~> 1.2) | |
| 31 | 44 | mercenary (~> 0.3.2) | |
| 32 | 45 | nokogiri (~> 1.5) | |
| 33 | 46 | parallel (~> 1.3) | |
| 34 | 47 | typhoeus (~> 0.7) | |
| 35 | 48 | yell (~> 2.0) | |
| 36 | - kramdown (0.13.8) | ||
| 37 | - listen (2.7.9) | ||
| 38 | - celluloid (>= 0.15.2) | ||
| 49 | + i18n (0.7.0) | ||
| 50 | + jekyll (3.0.0) | ||
| 51 | + colorator (~> 0.1) | ||
| 52 | + jekyll-sass-converter (~> 1.0) | ||
| 53 | + jekyll-watch (~> 1.1) | ||
| 54 | + kramdown (~> 1.3) | ||
| 55 | + liquid (~> 3.0) | ||
| 56 | + mercenary (~> 0.3.3) | ||
| 57 | + rouge (~> 1.7) | ||
| 58 | + safe_yaml (~> 1.0) | ||
| 59 | + jekyll-auth (2.0.0) | ||
| 60 | + colorator (~> 0.1) | ||
| 61 | + dotenv (~> 2.0) | ||
| 62 | + jekyll (>= 2.0) | ||
| 63 | + mercenary (~> 0.3) | ||
| 64 | + rack (~> 1.6) | ||
| 65 | + rack-ssl-enforcer (~> 0.2) | ||
| 66 | + rake (~> 10.3) | ||
| 67 | + safe_yaml (~> 1.0) | ||
| 68 | + sinatra-index (~> 0.0) | ||
| 69 | + sinatra_auth_github (~> 1.1) | ||
| 70 | + jekyll-sass-converter (1.3.0) | ||
| 71 | + sass (~> 3.2) | ||
| 72 | + jekyll-watch (1.3.0) | ||
| 73 | + listen (~> 3.0) | ||
| 74 | + json (1.8.3) | ||
| 75 | + kramdown (1.9.0) | ||
| 76 | + liquid (3.0.6) | ||
| 77 | + listen (3.0.4) | ||
| 39 | 78 | rb-fsevent (>= 0.9.3) | |
| 40 | 79 | rb-inotify (>= 0.9) | |
| 41 | 80 | lumberjack (1.0.9) | |
| 42 | 81 | mercenary (0.3.5) | |
| 43 | 82 | method_source (0.8.2) | |
| 44 | 83 | mini_portile (0.6.2) | |
| 84 | + minitest (5.8.2) | ||
| 85 | + multipart-post (2.0.0) | ||
| 45 | 86 | nanoc (4.0.0) | |
| 46 | 87 | cri (~> 2.3) | |
| 88 | + nenv (0.2.0) | ||
| 47 | 89 | nokogiri (1.6.6.2) | |
| 48 | 90 | mini_portile (~> 0.6.0) | |
| 91 | + notiffany (0.0.8) | ||
| 92 | + nenv (~> 0.1) | ||
| 93 | + shellany (~> 0.0) | ||
| 94 | + octokit (4.1.1) | ||
| 95 | + sawyer (~> 0.6.0, >= 0.5.3) | ||
| 49 | 96 | parallel (1.6.1) | |
| 50 | - pry (0.10.0) | ||
| 97 | + pry (0.10.3) | ||
| 51 | 98 | coderay (~> 1.1.0) | |
| 52 | 99 | method_source (~> 0.8.1) | |
| 53 | 100 | slop (~> 3.4) | |
| 54 | 101 | rack (1.6.4) | |
| 55 | - rake (0.9.6) | ||
| 56 | - rb-fsevent (0.9.4) | ||
| 102 | + rack-protection (1.5.3) | ||
| 103 | + rack | ||
| 104 | + rack-ssl-enforcer (0.2.9) | ||
| 105 | + rake (10.3.2) | ||
| 106 | + rb-fsevent (0.9.6) | ||
| 57 | 107 | rb-inotify (0.9.5) | |
| 58 | 108 | ffi (>= 0.5.0) | |
| 59 | - rouge (1.4.0) | ||
| 109 | + rouge (1.10.1) | ||
| 110 | + safe_yaml (1.0.4) | ||
| 111 | + sass (3.4.19) | ||
| 112 | + sawyer (0.6.0) | ||
| 113 | + addressable (~> 2.3.5) | ||
| 114 | + faraday (~> 0.8, < 0.10) | ||
| 115 | + shellany (0.0.1) | ||
| 116 | + sinatra (1.4.6) | ||
| 117 | + rack (~> 1.4) | ||
| 118 | + rack-protection (~> 1.4) | ||
| 119 | + tilt (>= 1.3, < 3) | ||
| 120 | + sinatra-index (0.0.2) | ||
| 121 | + sinatra | ||
| 122 | + sinatra_auth_github (1.2.0) | ||
| 123 | + sinatra (~> 1.0) | ||
| 124 | + warden-github (~> 1.2.0) | ||
| 60 | 125 | slop (3.6.0) | |
| 61 | 126 | thor (0.19.1) | |
| 62 | - timers (1.1.0) | ||
| 63 | - typhoeus (0.7.3) | ||
| 64 | - ethon (>= 0.7.4) | ||
| 127 | + thread_safe (0.3.5) | ||
| 128 | + tilt (2.0.1) | ||
| 129 | + typhoeus (0.8.0) | ||
| 130 | + ethon (>= 0.8.0) | ||
| 131 | + tzinfo (1.2.2) | ||
| 132 | + thread_safe (~> 0.1) | ||
| 133 | + warden (1.2.3) | ||
| 134 | + rack (>= 1.0) | ||
| 135 | + warden-github (1.2.0) | ||
| 136 | + activesupport (> 3.0) | ||
| 137 | + octokit (> 2.1.0) | ||
| 138 | + warden (> 1.0) | ||
| 65 | 139 | yell (2.0.5) | |
| 66 | 140 | ||
| 67 | 141 | PLATFORMS | |
@@ -73,10 +147,11 @@ DEPENDENCIES | |||
| 73 | 147 | fssm | |
| 74 | 148 | guard-nanoc | |
| 75 | 149 | html-proofer (~> 2.5) | |
| 76 | - kramdown (~> 0.13.2) | ||
| 150 | + jekyll-auth (~> 2.0) | ||
| 151 | + kramdown (~> 1.8) | ||
| 77 | 152 | nanoc (~> 4.0) | |
| 78 | 153 | nokogiri (~> 1.6.0) | |
| 79 | - rake (~> 0.9.2) | ||
| 154 | + rake (= 10.3.2) | ||
| 80 | 155 | rouge (~> 1.4) | |
| 81 | 156 | ||
| 82 | 157 | BUNDLED WITH | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,6 +60,12 @@ def commit_message(no_commit_msg = false) | |||
| 60 | 60 | mesg.gsub(/'/, '') # Allow this to be handed off via -m '#{message}' | |
| 61 | 61 | end | |
| 62 | 62 | ||
| 63 | + namespace :assets do | ||
| 64 | + task :precompile => [:compile] do | ||
| 65 | + sh 'mv output _site/' | ||
| 66 | + end | ||
| 67 | + end | ||
| 68 | + | ||
| 63 | 69 | desc "Publish to http://developer.github.com" | |
| 64 | 70 | task :publish, [:no_commit_msg] => [:remove_tmp_dir, :remove_output_dir, :build] do |t, args| | |
| 65 | 71 | message = commit_message(args[:no_commit_msg]) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1267,6 +1267,19 @@ pre span.comment {color: #aaa;} | |||
| 1267 | 1267 | color: #63E463; | |
| 1268 | 1268 | } | |
| 1269 | 1269 | ||
| 1270 | + #staging-header { | ||
| 1271 | + line-height: 34px; | ||
| 1272 | + color: rgba(255, 255, 255, 0.5); | ||
| 1273 | + background-color: #222; | ||
| 1274 | + } | ||
| 1275 | + | ||
| 1276 | + #staging-header p { | ||
| 1277 | + color: white; | ||
| 1278 | + font-size: 12px; | ||
| 1279 | + padding-left: 20px; | ||
| 1280 | + margin: 0; | ||
| 1281 | + } | ||
| 1282 | + | ||
| 1270 | 1283 | /****************************/ | |
| 1271 | 1284 | /* Expandable List Module */ | |
| 1272 | 1285 | /****************************/ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,5 @@ | |||
| 1 | + # This file is auto-generated by Jekyll Auth | ||
| 2 | + # It tells Heroku how to launch our site | ||
| 3 | + | ||
| 4 | + require "jekyll-auth" | ||
| 5 | + run JekyllAuth.site | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | + <%= render '/includes/staging_header.html' %> | ||
| 1 | 2 | <div id="header-wrapper"> | |
| 2 | 3 | <div id="header"> | |
| 3 | 4 | <div> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,5 @@ | |||
| 1 | + <% if ENV['RACK_ENV'] == 'staging' %> | ||
| 2 | + <div id="staging-header"> | ||
| 3 | + <p>You're looking at <a href="https://github.com/github/internal-developer.github.com/commit/<%= ENV['SOURCE_VERSION'] %>"><%= ENV['SOURCE_VERSION'] %></a> | ||
| 4 | + </div> | ||
| 5 | + <% end %> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,11 +6,18 @@ export CC=gcc | |||
| 6 | 6 | command -v bundle >/dev/null 2>&1 || { echo >&2 "Bundler required but not found: gem install bundler"; exit 1; } | |
| 7 | 7 | ||
| 8 | 8 | echo "==> Installing gem dependencies…" | |
| 9 | - bundle check --path vendor/cache 2>&1 || { | ||
| 10 | - bundle install --path vendor/cache | ||
| 11 | - } | ||
| 9 | + | ||
| 10 | + if [ "$RACK_ENV" = "production" ]; then | ||
| 11 | + export NOKOGIRI_USE_SYSTEM_LIBRARIES=1 | ||
| 12 | + bundle install --without development staging test benchmark --path vendor/cache --jobs 4 --local --deployment | ||
| 13 | + else | ||
| 14 | + bundle check --path vendor/cache 2>&1 || { | ||
| 15 | + bundle install --path vendor/cache | ||
| 16 | + } | ||
| 17 | + fi | ||
| 12 | 18 | ||
| 13 | 19 | echo "==> Installing npm dependencies…" | |
| 20 | + | ||
| 14 | 21 | if [ "$RACK_ENV" = "production" ]; then | |
| 15 | 22 | npm install --production | |
| 16 | 23 | else | |
| Back | FazBrowse Home | New Git URL |
0 commit comments