Skip to content

pau1m/patternlab-php

 
 

Repository files navigation

CRUK Pattern Library

Introduction

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.

Installation

  1. 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.
  2. Clone the CRUKOrg/patternlab-php repository from Github
  3. Run grunt watch to build the site.
  4. Set up a virtual host with the document root set to <WWW_ROOT>/patternlab-php/public

Codestyle

Naming conventions

About

Github pages for CRUK Pattern Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 47.1%
  • JavaScript 19.2%
  • PHP 18.3%
  • CSS 15.4%