Skip to content
This repository has been archived by the owner on May 22, 2018. It is now read-only.

texastribune/styleguides

Repository files navigation

Texas Tribune Style Guides

This is the project repo for the Texas Tribune style guides, living documents of Texas Tribune sites and platforms, including TribTalk, the Texas Tribune festival, and more. Check out the style guides on GitHub pages here.

Getting Started

To add to the style guides, clone down the project repo.

You'll need the Ruby gem bundler. To install the bundler, run:

gem install bundler

Install the necessary gems for the style guides from the Gemfile by running:

bundle install

Grunt is used to watch and compile CSS files from Sass. Grunt requires that Node/npm be installed. Before installing Grunt, be sure the latest version of Node is installed. Using Homebrew is the recommended option here:

brew install node

To install Grunt, run:

npm install -g grunt-cli

Once Grunt is installed, install the necessary Node dependencies by running:

npm install

Running Grunt Tasks

Use Grunt to compile the Sass into CSS by running:

grunt build

Use Grunt while developing to compile Sass into CSS, start a local server on port 4000 and then watch by running:

grunt dev

By default, compile Sass into CSS and compile the jekyll site by running:

grunt

Contributing and deploying

Content for the project is stored on the gh-pages branch.

To contribute to style guides, create a new branch, make your changes there, and submit a PR. When the PR is approved, merge it into the gh-pages branch. Then push the updated gh-pages branch to GitHub, and the new content will be deployed.

Adding a new style guide

To add a new style guide to the project, add the Sass for the project to the _sass directory. Each style guide's Sass should go into its own appropriately named directory. Then, add a new HTML page to the root directory, following the established naming convention. Update the Gruntfile to build Sass for and watch the new project's style guide.

Additional Resources

The Jekyll docs provide a helpful overview on Jekyll and deploying GitHub pages.

About

This is a GitHub page for style guides, documents of the site. (out of date)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages