From fdcf1b2ae34cbf4f7f9ea72ab0630f3a726d26da Mon Sep 17 00:00:00 2001 From: Alex Sulim Date: Tue, 13 Jan 2015 23:44:30 +0100 Subject: [PATCH] Migrate to Jekyll --- .gitignore | 3 + Gemfile | 7 ++ Gemfile.lock | 127 ++++++++++++++++++++++++++ README.md | 12 ++- _config.yml | 12 +++ _includes/footer.html | 1 + _includes/head.html | 14 +++ _layouts/default.html | 15 +++ _posts/.gitkeep | 0 {stylesheets => css}/pygment_trac.css | 0 {stylesheets => css}/styles.css | 0 global_events.html | 75 --------------- global_events.md | 52 +++++++++++ index.html | 61 ------------- index.md | 32 +++++++ params.json | 1 - script/bootstrap | 21 +++++ script/server | 8 ++ speakers.html | 49 ---------- speakers.md | 18 ++++ 20 files changed, 321 insertions(+), 187 deletions(-) create mode 100644 .gitignore create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 _config.yml create mode 100644 _includes/footer.html create mode 100644 _includes/head.html create mode 100644 _layouts/default.html create mode 100644 _posts/.gitkeep rename {stylesheets => css}/pygment_trac.css (100%) rename {stylesheets => css}/styles.css (100%) delete mode 100644 global_events.html create mode 100644 global_events.md delete mode 100644 index.html create mode 100644 index.md delete mode 100644 params.json create mode 100755 script/bootstrap create mode 100755 script/server delete mode 100644 speakers.html create mode 100644 speakers.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3a4d97d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/.bundle +/_site +/.sass-cache diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..f85f962 --- /dev/null +++ b/Gemfile @@ -0,0 +1,7 @@ +source 'https://rubygems.org' + +require 'json' +require 'open-uri' +versions = JSON.parse(open('https://pages.github.com/versions.json').read) + +gem 'github-pages', versions['github-pages'] diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..2672585 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,127 @@ +GEM + remote: https://rubygems.org/ + specs: + RedCloth (4.2.9) + activesupport (4.2.0) + i18n (~> 0.7) + json (~> 1.7, >= 1.7.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + blankslate (2.1.2.4) + celluloid (0.16.0) + timers (~> 4.0.0) + classifier-reborn (2.0.3) + fast-stemmer (~> 1.0) + coffee-script (2.3.0) + coffee-script-source + execjs + coffee-script-source (1.8.0) + colorator (0.1) + execjs (2.2.2) + fast-stemmer (1.0.2) + ffi (1.9.6) + gemoji (2.1.0) + github-pages (31) + RedCloth (= 4.2.9) + github-pages-health-check (~> 0.2) + jekyll (= 2.4.0) + jekyll-coffeescript (= 1.0.1) + jekyll-mentions (= 0.2.1) + jekyll-redirect-from (= 0.6.2) + jekyll-sass-converter (= 1.2.0) + jekyll-sitemap (= 0.6.3) + jemoji (= 0.4.0) + kramdown (= 1.3.1) + liquid (= 2.6.1) + maruku (= 0.7.0) + mercenary (~> 0.3) + pygments.rb (= 0.6.0) + rdiscount (= 2.1.7) + redcarpet (= 3.1.2) + terminal-table (~> 1.4) + github-pages-health-check (0.2.1) + net-dns (~> 0.6) + public_suffix (~> 1.4) + hitimes (1.2.2) + html-pipeline (1.9.0) + activesupport (>= 2) + nokogiri (~> 1.4) + i18n (0.7.0) + jekyll (2.4.0) + classifier-reborn (~> 2.0) + colorator (~> 0.1) + jekyll-coffeescript (~> 1.0) + jekyll-gist (~> 1.0) + jekyll-paginate (~> 1.0) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 1.1) + kramdown (~> 1.3) + liquid (~> 2.6.1) + mercenary (~> 0.3.3) + pygments.rb (~> 0.6.0) + redcarpet (~> 3.1) + safe_yaml (~> 1.0) + toml (~> 0.1.0) + jekyll-coffeescript (1.0.1) + coffee-script (~> 2.2) + jekyll-gist (1.1.0) + jekyll-mentions (0.2.1) + html-pipeline (~> 1.9.0) + jekyll (~> 2.0) + jekyll-paginate (1.1.0) + jekyll-redirect-from (0.6.2) + jekyll (~> 2.0) + jekyll-sass-converter (1.2.0) + sass (~> 3.2) + jekyll-sitemap (0.6.3) + jekyll-watch (1.2.0) + listen (~> 2.7) + jemoji (0.4.0) + gemoji (~> 2.0) + html-pipeline (~> 1.9) + jekyll (~> 2.0) + json (1.8.2) + kramdown (1.3.1) + liquid (2.6.1) + listen (2.8.5) + celluloid (>= 0.15.2) + rb-fsevent (>= 0.9.3) + rb-inotify (>= 0.9) + maruku (0.7.0) + mercenary (0.3.5) + mini_portile (0.6.2) + minitest (5.5.1) + net-dns (0.8.0) + nokogiri (1.6.5) + mini_portile (~> 0.6.0) + parslet (1.5.0) + blankslate (~> 2.0) + posix-spawn (0.3.9) + public_suffix (1.4.6) + pygments.rb (0.6.0) + posix-spawn (~> 0.3.6) + yajl-ruby (~> 1.1.0) + rb-fsevent (0.9.4) + rb-inotify (0.9.5) + ffi (>= 0.5.0) + rdiscount (2.1.7) + redcarpet (3.1.2) + safe_yaml (1.0.4) + sass (3.4.9) + terminal-table (1.4.5) + thread_safe (0.3.4) + timers (4.0.1) + hitimes + toml (0.1.2) + parslet (~> 1.5.0) + tzinfo (1.2.2) + thread_safe (~> 0.1) + yajl-ruby (1.1.0) + +PLATFORMS + ruby + +DEPENDENCIES + github-pages (= 31) + json diff --git a/README.md b/README.md index 47482da..15a1f71 100644 --- a/README.md +++ b/README.md @@ -1 +1,11 @@ -# rustberlin.github.io +# Rust Berlin Community Pages + +Welcome to the Rust Berlin Community Pages. It is a resource currently managed and curated by the Rust Berlin User Group. We try to document the Rust community at large, so pull requests are welcome. + +## Contributing + +1. Fork it +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Commit your changes (`git commit -am 'Added some feature'`) +4. Push to the branch (`git push origin my-new-feature`) +5. Create new Pull Request diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..23293eb --- /dev/null +++ b/_config.yml @@ -0,0 +1,12 @@ +# Site settings +title: Rust Berlin Community Pages +email: "" +description: "" +baseurl: "" +url: "http://rustberlin.github.io" +twitter_username: rustberlin +github_username: rustberlin + +# Build settings +markdown: kramdown +exclude: [script, Gemfile, Gemfile.lock, README.md] diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..9faf2f5 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1 @@ + diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..75028ba --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,14 @@ + + + + + {% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %} + + + + + + + diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..effc3f5 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,15 @@ + + + {% include head.html %} + +
+
+

