Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

bih/careers.mlh.io

Repository files navigation

MLH Site Boilerplate

This is the boilerplate that Major League Hacking (MLH) uses in the development of static websites. It combines Jekyll with Gulp to speed up common development tasks.

Setup

Before you start, make sure you have npm installed and the relevant version of Ruby (probably using rvm).

You will also need gulp and bundler eventually, so lets get those now too.

$ npm install -g gulp
$ gem install bundler

Now let's install the development dependencies by running the NPM installer and bundler:

$ npm install
$ bundle install

Note: These steps may require the use of sudo depending on your environment.

Developing

To launch the development server, just run gulp:

$ gulp

Gulp Commands

An overview of the Gulp commands available:

gulp build

Builds the site into the _site directory.

  • Cleans any precompiled assets in _site
  • Lints and compiles SASS
  • Lints and compiles Javascript
  • Optimizes images
  • Compiles the Jekyll site

gulp serve

Spins up the Jekyll server for local development

  • Watch the js/, _sass/, and img/ directories for changes and run related tasks
  • Spin up the Jeykll server with --watch and --incremental enabled
  • Watch the _site/ directory for changes and sync to browser

Structure

├── .gitignore                  # Defines which files Git should diregard
├── .ruby-version               # Defines the required version of Ruby
├── .scss-lint.yml              # Rules for linting SASS files
├── Gemfile                     # Ruby Dependencies
├── Gemfile.lock                # Ruby Dependencies with explicit versions
├── README.md                   # How to use this project
├── _config.yml                 # Jekyll configuration
├── _includes/                  # Jekyll HTML partials
    └── head.html               # HTML for the <head> tag
├── _layouts/                   # Jekyll HTML layouts
    └── default.html            # The default template for HTML pages
├── _sass/                      # Stylesheets directory
    ├── _base.scss              # Base styles
    ├── _layout.scss            # Grid system
    ├── _typography.scss        # Typography tyles
    ├── _util.scss              # SASS helper functions
    ├── lib/                    # External CSS libraries
        ├── animate.mn.scss     # CSS animations
        └── reset.min.scss      # CSS reset
    └── main.scss               # Variable definitions and list of SASS partials to compile
├── gulpfile.js                 # Defines gulp tasks for development
├── img/                        # Images and SVGs
├── index.html                  # The default HTML page
├── js/                         # Javascript libraries and scripts
    ├── app.js                  # The default Javascript file
    ├── app.min.js              # The minified default Javascript file
    └── lib/                    # External JS libraries
        └── jquery-2.2.2.min.js # jQuery
└── package.json                # Javascript Dependencies

Special Thanks

Big shout out to the Minimill Project Template for inspiring this project.

About

The Major League Hacking Careers page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors