GithubHelp home page GithubHelp logo

isabella232 / federalist-content-guide Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 18f/federalist-content-guide

0.0 0.0 0.0 362 KB

DEPRECIATED/MOVED: A Content Guide for the Federalist Platform

Home Page: https://federalist-docs.18f.gov/pages/content-guide/

License: Other

Ruby 83.78% CSS 0.98% Shell 15.24%

federalist-content-guide's Introduction

Deprecation Notice This repo has been deprecated in favor of the more comprehensive federalist-docs repository where this content is duplicated

18F Guides Template

This is a skeleton repo containing the CFPB/DOCter-based Jekyll template for 18F Guides.

Generating the site/hosting locally

You will need Ruby ( > version 2.1.5 ). You may consider using a Ruby version manager such as rbenv or rvm to help ensure that Ruby version upgrades don't mean all your gems will need to be rebuilt.

On OS X, you can use Homebrew to install Ruby in /usr/local/bin, which may require you to update your $PATH environment variable:

$ brew update
$ brew install ruby

To create a new guide and serve it locally, where MY-NEW-GUIDE is the name of your new repository:

$ git clone [email protected]:18F/guides-template.git MY-NEW-GUIDE
$ cd MY-NEW-GUIDE
$ ./go init
$ ./go serve

This will check that your Ruby version is supported, install the Bundler gem if it is not yet installed, install all the gems needed by the template, and launch a running instance on http://localhost:4000/guides-template/. (Make sure to include the trailing slash! The built-in Jekyll webserver doesn't redirect to it.) That page contains further instructions on how to adapt the template to a new guide repository.

After going through these steps, run ./go to see a list of available commands. The serve command is the most common for routine development.

You'll need to create a new Github repository for your new guide. To do this, go to github.com/18f and click the "New Repository" button. Enter the title and description for your new guide and then click "Create Repository".

After the repository is created, you'll see the repo URL at the top. Copy this url by hitting the handy "Copy to Clipboard" button next to the text box.

Go back to the directory where you cloned the guides-template repository. We're going to change this repo to point to the one you just created (which is empty) and push the template to it.

git remote set-url origin https://github.com/18F/MY-NEW-GUIDE.git
git push origin 18f-pages

Now you can edit the template freely, and push up changes as you need.

Staging version

You can create an 18f-pages-staging branch and changes to that branch will be published to https://pages.18f.gov/staging/MY-NEW-GUIDE.

TODO(mbland): Finish

Public domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

federalist-content-guide's People

Contributors

jeremiak avatar mbland avatar wslack 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.