GithubHelp home page GithubHelp logo

alexxnica / web-design-standards-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uswds/uswds-site

0.0 0.0 0.0 22.57 MB

U.S. Web Design Standards website and documentation

Home Page: https://standards.usa.gov

License: Other

Ruby 3.97% HTML 63.36% JavaScript 11.92% CSS 20.75%

web-design-standards-docs's Introduction

U.S. Web Design Standards documentation

This repo includes code and documentation for the U.S. Web Design Standards website. For information on the Standards (components) themselves, please visit web-design-standards.

Note that this README includes steps to pull the latest version of the Standards into your local instance of the documentation.

Running locally

The U.S. Web Design Standards documentation is built using Jekyll for the file framework, gulp for task management, and the node module for the Standards.

Before you start

You will need to have the following installed on your machine before following the commands below:

  1. Ruby v2.2.2+, Installation guides
  2. Node v4.2.3+, Installation guides
  3. Bundler v1.12.3+, Installation guides

Building the documentation with gulp

Some parts of the documentation are built using gulp.

To work on the site, switch to your local copy of the repository in terminal then run the following command to install project dependencies:

npm install

Now that all of your dependencies are installed, you can run your local server by running the following command:

npm start

Go to 127.0.0.1:4000 in your browser โ€” you should be viewing a local instance of standards.usa.gov.

Here are a few other utility commands you may find useful:

  • npm run clean: Cleans out copied-over dependency assets.

  • npm run lint: Runs eslint and sass-lint against JavaScript and Sass files.

  • npm test: Runs npm run lint and can also be used to run any tests.

  • npm run watch: Runs a series of commands that watches for any changes in both the Standards node module and the root level asset folders in this repo.

Using the latest version of the uswds package

Sometimes you will want to use the latest version of the web-design-standards repo. Follow these steps to do so:

  1. Clone the latest version of the web-design-standards repo.
  2. Run npm install to install the dependencies required for the package in the web-design-standards directory.
  3. Run npm run build:package to create the built version of the Standards in the web-design-standards directory.
  4. Run npm link in the root level of the web-design-standards directory on your local machine.
  5. Run npm link uswds in the root level of the web-design-standards-docs directory on your local machine.
  6. Run npm run watch in both project directories to have changes automatically built and compiled on changes to any asset files.
  7. In a new terminal window, run npm start in the web-design-standards-docs directory to start the Jekyll server locally.

You are now using the latest version of the Standards via your cloned version on your local machine. To stop using this version, type npm unlink uswds from the root level of the web-design-standards-docs directory.

Deployment and previews

This site is deployed on Federalist, which automatically builds the site whenever commits are pushed to master.

Federalist also builds public previews for each branch pushed to GitHub. For instance, to see the latest build of the develop branch, visit:

https://federalist.fr.cloud.gov/preview/18f/web-design-standards-docs/develop/

Adding content to the "Updates" section

See the _posts directory for instructions on adding updates.

Contributing

Please read through our contributing guidelines. These guidelines are directions for opening issues and submitting pull requests, and they also detail the coding and design standards we follow.

web-design-standards-docs's People

Contributors

bradnunnally avatar bruffridge avatar donjo avatar fureigh avatar juliaelman avatar maya avatar mjankowski avatar nickheiner-usds avatar rogeruiz avatar shawnbot avatar tbolt avatar toolness avatar yowill avatar yozlet 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.