This is repo for the design system documentation, aka design.va.gov. If you are looking for the repo that contains the CSS and Javascript for the components, see the formation package inside the veteran-facing-services-tools repo.
Min specs:
- Jekyll
- react
- webpack
Tested using node
v8.12.0 and npm
v6.4.1.
- Clone this repo
$ git clone https://github.com/department-of-veterans-affairs/vets-design-system-documentation.git
- Install dependencies
$ npm install
- Build and start the Jekyll server
$ npm run start
- Verify in browser: localhost:4000
To add content, you will need to look into /src
directory. This will be the source from which Jekyll builds the site.
- Components pages
- Content style guide pages
- Design pages
- Documentation pages
- Layout pages
- Design patterns pages
- Utilities pages
Read more in the wiki about how to add new pages to the design system documentation site, how to provide additional search keywords, etc.
Want add more to your content presentation than simple text? Use these html snippets in your markdown.
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.
- 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
-
Follow the setup instructions to get
veteran-facing-services-tools
running. -
Change
package.json
invets-design-system-documentation
to use a local version."@department-of-veterans-affairs/formation": "file:../veteran-facing-services-tools/packages/formation"
-
Make your changes in
veteran-facing-services-tools
and run$ npm run build
. -
Now, in
vets-design-system-documentation
, run the following:
$ npm install
$ npm run 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 $ npm run build
in vets-design-system-documentation
.
-
When you have finished your work in
veteran-facing-services-tools
, follow the instructions to submit a PR and publish to NPM. -
Once your update has been published to NPM, update
package.json
invets-design-system-documentation
from the local version to the new version number. -
Commit this along with any updates to the documentation site and submit a PR.