Skip to content

Commit 9c0a9e7

Browse files
committed
Port to Middleman
1 parent 87cd5e5 commit 9c0a9e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2433
-15
lines changed

.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile ~/.gitignore_global
6+
7+
# Ignore bundler config
8+
/.bundle
9+
10+
# Ignore the build directory
11+
/build
12+
13+
# Ignore cache
14+
/.sass-cache
15+
/.cache
16+
17+
# Ignore .DS_store file
18+
.DS_Store
19+
20+
/log
21+
22+
# Ignore Vagrant files
23+
/.vagrant

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rvm: 2.3.0
2+
script: true

Gemfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# If you do not have OpenSSL installed, change
2+
# the following line to use 'http://'
3+
source 'https://rubygems.org'
4+
5+
# For faster file watcher updates on Windows:
6+
gem 'wdm', '~> 0.1.0', platforms: [:mswin, :mingw]
7+
8+
# Windows does not come with time zone data
9+
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]
10+
11+
# Middleman Gems
12+
gem 'middleman', '>= 4.0.0'
13+
gem 'middleman-livereload'
14+
gem 'middleman-compass', '>= 4.0.0'
15+
16+
# Stylesheet items
17+
gem 'bourbon'
18+
gem 'neat'
19+
20+
# GeoPattern for geometric patterns
21+
gem 'geo_pattern'
22+
23+
# Easy deploys
24+
gem 'middleman-gh-pages'

Gemfile.lock

+159
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (4.2.5.2)
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)
10+
addressable (2.4.0)
11+
backports (3.6.8)
12+
bourbon (4.2.6)
13+
sass (~> 3.4)
14+
thor (~> 0.19)
15+
capybara (2.5.0)
16+
mime-types (>= 1.16)
17+
nokogiri (>= 1.3.3)
18+
rack (>= 1.0.0)
19+
rack-test (>= 0.5.4)
20+
xpath (~> 2.0)
21+
chunky_png (1.3.5)
22+
coffee-script (2.4.1)
23+
coffee-script-source
24+
execjs
25+
coffee-script-source (1.10.0)
26+
color (1.8)
27+
compass (1.0.3)
28+
chunky_png (~> 1.2)
29+
compass-core (~> 1.0.2)
30+
compass-import-once (~> 1.0.5)
31+
rb-fsevent (>= 0.9.3)
32+
rb-inotify (>= 0.9)
33+
sass (>= 3.3.13, < 3.5)
34+
compass-core (1.0.3)
35+
multi_json (~> 1.0)
36+
sass (>= 3.3.0, < 3.5)
37+
compass-import-once (1.0.5)
38+
sass (>= 3.2, < 3.5)
39+
concurrent-ruby (1.0.1)
40+
contracts (0.13.0)
41+
em-websocket (0.5.1)
42+
eventmachine (>= 0.12.9)
43+
http_parser.rb (~> 0.6.0)
44+
erubis (2.7.0)
45+
eventmachine (1.0.9.1)
46+
execjs (2.6.0)
47+
fast_blank (1.0.0)
48+
fastimage (1.8.1)
49+
addressable (~> 2.3, >= 2.3.5)
50+
ffi (1.9.10)
51+
geo_pattern (1.4.0)
52+
color (~> 1.5)
53+
haml (4.0.7)
54+
tilt
55+
hamster (3.0.0)
56+
concurrent-ruby (~> 1.0)
57+
hashie (3.4.3)
58+
http_parser.rb (0.6.0)
59+
i18n (0.7.0)
60+
json (1.8.3)
61+
kramdown (1.9.0)
62+
listen (3.0.6)
63+
rb-fsevent (>= 0.9.3)
64+
rb-inotify (>= 0.9.7)
65+
middleman (4.1.2)
66+
coffee-script (~> 2.2)
67+
compass-import-once (= 1.0.5)
68+
haml (>= 4.0.5)
69+
kramdown (~> 1.2)
70+
middleman-cli (= 4.1.2)
71+
middleman-core (= 4.1.2)
72+
sass (>= 3.4.0, < 4.0)
73+
middleman-cli (4.1.2)
74+
thor (>= 0.17.0, < 2.0)
75+
middleman-compass (4.0.1)
76+
compass (>= 1.0.0, < 2.0.0)
77+
middleman-core (>= 4.0.0)
78+
middleman-core (4.1.2)
79+
activesupport (~> 4.2)
80+
addressable (~> 2.4.0)
81+
backports (~> 3.6)
82+
bundler (~> 1.1)
83+
capybara (~> 2.5.0)
84+
contracts (~> 0.13.0)
85+
erubis
86+
execjs (~> 2.0)
87+
fast_blank
88+
fastimage (~> 1.8)
89+
hamster (~> 3.0)
90+
hashie (~> 3.4)
91+
i18n (~> 0.7.0)
92+
listen (~> 3.0)
93+
padrino-helpers (~> 0.13.0)
94+
parallel
95+
rack (>= 1.4.5, < 2.0)
96+
sass (>= 3.4)
97+
tilt (~> 1.4.1)
98+
uglifier (~> 2.6)
99+
middleman-gh-pages (0.3.0)
100+
rake (> 0.9.3)
101+
middleman-livereload (3.4.6)
102+
em-websocket (~> 0.5.1)
103+
middleman-core (>= 3.3)
104+
rack-livereload (~> 0.3.15)
105+
mime-types (3.0)
106+
mime-types-data (~> 3.2015)
107+
mime-types-data (3.2016.0221)
108+
mini_portile2 (2.0.0)
109+
minitest (5.8.4)
110+
multi_json (1.11.2)
111+
neat (1.7.3)
112+
bourbon (>= 4.0)
113+
sass (>= 3.3)
114+
nokogiri (1.6.7.2)
115+
mini_portile2 (~> 2.0.0.rc2)
116+
padrino-helpers (0.13.1)
117+
i18n (~> 0.6, >= 0.6.7)
118+
padrino-support (= 0.13.1)
119+
tilt (~> 1.4.1)
120+
padrino-support (0.13.1)
121+
activesupport (>= 3.1)
122+
parallel (1.6.2)
123+
rack (1.6.4)
124+
rack-livereload (0.3.16)
125+
rack
126+
rack-test (0.6.3)
127+
rack (>= 1.0)
128+
rake (11.1.2)
129+
rb-fsevent (0.9.7)
130+
rb-inotify (0.9.7)
131+
ffi (>= 0.5.0)
132+
sass (3.4.21)
133+
thor (0.19.1)
134+
thread_safe (0.3.5)
135+
tilt (1.4.1)
136+
tzinfo (1.2.2)
137+
thread_safe (~> 0.1)
138+
uglifier (2.7.2)
139+
execjs (>= 0.3.0)
140+
json (>= 1.8.0)
141+
xpath (2.0.0)
142+
nokogiri (~> 1.3)
143+
144+
PLATFORMS
145+
ruby
146+
147+
DEPENDENCIES
148+
bourbon
149+
geo_pattern
150+
middleman (>= 4.0.0)
151+
middleman-compass (>= 4.0.0)
152+
middleman-gh-pages
153+
middleman-livereload
154+
neat
155+
tzinfo-data
156+
wdm (~> 0.1.0)
157+
158+
BUNDLED WITH
159+
1.11.2

README.md

+53-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
1-
# cwdg.github.io
1+
# &lt;CWDG /&gt; Website
22

3-
This was our old site, if you want to see the source code
4-
please check out [the archive branch](https://github.com/CWDG/cwdg.github.com/tree/archive)
5-
if you want to see the old source code.
3+
[![Build Status](https://travis-ci.org/CWDG/cwdg-website.svg)](https://travis-ci.org/CWDG/cwdg-website)
4+
5+
## Description
6+
7+
This is our latest web application for our group in order for us to manage our group better an automate certain tasks that I am terrible at doing. But yet still can't answer [emails for me](mailto:[email protected]).
8+
9+
## Setup
10+
11+
### Before you run this application
12+
13+
* Install [VirtualBox](https://www.virtualbox.org/)
14+
* Install [Vagrant](https://www.vagrantup.com/downloads.html)
15+
* Setup Vagrant
16+
- `vagrant plugin install vagrant-vbguest`
17+
18+
### Once you have the application cloned
19+
20+
* Clone it
21+
- `git clone https://github.com/CWDG/cwdg-website.git`
22+
- `cd cwdg-website`
23+
* Fire up vagrant
24+
- `vagrant up`
25+
* SSH into the virtual machine
26+
- `vagrant ssh`
27+
* Setup the CWDG app
28+
- `cd cwdg-website`
29+
- `bundle install`
30+
31+
## Run the app
32+
33+
Make sure that you are `ssh`ed into your vagrant machine.
34+
35+
```
36+
vagrant ssh
37+
38+
cd cwdg-website
39+
40+
# Run the server
41+
bundle exec middleman server
42+
```
43+
44+
Go to [http://localhost:4567](http://localhost:4567)
45+
46+
BOOM!! Done.
47+
48+
## Contributing
49+
50+
This is meant to be an application that our group should enjoy and contribute to.
51+
Please feel free to fork this project and make changes that you would like to see.
52+
53+
If you are not sure how to implement something, but would like to see it just make a pull feature pull
54+
request on this repo or talk to one of us during the meeting. We'll always be more than happy to help.

Rakefile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'middleman-gh-pages'

Vagrantfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
Vagrant.configure('2') do |config|
4+
config.vm.box = 'debian/jessie64'
5+
6+
# Server
7+
config.vm.network :forwarded_port, guest: 4567, host: 4567
8+
# LiveReload
9+
config.vm.network :forwarded_port, guest: 35729, host: 35729
10+
config.vm.provision :shell, path: 'script/vagrant-bootstrap', keep_color: true
11+
12+
if `uname`.include? "Linux"
13+
config.vm.synced_folder '.', '/vagrant', type: 'rsync'
14+
elsif `uname`.include? "Darwin"
15+
config.vm.synced_folder ".", "/home/vagrant/cwdg-website"
16+
end
17+
end

config.rb

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
###
2+
# Page options, layouts, aliases and proxies
3+
###
4+
5+
# Per-page layout changes:
6+
#
7+
# With no layout
8+
page '/*.xml', layout: false
9+
page '/*.json', layout: false
10+
page '/*.txt', layout: false
11+
12+
# With alternative layout
13+
# page "/path/to/file.html", layout: :otherlayout
14+
15+
# Proxy pages (http://middlemanapp.com/basics/dynamic-pages/)
16+
# proxy "/this-page-has-no-template.html", "/template-file.html", locals: {
17+
# which_fake_page: "Rendering a fake page with a local variable" }
18+
19+
# General configuration
20+
21+
# Reload the browser automatically whenever files change
22+
configure :development do
23+
activate :livereload
24+
end
25+
26+
###
27+
# Helpers
28+
###
29+
30+
# Methods defined in the helpers block are available in templates
31+
helpers do
32+
def mega_octicon(code)
33+
content_tag :span, '', :class => "mega-octicon octicon-#{code.to_s.dasherize}"
34+
end
35+
36+
def octicon(code)
37+
content_tag :span, '', :class => "octicon octicon-#{code.to_s.dasherize}"
38+
end
39+
40+
def geo_pattern_image(text, options={})
41+
GeoPattern.generate(text, options).to_data_uri
42+
end
43+
44+
def formatted_date(date)
45+
date.strftime("%A, %B #{date.day.ordinalize}, %Y")
46+
end
47+
end
48+
49+
# Build-specific configuration
50+
configure :build do
51+
# Minify CSS on build
52+
# activate :minify_css
53+
54+
# Minify Javascript on build
55+
# activate :minify_javascript
56+
end

config.ru

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require 'middleman-core/load_paths'
2+
::Middleman.setup_load_paths
3+
4+
require 'middleman-core'
5+
require 'middleman-core/rack'
6+
7+
require 'fileutils'
8+
FileUtils.mkdir('log') unless File.exist?('log')
9+
::Middleman::Logger.singleton("log/#{ENV['RACK_ENV']}.log")
10+
11+
app = ::Middleman::Application.new
12+
13+
run ::Middleman::Rack.new(app).to_app

data/resources.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
General:
2+
Pair Columbus: "http://paircolumbus.org/"
3+
Codecademy: "http://codecademy.com/"
4+
Code School: "http://codeschool.com/"
5+
Treehouse: "https://teamtreehouse.com/"
6+
7+
Git:
8+
Git website: "https://git-scm.com/"
9+
GitHub Desktop GUI Client: "https://desktop.github.com/"
10+
Try Git: "https://try.github.io/"
11+
Git-It: "https://github.com/paircolumbus/Git-It"
12+
git - the simple guide: "https://rogerdudler.github.io/git-guide/"
13+
14+
15+
HTML:
16+
Playground at Mozilla Thimble: "https://thimble.mozilla.org/"
17+
Tutorial on Codecademy: "https://www.codecademy.com/track/web/resume"
18+
Tutorial on HTML dog: "https://www.codecademy.com/track/web/resume"
19+
Documentation on MDN: "https://developer.mozilla.org/en-US/docs/Web/HTML"
20+
21+
CSS:
22+
Tutorial on HTML dog: "http://www.htmldog.com/guides/css/beginner/"
23+
General Goodness at CSS Tricks: "https://css-tricks.com/"
24+
Documentation on MDN: "https://developer.mozilla.org/en-US/docs/Web/CSS"
25+
26+
Ruby:
27+
Try Ruby: "http://tryruby.org/"
28+
Tutorial on Codecademy: "https://www.codecademy.com/tracks/ruby"
29+
Ruby Refresher: "https://github.com/paircolumbus/RubyRefresher"
30+
Ruby Koans: "http://rubykoans.com/"

0 commit comments

Comments
 (0)