-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Trung Lê
committed
Dec 10, 2014
0 parents
commit 996ad94
Showing
38 changed files
with
1,052 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.sass-cache/* | ||
.rvmrc | ||
.DS_Store |
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,2 @@ | ||
ruby.org.vn | ||
|
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,14 @@ | ||
# A sample Gemfile | ||
source "http://rubygems.org" | ||
|
||
gem "haml", "~> 4.0.3" | ||
gem "sass", "~> 3.2.12" | ||
gem "compass", "~> 0.12.2" | ||
gem "compass-normalize" | ||
gem "tilt", "~> 1.4.1" | ||
gem "rake" | ||
gem "maruku" | ||
|
||
gem "guard" | ||
gem "guard-shell" | ||
gem "guard-livereload" |
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,71 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
celluloid (0.15.2) | ||
timers (~> 1.1.0) | ||
chunky_png (1.2.8) | ||
coderay (1.0.9) | ||
compass (0.12.2) | ||
chunky_png (~> 1.2) | ||
fssm (>= 0.2.7) | ||
sass (~> 3.1) | ||
compass-normalize (1.4.3) | ||
compass (>= 0.12.0) | ||
em-websocket (0.5.0) | ||
eventmachine (>= 0.12.9) | ||
http_parser.rb (~> 0.5.3) | ||
eventmachine (1.0.3) | ||
ffi (1.9.0) | ||
formatador (0.2.4) | ||
fssm (0.2.10) | ||
guard (2.0.5) | ||
formatador (>= 0.2.4) | ||
listen (~> 2.0) | ||
lumberjack (~> 1.0) | ||
pry (>= 0.9.12) | ||
thor (>= 0.18.1) | ||
guard-livereload (2.0.0) | ||
em-websocket (~> 0.5) | ||
guard (~> 2.0) | ||
multi_json (~> 1.8) | ||
guard-shell (0.5.1) | ||
guard (>= 1.1.0) | ||
haml (4.0.3) | ||
tilt | ||
http_parser.rb (0.5.3) | ||
listen (2.1.0) | ||
celluloid (>= 0.15.2) | ||
rb-fsevent (>= 0.9.3) | ||
rb-inotify (>= 0.9) | ||
lumberjack (1.0.4) | ||
maruku (0.7.0) | ||
method_source (0.8.2) | ||
multi_json (1.8.1) | ||
pry (0.9.12.2) | ||
coderay (~> 1.0.5) | ||
method_source (~> 0.8) | ||
slop (~> 3.4) | ||
rake (10.1.0) | ||
rb-fsevent (0.9.3) | ||
rb-inotify (0.9.2) | ||
ffi (>= 0.5.0) | ||
sass (3.2.12) | ||
slop (3.4.6) | ||
thor (0.18.1) | ||
tilt (1.4.1) | ||
timers (1.1.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
compass (~> 0.12.2) | ||
compass-normalize | ||
guard | ||
guard-livereload | ||
guard-shell | ||
haml (~> 4.0.3) | ||
maruku | ||
rake | ||
sass (~> 3.2.12) | ||
tilt (~> 1.4.1) |
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,14 @@ | ||
guard :shell do | ||
#guard 'rake', :task => 'build:stylesheets' do | ||
watch(%r{^stylesheets/.+\.scss$}) { `rake build:stylesheets` } | ||
end | ||
|
||
guard :shell do | ||
#guard 'rake', :task => 'build:pages' do | ||
watch(%r{^layout.html.haml$}) { `rake build:pages` } | ||
watch(%r{^pages/.+\.html\.}) { `rake build:pages` } | ||
end | ||
|
||
guard 'livereload' do | ||
watch(%r{^site(/.+)}) { |path| path } | ||
end |
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,98 @@ | ||
# ruby.org.vn | ||
|
||
The `ruby.org.vn` site is a static site hosted with Github Pages. | ||
|
||
* Content is in `/pages` as Haml templates | ||
* Styles are `/stylesheets`, compiled using compass | ||
|
||
## How to Contribute | ||
|
||
Want to help? Sweet! We like help. Pull requests are very welcome. Here's how | ||
to get started: | ||
|
||
1. Fork the repository | ||
2. Make some changes (see _Build Instructions_ below) | ||
3. Push your changes to your fork | ||
4. Open a pull request | ||
|
||
When you open a pull request, we'd appreciate if you follow some basic | ||
guidelines: | ||
|
||
* Describe what you're changing, and more importantly _why_ you're changing it | ||
* Keep the pull request focused on one thing - if you make two different, | ||
unrelated changes, please separate them into two pull requests | ||
* Some pull requests won't get merged. All changes are reviewed by a committee | ||
member, and sometimes changes don't fit with the organisation's vision. | ||
|
||
## Build Instructions | ||
|
||
Building and deploying the site is done via rake tasks: | ||
|
||
* `rake build:all` (aliased as default) compiles the site into `/site` | ||
* `rake deploy` copies the _committed_ versions of all files in `/site` to the | ||
root of the `gh-pages` branch | ||
|
||
There's a `Guardfile`, which makes development convenient - just run `bundle | ||
exec guard` to have it watch the pages and stylesheets, automatically | ||
rebuilding the site any time you save a file. | ||
|
||
As a contributor, your workflow would look something like this: | ||
|
||
``` | ||
# Assuming `upstream` is the name of the git remote for the official | ||
# ruby.org.vn repository, and `origin` is your own fork. | ||
# Make sure you're building on the most up-to-date version | ||
git fetch upstream && git merge upstream/master | ||
# Do some edits | ||
# ... | ||
# If you're not running guard, build the site | ||
rake build:all | ||
# Once you're happy, commit both the source files and the output: | ||
git add pages/my-awesome-page.html.haml | ||
git add site/my-awesome-page.html | ||
git commit -m "Add an awesome page" | ||
# Push your changes | ||
git push origin master | ||
``` | ||
|
||
## Deploying (for maintainers) | ||
|
||
_NOTE_ make sure to have a local branch `gh-pages` tracking `origin/gh-pages`. | ||
This can be accomplished by `git checkout gh-pages`, which on recent versions | ||
of git will automatically setup a tracking branch if there's a remote branch | ||
of the same name. | ||
|
||
As a maintainer, your deploy workflow will look something like this: | ||
|
||
``` | ||
rake build:all | ||
# Check for any changes in 'site'. If there are, read over them, and commit. | ||
git add site | ||
git commit -m "Committing changes to the generated site" | ||
git push origin master | ||
# Update the gh-pages branch and push to github | ||
rake deploy | ||
``` | ||
|
||
If there were changes in `site`, someone forgot to commit the generated output | ||
from a change they made, or they changed the output by hand. This is generally | ||
not a good situation, but mistakes happen... | ||
|
||
|
||
## Licence | ||
|
||
<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/3.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Ruby Vietnam website</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://ruby.org.vn" property="cc:attributionName" rel="cc:attributionURL">Ruby Vietnam</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/">Creative Commons Attribution-NonCommercial 3.0 Unported License</a>.<br /> | ||
|
||
## Attribution | ||
|
||
Based on Ruby Australia static site at <a href="https://github.com/rubyaustralia/ruby.org.au">github.com/rubyaustralia/ruby.org.au</a>. | ||
|
||
## Content licence | ||
|
||
Content is Copyright 2014 by Ruby Vietnam, All rights reserved. | ||
|
||
## Logotype licence | ||
|
||
"Ruby Vietnam" 'Gem Dialogue' and Typographic logo are Copyright 2014 by Ruby Vietnam, All rights reserved. |
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,59 @@ | ||
require "rubygems" | ||
require "bundler/setup" | ||
|
||
require "tilt" | ||
|
||
task :default => 'build:all' | ||
|
||
namespace :build do | ||
desc "Build the stylesheets, outputting to ./site/css" | ||
task :stylesheets do | ||
sh 'compass compile -c compass-config.rb' | ||
end | ||
|
||
desc "Build the javascripts, outputting to ./site/js" | ||
task :javascripts do | ||
sh 'mkdir -p ./site/js' | ||
sh 'cp -r javascripts/*.js ./site/js' | ||
end | ||
|
||
desc "Copy the static images to ./site/images" | ||
task :images do | ||
sh 'mkdir -p ./site/images' | ||
sh 'cp -r images/* ./site/images' | ||
end | ||
|
||
desc "Setup the CNAME" | ||
task :cname do | ||
sh 'cp CNAME ./site/' | ||
end | ||
|
||
desc "Build the page templates, outputting to ./site" | ||
task :pages do | ||
layout = Tilt.new('layout.html.haml') | ||
pages = Dir.glob("pages/**/*.html.*") | ||
p pages | ||
pages.each do |template| | ||
output_path = template.gsub(/^pages/, 'site').gsub(File.extname(template), '') | ||
puts "Rendering #{template}" | ||
puts " to #{output_path}" | ||
FileUtils.mkdir_p(File.expand_path(File.dirname(output_path))) | ||
File.open(output_path, "w") do |f| | ||
f << layout.render do | ||
Tilt.new(template).render | ||
end | ||
end | ||
end | ||
end | ||
|
||
desc "Build all the dynamic bits of the site" | ||
task :all => [:stylesheets, :javascripts, :pages, :cname, :images] | ||
end | ||
|
||
desc "Commit the latest version of the site to the gh-pages branch" | ||
task :deploy do | ||
site = `git ls-tree -d HEAD site | awk '{print $3}'`.strip | ||
new_commit = `echo 'Update site' | git commit-tree #{site} -p refs/heads/gh-pages`.strip | ||
`git update-ref refs/heads/gh-pages #{new_commit}` | ||
`git push origin gh-pages -f` | ||
end |
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,25 @@ | ||
# Require any additional compass plugins here. | ||
require 'compass-normalize' | ||
|
||
# Set this to the root of your project when deployed: | ||
http_path = "/" | ||
css_dir = "site/css" | ||
sass_dir = "stylesheets" | ||
images_dir = "images" | ||
javascripts_dir = "javascripts" | ||
|
||
# You can select your preferred output style here (can be overridden via the command line): | ||
output_style = :compressed | ||
|
||
# To enable relative paths to assets via compass helper functions. Uncomment: | ||
# relative_assets = true | ||
|
||
# To disable debugging comments that display the original location of your selectors. Uncomment: | ||
# line_comments = false | ||
|
||
|
||
# If you prefer the indented syntax, you might want to regenerate this | ||
# project again passing --syntax sass, or you can uncomment this: | ||
# preferred_syntax = :sass | ||
# and then run: | ||
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,44 @@ | ||
!!! 5 | ||
%html{lang: 'vi'} | ||
%head | ||
%meta{charset: 'utf-8'} | ||
%meta{"http-equiv" => "X-UA-Compatible", content: "IE=edge,chrome=1"} | ||
%title Ruby Vietnam | ||
%meta{name: 'description', content: 'Ruby Vietnam'} | ||
%meta{name: 'keywords', content: 'ruby, rails, vietnam, saigon, hanoi, ho chi minh city, ha noi, programming, meetup, group, user group, conferences, events'} | ||
%meta{name: 'viewport', content: 'width=device-width'} | ||
%link{rel: 'stylesheet', href: '/css/screen.css'} | ||
%script{src: '/js/modernizr.min.js'} | ||
%body | ||
%header{role: 'banner'} | ||
%a{href: '/'} | ||
%span.logo Ruby Vietnam | ||
%aside#meta | ||
%nav{role: 'navigation'} | ||
%h3 Tổ chức | ||
%ul | ||
%li | ||
%a{href: '/committee-members.html'} Ban điều hành | ||
%li | ||
%a{href: '/join-ruby-vietnam.html'} Tham gia Ruby Vietnam | ||
%li | ||
%a{href: '/code-of-conduct.html'} Điều luật hoạt động | ||
%h3 Cộng đồng | ||
%ul | ||
%li | ||
%a{href: '/projects.html'} Các dự án | ||
%li | ||
%a{href: 'http://meetup.ruby.org.vn'} Meetups | ||
%li | ||
%a{href: 'http://chat.ruby.org.vn'} Chat Room | ||
%li | ||
%a{href: 'http://discussion.ruby-vienam.org'} Thảo luận / Diễn đàn | ||
%li | ||
%a{href: 'http://jobs.ruby.org.vn'} Đăng / tìm việc | ||
%section{role: 'main'} | ||
= yield | ||
%footer{role: 'contentinfo'} | ||
%small © 2014 Ruby Vietnam |
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,25 @@ | ||
# Ruby Vietnam Code of Conduct | ||
|
||
## Matz is nice, and we are nice. | ||
|
||
In the same way that Matz has written Ruby with a focus on developer happiness, we are focused on community happiness. The Vietnamese Ruby community is full of wonderful people from a diverse range of backgrounds, and we want to ensure it remains a welcoming and safe environment to all who wish to be a part of it. | ||
|
||
Whenever we come together as a community, our shared spaces are opportunities to showcase the best of what we can be. We are there to support our peers - to build each other up, to accept each other for who they are, and to encourage each other to become the people they want to be. | ||
|
||
With that in mind, if you are present at any Ruby Vietnam event, whether as an attendee, organiser, sponsor or speaker, we take it as given that you agree to follow this code of conduct: | ||
|
||
The Ruby Vietnam organisation is dedicated to providing harassment-free experiences at events and conferences for everyone, regardless of gender, sexual orientation, disability, physical appearance, body size, race, religion, or age. We do not tolerate harassment in any form. | ||
|
||
All communication should be appropriate for a professional audience including people of many different backgrounds. Sexual language and imagery is not appropriate in any circumstance. | ||
|
||
Be kind to others. Do not insult or put down other members of the community. Be respectful towards others. Remember that harassment and sexist, racist, or exclusionary jokes are not appropriate for events supported by Ruby Vietnam. | ||
|
||
Anyone violating these rules at events may be asked to leave the event without a refund at the sole discretion of the organisers. | ||
|
||
If you or someone else is subject to harassment, or you have a concern, please contact the event organisers (who will introduce themselves at the beginning of the event), or member of [the Ruby Vietnam committee](/committee-members.html). | ||
|
||
The Ruby community is a welcoming and friendly place – thank you for being a part of it. | ||
|
||
- - - | ||
|
||
This Code of Conduct has learned and built upon the efforts from many others, both within the Ruby community and more widely. Thank you to all who provided inspiration and feedback. |
Oops, something went wrong.