Skip to content

Commit d3c09cd

Browse files
committed
Bootstrap website with coddles template
0 parents  commit d3c09cd

28 files changed

+919
-0
lines changed

.bowerrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "bower_components"
3+
}

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Ignore bundler config
2+
/.bundle
3+
4+
# Ignore the build directory
5+
/build
6+
7+
# Ignore Sass' cache
8+
/.sass-cache
9+
10+
# Ignore .DS_store file
11+
.DS_Store
12+
13+
# Ignore NPM debug
14+
.npm-debug.log
15+
16+
# Ignore Bower Folder
17+
/bower_components
18+
19+
Gemfile.lock

.ruby-gemset

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ruby-nord.github.io
2+

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.1.5

Gemfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# If you have OpenSSL installed, we recommend updating
2+
# the following line to use 'https'
3+
source 'http://rubygems.org'
4+
5+
gem 'middleman', '~> 3.3.7'
6+
gem 'middleman-gh-pages', '~> 0.0.3'
7+
gem 'middleman-livereload', '~> 3.4.2'
8+
gem 'middleman-favicon-maker', '~> 3.7'
9+
gem 'middleman-minify-html', '~> 3.4.0'
10+
gem 'middleman-sitemap', '~> 0.0.13'
11+
gem 'middleman-autoprefixer', '~> 2.1.1'
12+
13+
gem 'slim', '~> 3.0.2'

LICENSE

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

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# ruby-nord
2+
3+
Website of ruby lovers from the north of France, build with [codeless](https://github.com/flexbox/codeless).
4+
5+
###### Preprocessing
6+
- [Slim](http://slim-lang.com) *[for html]*
7+
- [Sass](http://sass-lang.com) *[for css]*
8+
- [CoffeeScript](http://coffeescript.org) *[for js]*
9+
10+
###### Tools
11+
- [Bower](http://bower.io) *[js package management]*
12+
- [Middleman Live Reload](https://github.com/middleman/middleman-livereload) *[Reloads the page when files change]*
13+
- [Middleman Autoprefixer](https://github.com/middleman/middleman-autoprefixer) *[Automatically add vendor prefixes to CSS rules]*
14+
- [GitHub Pages](http://pages.github.com) *[deployment/hosting]*
15+
16+
## Getting Started
17+
18+
Set up your project in your code directory
19+
20+
git clone [email protected]:ruby-nord/ruby-nord.github.io.git
21+
22+
Install dependencies
23+
24+
bundle install
25+
bower install
26+
27+
Launch the server on your machine
28+
29+
middleman server
30+
31+
Deploy to Github Pages
32+
33+
rake publish
34+
35+
36+
## Contributing
37+
38+
If you have problems, please create a [GitHub Issue](https://github.com/ruby-nord/ruby-nord.github.io/issues).
39+
40+
Have a fix or want to add a feature? [Pull Requests](https://github.com/ruby-nord/ruby-nord.github.io/pulls) are welcome!
41+
42+
## License
43+
44+
This project is free software, and may be redistributed under [GNU/GPL license](LICENSE.md).

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'middleman-gh-pages'

bower.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "codeless",
3+
"version": "0.0.1",
4+
"homepage": "https://github.com/flexbox/codeless",
5+
"authors": [
6+
"flexbox <[email protected]>"
7+
],
8+
"description": "Middleman starter template with Sass, slim and CoffeeScript. Based on ruby on rails architecture.",
9+
"license": "GNU/GPL",
10+
"private": false,
11+
"ignore": [
12+
"**/.*",
13+
"node_modules",
14+
"bower_components",
15+
"test",
16+
"tests"
17+
],
18+
"dependencies": {
19+
"foundation": "~5.5.2"
20+
}
21+
}

config.rb

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
require 'slim'
2+
3+
activate :autoprefixer,
4+
browsers: ['last 2 versions', 'ie 8', 'ie 9']
5+
6+
activate :livereload
7+
activate :directory_indexes
8+
9+
set :js_dir, 'assets/javascripts'
10+
set :css_dir, 'assets/stylesheets'
11+
set :images_dir, 'assets/images'
12+
13+
# Add bower's directory to sprockets asset path
14+
after_configuration do
15+
16+
@bower_config = JSON.parse(IO.read("#{root}/.bowerrc"))
17+
sprockets.append_path File.join "#{root}", @bower_config["directory"]
18+
19+
end
20+
21+
# Build-specific configuration
22+
configure :build do
23+
24+
activate :favicon_maker do |f|
25+
f.template_dir = File.join(root, 'source')
26+
f.output_dir = File.join(root, 'build')
27+
f.icons = {
28+
"favicon_base.png" => [
29+
{ icon: "apple-touch-icon-152x152-precomposed.png" },
30+
{ icon: "apple-touch-icon-144x144-precomposed.png" },
31+
{ icon: "apple-touch-icon-120x120-precomposed.png" },
32+
{ icon: "apple-touch-icon-114x114-precomposed.png" },
33+
{ icon: "apple-touch-icon-76x76-precomposed.png" },
34+
{ icon: "apple-touch-icon-72x72-precomposed.png" },
35+
{ icon: "apple-touch-icon-60x60-precomposed.png" },
36+
{ icon: "apple-touch-icon-57x57-precomposed.png" },
37+
{ icon: "apple-touch-icon-precomposed.png", size: "57x57" },
38+
{ icon: "apple-touch-icon.png", size: "57x57" },
39+
{ icon: "favicon-196x196.png" },
40+
{ icon: "favicon-160x160.png" },
41+
{ icon: "favicon-96x96.png" },
42+
{ icon: "favicon-32x32.png" },
43+
{ icon: "favicon-16x16.png" },
44+
{ icon: "favicon.png", size: "16x16" },
45+
{ icon: "favicon.ico", size: "64x64,32x32,24x24,16x16" },
46+
]
47+
}
48+
end
49+
50+
activate :sitemap, hostname: data.settings.site.url
51+
52+
activate :minify_html
53+
activate :minify_css
54+
activate :minify_javascript
55+
activate :gzip
56+
57+
activate :asset_hash
58+
# activate :relative_assets
59+
# set :relative_links, true
60+
61+
end

0 commit comments

Comments
 (0)