Git Product home page Git Product logo

exhibit's Introduction

MIT License

Introducing exhibit

exhibit is a one-page template designed specifically for hosting on GitHub Pages and serving locally using Jekyll.

Prerequisites

exhibit requires the minimum versions of Node and Ruby below.

Run the commands below to determine which versions are currently installed.

# each command returns a version number
$ node --version
$ ruby -v

Install exhibit

Clone exhibit from the gh-pages branch on GitHub and go into its directory.

$ git clone -b gh-pages https://github.com/caleorourke/exhibit.git
$ cd exhibit

Install Grunt and dev dependencies for Node.

$ sudo npm install -g grunt-cli
$ sudo npm install

Install Jekyll and other Ruby runtime dependencies.

$ sudo grunt install

Start Using exhibit

exhibit leverages Grunt as a harness for installing Node and Ruby dependencies, in addition to serving the site locally.

Commands

Run any of these commands to initiate a task.

  • $ grunt build
  • $ grunt install
  • $ grunt serve
  • $ grunt test

$ grunt build

  1. Bundles and minifies *.less files to *.css using RECESS
  2. Bundles and minifies *.js files using UglifyJS

$ grunt install

  1. Updates RubyGems
  2. Runs gem install github-pages

$ grunt serve

  1. Bundles and minifies *.less files to *.css using RECESS
  2. Bundles and minifies *.js files using UglifyJS
  3. Builds the site locally in the _site directory
  4. Starts a local environment on http://localhost:4000
  5. Regenerates a new _site directory whenever a file is modified (except .less and .js assets)

Serve mode lasts forever. It will not timeout after a period of non-usage. In order to stop it, press CTRL+C.

$ grunt test

  1. Builds the website locally in the _site directory
  2. Spits out any errors found during the build process

Updating exhibit

Dependencies are updated often by their original authors. To install the most recent versions, run sudo npm update.

If this fails for whatever reason, run the following commands to delete the original node_modules directory and build a new one.

$ sudo rm -r node_modules
$ sudo npm install

License

Code and documentation licensed under the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.