GithubHelp home page GithubHelp logo

benkutil / roadmap-site Goto Github PK

View Code? Open in Web Editor NEW

This project forked from getroadmap/roadmap-site

0.0 0.0 1.0 47.74 MB

public site

Home Page: http://getroadmap.github.io/roadmap-site

License: Apache License 2.0

Ruby 0.18% HTML 5.27% CSS 20.61% JavaScript 73.93%

roadmap-site's Introduction

Roadmap Public Website

Please read the Contributing document for details on how to publish content to the site using Prose.io.

Table of Contents

  1. Quickstart
  2. Requirements
  3. Workflow

Quickstart

This quickstart assumes you’ve already installed all requirements.

git clone [email protected]:getroadmap/roadmap-site.git
cd roadmap-site
bundle install
npm install
bower install
npm start
visit [http://localhost:9000](http://localhost:9000) 

Requirements

Ruby and its tooling

Jekyll runs on Ruby. Install for Windows. Macs have ruby pre-installed, but you may want to sandbox your development versions of Ruby using rbenv or rvm

Once you’ve installed ruby, use the gem command line tool to install bundler.

The --no-rdoc --no-ri flags exclude documentation from download, to speed things up.

gem install --no-rdoc -no-ri bundler

Navigate to the project folder, and use bundler to install gem dependencies.

bundle install

Node and its tooling.

Node powers the command line build tools that the website uses.

Once you’ve installed Node, we need to install some global node tools using Node’s package manager, npm.

Global Packages

npm install -g gulp browser-sync bower

Project Packages

Navigate to the project folder and use npm to install dev dependencies, and bower to install front-end dependencies.

NPM installs the packages saved in the package.json file. Bower installs dependencies defined in the bower.json file.

npm install
bower install

Workflow

Once you’ve installed all dependencies, run npm start to kickoff the gulp task runner, which renders the pages using jekyll, builds styles, scripts, and images, serves everything on a localhost port, and watches for changes across your files.

Once you’re ready to publish changes for review, run::smile:

gulp build:gh-pages

This creates a dist folder with your rendered files.

Publishing to github pages

I use Github pages as a staging ground for reviewing changes.

The site makes use of Travis CI to build and “test” the develop branch the site.

To preview the site on Github pages, merge your branch into develop, and push that branch back to github. In about 5-15 minutes, https://getroadmap.github.io/roadmap-site/ will update with your changes.

Manual Publishing to Github Pages.

You can publish the site to Github Pages yourself by running the following commands (assuming a mac).

gulp build:gh-pages
cd gh-pages
git init
git remote add origin [email protected]:getroadmap/roadmap-site.git
git add ./
git commit -m 'my commit message'
git push -fu origin HEAD:gh-pages

Publishing Live

The site makes use of Travis CI to build and “test” the production version of the site.

To publish the site, merge your development branch into master, and push those changes back to github. In about 5-15 minutes, the site will update with your changes.

Manual Publishing

You can deploy manually using the following steps

gulp build:gh-pages
cd dist/
git init
git remote add origin [email protected]:getroadmap/roadmap-site.git
git add ./
git commit -m 'my commit message'
git push -fu origin HEAD:gh-pages

roadmap-site's People

Contributors

npc avatar tramsay2 avatar

Forkers

joe-bader

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.