The CRUK Pattern Library is a fork of Dave Olsen's PatternLab static site generator (see ABOUT_PATTERN_LAB.md for David's original README file.), which was designed to document HTML design patterns and styles in code. The CRUK fork modifies PatternLab to add views of the Sass code in addition to the HTML markup.
- Prerequisites for running the pattern library locally are: a. PHP 5.3 or better: PatternLab is a PHP-based static site generator. c. Rubygems, Sass, Compass: The Sass source files use Compass and Sass gems to generate the site's CSS. b. Node.js (including npm), Grunt: Grunt tasks are used to run the Sass compilation, using grunt-contrib-compass, and the PatternLab build, using grunt-contrib-shell.
- Clone the CRUKOrg/patternlab-php repository from Github
- Run
grunt watchto build the site. - Set up a virtual host with the document root set to <WWW_ROOT>/patternlab-php/public