forked from isobar-us/code-standards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
further improving readme, adding generated styles to repo as gh-pages…
… will not run the grunt script
- Loading branch information
sforst
authored and
Sarah Forst
committed
Aug 14, 2013
1 parent
73db512
commit bb02271
Showing
16 changed files
with
1,846 additions
and
2,041 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'jekyll', '=1.1.2' | ||
gem 'liquid', '=2.5.1' | ||
gem 'redcarpet', '=2.2.2' | ||
gem 'maruku', '=0.6.1' | ||
gem 'rdiscount', '=1.6.8' | ||
gem 'RedCloth', '=4.2.9' | ||
gem 'kramdown', '=1.0.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
RedCloth (4.2.9) | ||
classifier (1.3.3) | ||
fast-stemmer (>= 1.0.0) | ||
colorator (0.1) | ||
commander (4.1.4) | ||
highline (~> 1.6.11) | ||
directory_watcher (1.4.1) | ||
fast-stemmer (1.0.2) | ||
highline (1.6.19) | ||
jekyll (1.1.2) | ||
classifier (~> 1.3) | ||
colorator (~> 0.1) | ||
commander (~> 4.1.3) | ||
directory_watcher (~> 1.4.1) | ||
kramdown (~> 1.0.2) | ||
liquid (~> 2.5.1) | ||
maruku (~> 0.5) | ||
pygments.rb (~> 0.5.0) | ||
redcarpet (~> 2.2.2) | ||
safe_yaml (~> 0.7.0) | ||
kramdown (1.0.2) | ||
liquid (2.5.1) | ||
maruku (0.6.1) | ||
syntax (>= 1.0.0) | ||
posix-spawn (0.3.6) | ||
pygments.rb (0.5.2) | ||
posix-spawn (~> 0.3.6) | ||
yajl-ruby (~> 1.1.0) | ||
rdiscount (1.6.8) | ||
redcarpet (2.2.2) | ||
safe_yaml (0.7.1) | ||
syntax (1.0.0) | ||
yajl-ruby (1.1.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
RedCloth (= 4.2.9) | ||
jekyll (= 1.1.2) | ||
kramdown (= 1.0.2) | ||
liquid (= 2.5.1) | ||
maruku (= 0.6.1) | ||
rdiscount (= 1.6.8) | ||
redcarpet (= 2.2.2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/*global module:false*/ | ||
module.exports = function(grunt) { | ||
var metas = { | ||
en: { | ||
path: 'sections/en/', | ||
files: ['_front_matter.txt', 'general.html', 'markup.html', 'css.html', 'javascript.html', 'performance.html', 'browsers.html', 'seo.html', 'codeReviews.html', 'appendices.html', 'revisionHistory.html'] | ||
} | ||
} | ||
|
||
function addBasePaths(basePath, fileArray){ | ||
var output = []; | ||
|
||
fileArray.forEach(function(i){ | ||
output.push(basePath + i); | ||
grunt.log.write("Including base path: " + basePath + i + '\n');//logging for debugging | ||
}); | ||
|
||
return output; | ||
}; | ||
// Project configuration. | ||
grunt.initConfig({ | ||
// Metadata. | ||
pkg: grunt.file.readJSON('package.json'), | ||
// Task configuration. | ||
concat: { | ||
dist: { | ||
src: ((function(){ | ||
var files = []; | ||
|
||
files = addBasePaths(metas.en.path, metas.en.files); | ||
|
||
return files; | ||
|
||
})()), | ||
dest: 'index.html' | ||
} | ||
}, | ||
watch: { | ||
options: { | ||
livereload: true, | ||
}, | ||
css: { | ||
files: ['scss/*.scss'], | ||
tasks: ['compass'] | ||
}, | ||
html: { | ||
files: ['sections/en/*.html'], | ||
tasks: ['concat'] | ||
}, | ||
jekyll: { | ||
files: ['index.html', '_layouts/*.html'], | ||
tasks: ['jekyll'] | ||
} | ||
}, | ||
compass: { | ||
dist: { | ||
options: { | ||
config: 'config.rb' | ||
} | ||
} | ||
}, | ||
/*todo: setup jekyll build to serve index.html*/ | ||
jekyll: { // Task | ||
options: { // Universal options | ||
bundleExec: true, | ||
config: '_config.yml' | ||
}, | ||
build: { | ||
options: { | ||
drafts: false | ||
} | ||
} | ||
} | ||
}); | ||
|
||
// These plugins provide necessary tasks. | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-compass'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-jekyll'); | ||
|
||
// Default task. | ||
grunt.registerTask('default', ['concat', 'compass', 'jekyll']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- # Jekyll configuration file. Currently we are using the defaults so this is empty. -sforst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* line 1, ../../scss/print.scss */ | ||
body { | ||
width: 80%; | ||
font-family: Calibri,Arial,Helvetica,sans-serif; | ||
} | ||
|
||
/* line 2, ../../scss/print.scss */ | ||
header { | ||
width: 100%; | ||
} | ||
|
||
/* line 3, ../../scss/print.scss */ | ||
header #logo { | ||
background: url("../img/isobar.png") no-repeat 0 0; | ||
} | ||
|
||
/* line 4, ../../scss/print.scss */ | ||
h1, h2, h3 { | ||
color: #f30; | ||
position: relative; | ||
margin-top: 20px; | ||
font-weight: 200; | ||
} | ||
|
||
/* line 5, ../../scss/print.scss */ | ||
h1 { | ||
padding: 0; | ||
margin: 0; | ||
color: #00050a; | ||
} | ||
|
||
/* line 6, ../../scss/print.scss */ | ||
header h1 a { | ||
font-size: 48px; | ||
} | ||
|
||
/* line 6, ../../scss/print.scss */ | ||
a, a:visited { | ||
text-decoration: none; | ||
color: #f30; | ||
} | ||
|
||
/* line 7, ../../scss/print.scss */ | ||
body .fork, #side, header #social, canvas, .anchor_link, .backAnchor { | ||
visibility: hidden; | ||
} | ||
|
||
/* line 8, ../../scss/print.scss */ | ||
.syntaxhighlighter { | ||
background: #ccc; | ||
} |
Oops, something went wrong.