Skip to content

vistaprint/SkinnyJSSite

Repository files navigation

skinny.js website

This website is built using Jekyll, and produces all static content. It is hosted at http://vistaprint.github.io/SkinnyJS.

Documentation for individual skinny.js libraries are in markdown, in /site/*.md.

Get skinny.js

  • Clone a working directory for skinny.js
  • Ideally, place it next to the working directory for this repository

Building the site

To build the site:

  • Make edits
  • Run grunt
  • Test the site in site/_site

Deploying the site

To deploy, use the platform specific deployment script, and pass the path to the skinny.js repo:

  • On Mac/*nix: ./publish-site.sh ../SkinnyJS
  • On Windows: ./publish-site.ps1 ../SkinnyJS

Installation of dependencies

Note: Jekyll uses Pygments for syntax coloring. Pygments requires Python and Ruby, and can be installed via easy_install.

gem uninstall pygments.rb --version "=0.5.2"
gem install pygments.rb --version "=0.5.0"
gem uninstall jekyll
gem install jekyll --version "=1.4.2"
  • Install node:

  • http://nodejs.org/download/

  • Install grunt

  • You can install grunt by using npm, run the following command:

  • npm install -g grunt-cli

  • Install NPM packages

  • npm install

Adding a new module

To add a new library/module to skinny.js, do the following:

  • Add a documentation file: site/*.md (i.e. jquery.breakpoints.md)
  • Add to the site menu: site/_layouts/main-outer.html (remember to add in alphabetical order)
  • Add to the homepage: site/index.html
  • Add to download builder: site/javascripts/dependency-tree.js

Notes

  • Debugging:

  • Use node-inspector

  • node-inspector --web-port=8081

  • Debug grunt:

  • Run node --debug-brk C:\Users\{username}\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt

Releases

No releases published

Packages

No packages published