{{ page.title }}

+
+
+ {{ content }} +
+
+ {% include footer.html %} + + diff --git a/_posts/.gitkeep b/_posts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/stylesheets/pygment_trac.css b/css/pygment_trac.css similarity index 100% rename from stylesheets/pygment_trac.css rename to css/pygment_trac.css diff --git a/stylesheets/styles.css b/css/styles.css similarity index 100% rename from stylesheets/styles.css rename to css/styles.css diff --git a/global_events.html b/global_events.html deleted file mode 100644 index b30bd54..0000000 --- a/global_events.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - Rust Berlin Community Pages - - - - - - - -
-
-

Global Event List

- -
-
-

The Rust Community event list.

- -

- This is currently just a port of the Wiki page that we'd like to put under curation. -

- -

- In the future, we'd like to curate that list. If you have suggestions, please contact us or send a pull request. -

- -

Rust has a large and growing international community. There are a number of local user groups, meetups, and events spread around the world that are friendly to people with all skill levels. Check the Community Calendar for upcoming events.

-

International:

- -

Paris, France:

- -

Berlin, Germany:

- -

Skåne, Sweden:

- -

Brooklyn, NY, USA:

- -

Portland, OR, USA:

- -

San Francisco, CA, USA:

- - -

Here's a list of past meetups that haven't been active for the last few months. Why not get in contact with the organisers and get them started again?

- -

London, UK:

- -

Pittsburgh, PA, USA:

