GithubHelp home page GithubHelp logo

escarlson / oshwa-certification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oshwa/oshwa-certification

0.0 0.0 0.0 7.95 MB

JavaScript 22.35% Ruby 2.78% HTML 40.58% Shell 0.24% SCSS 34.05%

oshwa-certification's Introduction

Open Source Hardware Association Certification

Prerequisites

Development

  • Add your development url and baseurl in _config.yml.
  • Fetch and update bundled gems by running bundle install
  • Fetch and update npm packages by running npm install
  • Run the server with bundle exec jekyll serve. Your server will run at http://localhost:4000/DEV-BASEURL/
  • You can also use gulp for live reloading via browsersync. gulp will run at http://localhost:3000. The gulp build task will use the blank url and baseurl in _config_dev.yml.

Deployment

Add your production url and baseurl in _config.yml.

We use gulp-gh-pages to publish the site to Github Pages. The deploy task is defined in gulpfile.js, which pushes the compiled _site folder to the gh-pages branch.

To deploy your site, run gulp deploy

Troubleshooting Deployment

The gulp-gh-pages plugin stores a cache of the repo automatically in a .publish folder, which throws this error when you try to deploy after deleting your gh-pages branch.

Error in plugin 'gulp-gh-pages'
Message:
    Command failed: git pull  
Your configuration specifies to merge with the ref 'refs/heads/gh-pages'
from the remote, but no such ref was fetched.

Details:
    killed: false
    code: 1
    signal: null
    cmd: git pull  

To fix this, delete the .publish folder in the root of the directory and then run gulp deploy again.

See: https://github.com/shinnn/gulp-gh-pages/issues/109

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.