Skip to content

Commit 2fa5f6b

Browse files
author
Matthew McCullough
committed
Build infrastructure and skeleton for all resources
1 parent 5191384 commit 2fa5f6b

34 files changed

+5948
-0
lines changed

Gemfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
source "https://rubygems.org"
2+
3+
gem 'compass'
4+
gem 'github-pages'
5+
gem 'html-proofer'
6+
gem 'jekyll'
7+
gem 'rack-contrib', '~> 1.1.0'
8+
gem 'rake'
9+
gem 'rdiscount'
10+
gem 'sass'

Gemfile.lock

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
classifier (1.3.3)
5+
fast-stemmer (>= 1.0.0)
6+
colorator (0.1)
7+
colored (1.2)
8+
commander (4.1.5)
9+
highline (= 1.6.20)
10+
compass (0.12.2)
11+
ethon (0.6.1)
12+
ffi (>= 1.3.0)
13+
mime-types (~> 1.18)
14+
fast-stemmer (1.0.2)
15+
ffi (1.9.3)
16+
github-pages (10)
17+
kramdown (= 1.2.0)
18+
highline (1.6.20)
19+
html-proofer (0.3.0)
20+
colored (~> 1.2)
21+
mercenary (~> 0.2.0)
22+
nokogiri (~> 1.6.0)
23+
typhoeus (~> 0.6.3)
24+
jekyll (1.3.1)
25+
classifier (~> 1.3)
26+
colorator (~> 0.1)
27+
commander (~> 4.1.3)
28+
liquid (= 2.5.4)
29+
listen (~> 1.3)
30+
maruku (~> 0.6.0)
31+
pygments.rb (~> 0.5.0)
32+
redcarpet (~> 2.3.0)
33+
safe_yaml (~> 0.9.7)
34+
kramdown (1.2.0)
35+
liquid (2.5.4)
36+
listen (1.3.1)
37+
rb-fsevent (>= 0.9.3)
38+
rb-inotify (>= 0.9)
39+
rb-kqueue (>= 0.2)
40+
maruku (0.6.1)
41+
syntax (>= 1.0.0)
42+
mercenary (0.2.0)
43+
mime-types (1.25.1)
44+
mini_portile (0.5.2)
45+
nokogiri (1.6.0)
46+
mini_portile (~> 0.5.0)
47+
posix-spawn (0.3.6)
48+
pygments.rb (0.5.4)
49+
posix-spawn (~> 0.3.6)
50+
yajl-ruby (~> 1.1.0)
51+
rack-contrib (1.1.0)
52+
rake (10.1.0)
53+
rb-fsevent (0.9.3)
54+
rb-inotify (0.9.2)
55+
ffi (>= 0.5.0)
56+
rb-kqueue (0.2.0)
57+
ffi (>= 0.5.0)
58+
rdiscount (2.1.7)
59+
redcarpet (2.3.0)
60+
safe_yaml (0.9.7)
61+
sass (3.2.8)
62+
syntax (1.0.0)
63+
typhoeus (0.6.6)
64+
ethon (~> 0.6.1)
65+
yajl-ruby (1.1.0)
66+
67+
PLATFORMS
68+
ruby
69+
70+
DEPENDENCIES
71+
compass
72+
github-pages
73+
html-proofer
74+
jekyll
75+
rack-contrib (~> 1.1.0)
76+
rake
77+
rdiscount
78+
sass

LICENSE.md

Lines changed: 103 additions & 0 deletions
Large diffs are not rendered by default.

Rakefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require 'html/proofer'
2+
3+
desc 'Clean up generated site'
4+
task :clean do
5+
sh 'rm -rf _site'
6+
end
7+
8+
task :test do
9+
sh 'bundle exec sass _stylesheets/cheatsheet.scss:_stylesheets/cheatsheet.css'
10+
sh 'bundle exec sass _stylesheets/outline.scss:_stylesheets/outline.css'
11+
sh 'bundle exec sass _stylesheets/page.scss:_stylesheets/page.css'
12+
sh 'bundle exec sass _stylesheets/slide.scss:_stylesheets/slide.css'
13+
sh 'bundle exec jekyll build'
14+
15+
# HTML::Proofer.new("./_site").run
16+
end
17+
18+
task default: :test

_buildscripts/bootstrap

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
set -e
4+
export CC=gcc
5+
6+
echo "==> Installing gem dependencies…"
7+
8+
bundle check --path vendor/gems 2>&1 > /dev/null || {
9+
bundle install --binstubs bin --path vendor/gems
10+
}
11+
12+
echo "==> Cloning into submodules"
13+
git submodule init
14+
git submodule update

_buildscripts/cibuild

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
# setup environment
6+
export PATH="/usr/share/rbenv/shims:$PATH"
7+
export RBENV_VERSION="2.0.0"
8+
9+
# write some debug info
10+
ruby -v
11+
echo "hostname: $(hostname)"
12+
echo "pwd: $(pwd)"
13+
git --version
14+
15+
_buildscripts/bootstrap
16+
17+
bundle exec rake test

_buildscripts/server

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
_buildscripts/update
4+
_buildscripts/cibuild
5+
6+
bundle exec jekyll serve --watch "$@"

_buildscripts/setup

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
set -e
4+
export CC=gcc
5+
6+
_buildscripts/bootstrap
7+
8+
echo "==> The app is now ready to go!"

_buildscripts/update

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
set -e
4+
export CC=gcc
5+
6+
_buildscripts/bootstrap

_config.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# For Atom Feed
2+
domain: training.github.com
3+
author: GitHub Training Team
4+
email: training@github.com
5+
title: GitHub Training
6+
7+
# standard jekyll configuration
8+
9+
permalink: /articles/:title
10+
pygments: true
11+
exclude:
12+
- bin
13+
- config.rb
14+
- Gemfile
15+
- Gemfile.lock
16+
- gems
17+
- Procfile
18+
- Rakefile
19+
- README.md
20+
- script
21+
- vendor
22+
23+
include:
24+
- _stylesheets
25+
26+
markdown: rdiscount

0 commit comments

Comments
 (0)