- - - - \ No newline at end of file diff --git a/global_events.md b/global_events.md new file mode 100644 index 0000000..c465746 --- /dev/null +++ b/global_events.md @@ -0,0 +1,52 @@ +--- +layout: default +title: Global Event List +--- + +## The Rust Community event list. + +*This is currently just a port of [the Wiki page](https://github.com/rust-lang/rust/wiki/Community-User-Groups,-Meetups,-and-Events) that we'd like to put under curation.* + + +*In the future, we'd like to curate that list. If you have suggestions, please [contact us](http://github.com/rustberlin) or [send a pull request](http://github.com/rustberlin/rustberlin.github.io).* + +Rust has a large and growing international community. There are a number of local user groups, meetups, and events spread around the world that are friendly to people with all skill levels. Check the [Community Calendar](https://www.google.com/calendar/embed?src=apd9vmbc22egenmtu5l6c5jbfc%40group.calendar.google.com) for upcoming events. + +International: + +* [Air Mozilla - Rust](https://air.mozilla.org/?tag=rust): Live and archived presentations from a variety of meetups. + +Paris, France: + +* [Rust Paris](http://www.meetup.com/Rust-Paris) + +Berlin, Germany: + +* [Rust Berlin](http://www.meetup.com/Rust-Berlin/) + +Skåne, Sweden: + +* [Rust Skåne](http://www.meetup.com/rust-skane/) + +Brooklyn, NY, USA: + +* [Brooklyn.rs](http://brooklyn.rs/) + +Portland, OR, USA: + +* [PDX-Rust](https://groups.google.com/forum/?#!forum/pdx-rust) + +San Francisco, CA, USA: + +* [Rust Bay Area](http://www.meetup.com/Rust-Bay-Area/): Monthly meetups that range from tutorials for new users to the innards of Rust and the Rust community libraries. Live streamed on [Air Mozilla](https://air.mozilla.org). +* [Rust Hacknights](http://www.meetup.com/SF-Rust-Hacknights/) + +Here's a list of past meetups that haven't been active for the last few months. Why not get in contact with the organisers and get them started again? + +London, UK: + +* [Rust London User Group](http://www.meetup.com/Rust-London-User-Group/) + +Pittsburgh, PA, USA: + +* [Pittsburgh Code Supply](http://www.meetup.com/Pittsburgh-Code-Supply/) diff --git a/index.html b/index.html deleted file mode 100644 index 1d77dd3..0000000 --- a/index.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - Rust Berlin Community Pages - - - - - - - -
-
-

Rust Berlin Community Pages

-
-
-

- Welcome the Rust Berlin Community Pages. -

- - -

This page is under construction.

- -

Welcome to the Rust Berlin Community Pages. It is a resource currently managed and curated by the Rust Berlin User Group. We try to document the Rust community at large, so pull requests are welcome.

- -

We meet weekly, at irregular days of the week, see our Meetup page for details.

- -

Searching for a meetup in your area? Check our global events list

- -

Searching for people willing to introduce Rust to your meetup or company? Check our global speakers list.

- -

Interested in running a user or learners group? Contact us on `#rust-community` on IRC or just send us a message on the Issue Tracker.

- -

- Getting started with Rust -

- -

- Be sure to check out the official website! -

