Giter Club home page Giter Club logo

vets-design-system-documentation's Introduction

Vets Design System Documentation

This repo is for VA Design System documentation, aka design.va.gov. If you are looking for the repo that contains the design system components, see the component-library. Additionally, the Formation package inside the veteran-facing-services-tools repo contains sitewide VA.gov base styles and utility classes.

Min specs:

To run locally

Tested using node v18.19.0 and yarn v1.22.19.

  1. Clone this repo

    $ git clone https://github.com/department-of-veterans-affairs/vets-design-system-documentation.git
    
  2. Install dependencies

    $ yarn install
    
  3. Install Jekyll

    NOTE: This repo works with Ruby version 3.0.2.

  4. Install Ruby gems

    $ bundle install
    
  5. Build and start the Jekyll server

    $ yarn start
    
  6. Verify in browser: localhost:4000

Adding content to the documentation site

To add content, you will need to look into /src directory. This will be the source from which Jekyll builds the site.

How to add new pages, improve presentation, etc.

Read the wiki to learn how to add new pages to design.va.gov, improve local search, add images, etc.

Testing updates to the Formation codebase on this site

In order to test new updates to Formation, you will need to work in two different repositories: the repository for this site and veteran-facing-services-tools. For the steps below, make sure you are doing your work in a new branch for both repos.

  1. Clone the veteran-facing-services-tools repo at the same level as the design system documentation site.

    my-projects-folder
    |   ├── vets-design-system-documentation
    |   ├── veteran-facing-services-tools
    
  2. Follow the setup instructions to get veteran-facing-services-tools running.

  3. Change package.json in vets-design-system-documentation to use a local version. "@department-of-veterans-affairs/formation": "file:../veteran-facing-services-tools/packages/formation"

  4. Make your changes in veteran-facing-services-tools and run $ npm run build.

  5. Now, in vets-design-system-documentation, run the following:

    $ yarn
    $ yarn start
    

While vets-design-system-documentation is running and make further updates to veteran-facing-services-tools, you will need to run $ npm run build in that repo, then $ yarn build in vets-design-system-documentation.

  1. When you have finished your work in veteran-facing-services-tools, follow the instructions to submit a PR and publish to NPM.

  2. Once your update has been published to NPM, update package.json in vets-design-system-documentation from the local version to the new version number.

  3. Commit this along with any updates to the documentation site and submit a PR.

Deploying

Merges into main will automatically be deployed to dev-design.va.gov. Production is automatically deployed every weekday at 2pm. Deploys are executed by creating a release of vets-website via Jenkins. You can track the deployment in the Slack channel, #design-system.

Additional Testing

This project is tested with BrowserStack.

vets-design-system-documentation's People

Contributors

humancompanion-usds avatar jaredcunha-usds avatar crystabelreiter avatar gnatalieh avatar jenniferlee-dsva avatar andresriveratoro avatar megzehn avatar pdavies88 avatar jamigibbs avatar kevinmhoffmanusds avatar bkjohnson avatar peggygannon avatar caw310 avatar sshein avatar taylojill avatar andaleliz avatar danbrady avatar rtwell avatar andrew565 avatar dependabot[bot] avatar chelsealevinson avatar allison0034 avatar micahchiang avatar powellkerry avatar omgitsbillryan avatar bethpottsvadepo avatar harshil1793 avatar daniellethierryusdsva avatar it-harrison avatar rmessina1010 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.