Giter VIP home page Giter VIP logo

patternfly-org's Introduction

Build Status

patternfly-org

The PatternFly Org is the new source for the official documentation for PatternFly.

Development Setup - with Docker

The easiest way to get the site running locally for development purposes is via docker. Run the pair of commands:

npm run docker:build
npm run docker:run

The first time you run these commands will be quite slow, as a number of docker layers have to be downloaded, and a number of docker layers have to be built locally. Subsequent executions however will use cached layers and be much faster.

The docker environment supports "live reloading" of the site, so any source changes will trigger a jekyll incremental build and reload your browser.

Development Setup - Manually

Development setup requires nodejs and Ruby. If you do not already have nodejs, npm, and Ruby installed on your system, see https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager and https://www.ruby-lang.org/en/downloads.

Install Dependencies

Install the site dependencies using npm:

npm install

This will install all necessary packages into node_modules/. At this point, the gruntjs tasks are available for use such as starting a local development server or building the site from source.

Additionally you may need to install the grunt command line utility. To do this run:

npm install -g grunt-cli

The site is generated using Jekyll. After ensuring Ruby is installed and available, run:

bundle install

Live Reload Server

A local development server can be quickly fired up by using the Gruntjs server task:

grunt serve

This local server (i.e., http://localhost:9002) has the advantage of having livereload integration. Thus, if you start the Gruntjs server, any changes you make to .html or .less files will be automatically reloaded into your browser and the changes reflected almost immediately. This has the obvious benefit of not having to refresh your browser and still be able to see the changes as you add or remove them from your development files. Additionally, any changes made to Jekyll source files (source/) will trigger a Jekyll build.

Getting Started

Asssuming you've completed Development Setup, from a command line run:

  1. grunt serve
  2. Visit http://localhost:9002

patternfly-org's People

Contributors

dlabrecq avatar bleathem avatar rhamilto avatar patternfly-build avatar lhinson avatar andresgalante avatar priley86 avatar jgiardino avatar cardosogabriel avatar dtaylor113 avatar dabeng avatar amarie401 avatar dgutride avatar jeff-phillips-18 avatar adamj avatar mcarrano avatar zhutaoredhat avatar cliffpyles avatar catrobson avatar beanh66 avatar coreydaley avatar michpetrov avatar kybaker avatar matthewcarleton avatar mcoker avatar rhwood avatar rohoover avatar mwcz avatar andrralv avatar tadayosi avatar

Watchers

Tomer Cohen avatar James Cloos avatar

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.