- -
    -
  1. Install Rust on your machine: http://www.rust-lang.org/install.html
  2. -
  3. Work your way through the book and Rust by Example
  4. -
  5. Find a cool project to hack on. Here are a few suggestions: -
      -
    • Solve a problem on Project Euler
    • -
    • Ask someone at your local meetup if (s)he has a project and needs contributors (you'd be surprised how many do!)
    • -
    • Contribute to the ecosystem by writing your own library and submitting it to Cargo
    • -
    -
  6. -
- -
- - - diff --git a/index.md b/index.md new file mode 100644 index 0000000..842c0be --- /dev/null +++ b/index.md @@ -0,0 +1,32 @@ +--- +layout: default +title: Rust Berlin Community Pages +--- + +## Welcome the Rust Berlin Community Pages. + + + +This page is under construction. + +Welcome to the Rust Berlin Community Pages. It is a resource currently managed and curated by the Rust Berlin User Group. We try to document the Rust community at large, so pull requests are welcome. + +We meet weekly, at irregular days of the week, see our [Meetup](http://www.meetup.com/Rust-Berlin/) page for details. + +Searching for a meetup in your area? Check our [global events list]({{ "/global_events.html" | prepend: site.baseurl }}). + +Searching for people willing to introduce Rust to your meetup or company? Check our [global speakers list]({{ "/speakers.html" | prepend: site.baseurl }}). + +Interested in running a user or learners group? Contact us on `#rust-community` on IRC or just send us a message on the [Issue Tracker](http://github.com/RustBerlin/rustberlin.github.io/issues). + +## Getting started with Rust + +Be sure to check out the [official website](http://www.rust-lang.org/)! + +1. Install Rust on your machine: +2. Work your way through [the book](http://doc.rust-lang.org/book/) and [Rust by Example](http://rustbyexample.com/index.html) +3. Find a cool project to hack on. Here are a few suggestions: + * Solve a problem on Project Euler + * Ask someone at your local meetup if (s)he has a project and needs contributors (you'd be surprised how many do!) + * Contribute to the ecosystem by writing your own library and submitting it to [Cargo](https://crates.io) + diff --git a/params.json b/params.json deleted file mode 100644 index d92bac6..0000000 --- a/params.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Rust Berlin Home","tagline":"","body":"### Welcome to GitHub Pages.\r\nThis automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch:\r\n\r\n```\r\n$ cd your_repo_root/repo_name\r\n$ git fetch origin\r\n$ git checkout gh-pages\r\n```\r\n\r\nIf you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.\r\n\r\n### Designer Templates\r\nWe've crafted some handsome templates for you to use. Go ahead and continue to layouts to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved if it remained markdown format.\r\n\r\n### Rather Drive Stick?\r\nIf you prefer to not use the automatic generator, push a branch named `gh-pages` to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator written by our own Tom Preston-Werner. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.\r\n\r\n### Authors and Contributors\r\nYou can @mention a GitHub username to generate a link to their profile. The resulting `` element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (@defunkt), PJ Hyett (@pjhyett), and Tom Preston-Werner (@mojombo) founded GitHub.\r\n\r\n### Support or Contact\r\nHaving trouble with Pages? Check out the documentation at https://help.github.com/pages or contact support@github.com and we’ll help you sort it out.\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} \ No newline at end of file diff --git a/script/bootstrap b/script/bootstrap new file mode 100755 index 0000000..95e401a --- /dev/null +++ b/script/bootstrap @@ -0,0 +1,21 @@ +#!/usr/bin/env sh +# Ensure local dependencies are available +# +# Usage: script/bootstrap + +set -o errexit + +# Check for Bundler +if [ "$(gem query --installed --name-matches=bundler)" = 'false' ] +then + echo 'Bundler not found. Installing ...' + gem install bundler --no-document +fi + +# Check for missing gems +if ! bundle check > /dev/null 2>&1 +then + echo 'Missing gems detected. Installing ...' + number_of_cores=$(sysctl -n hw.ncpu) + bundle install --jobs "$number_of_cores" +fi diff --git a/script/server b/script/server new file mode 100755 index 0000000..eb4c855 --- /dev/null +++ b/script/server @@ -0,0 +1,8 @@ +#!/usr/bin/env sh +# Run local jekyll server +# +# Usage: script/server + +set -o errexit + +bundle exec jekyll server --watch diff --git a/speakers.html b/speakers.html deleted file mode 100644 index 07512a2..0000000 --- a/speakers.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - Rust Berlin Community Pages - - - - - - - -
-
-

Rust Speakers list

- -
-
-

The Rust Speaker list

- -

- Rust is a small community right now and finding people willing to speak can be hard. We try to collect a list of speaker. -

- -

- Please be aware that depending on location and the nature of the talk, they might ask for a reimbursement, especially if you are a commercial entity. - When contacting the speakers, please make clear if you intend to do so. -

- -

- You want to be on this list? Please contact us or send a pull request. -

- -
    -
  • - Name: Florian Gilcher
    - Location: Berlin
    - Topics: Rust in general, ffi-bindings
    - Interested in: Meetups, Introductions for companies
    - Contact: Twitter, Mail -
  • -
      - - - - \ No newline at end of file diff --git a/speakers.md b/speakers.md new file mode 100644 index 0000000..25526b3 --- /dev/null +++ b/speakers.md @@ -0,0 +1,18 @@ +--- +layout: default +title: Rust Speakers list +--- + +## The Rust Speaker list + +*Rust is a small community right now and finding people willing to speak can be hard. We try to collect a list of speaker.* + +*Please be aware that depending on location and the nature of the talk, they might ask for a reimbursement, especially if you are a commercial entity. When contacting the speakers, please make clear if you intend to do so.* + +*You want to be on this list? Please [contact us](http://github.com/rustberlin) or [send a pull request](http://github.com/rustberlin/rustberlin.github.io).* + +* Name: Florian Gilcher
      + Location: Berlin
      + Topics: Rust in general, ffi-bindings
      + Interested in: Meetups, Introductions for companies
      + Contact: [Twitter](http://twitter.com/Argorak), [Mail](mailto:florian.gilcher@asquera.de)