ashwinforga / ashwinforgeorgia.com

Other
3 stars 4 forks source link

Dependabot Status

cloud.gov Pages + U.S. Web Design System + Gatsby

This site is developed using the U.S. Web Design System v 2.0 and is focused on providing developers a starter kit and reference implementation for cloud.gov Pages websites. You can view the preview deployed on cloud.gov Pages.

This code uses the Gatsby framework and built with Javascript and React.

This project strives to be compliant with requirements set by 21st Century IDEA Act. The standards require that a website or digital service:

Features

USWDS v2 javascript, styles, images, and fonts are included by default. Styles can be customized with either SASS or CSS in src/styles/index.scss.

✅ Publish blog posts using Markdown. Any markdown files in the src/blog-posts directory will be turned into pages at /blog/<path> in the application using the src/templates/blog-post.js template, where <path> is specified in the frontmatter of the file. An index of all posts will be displayed at /blog using the src/templates/blog.js template.

✅ Publish documentation pages using Markdown. Any markdown files in the src/documentation-pages directory will be turned into pages at /<path> in the application using the src/templates/documentation-page.js template, where <path> is specified in the frontmatter of the file. Side navigation for documentation pages can be controlled by setting sidenav: true or sidenav: false to your page front matter.

✅ Publish custom pages using React. Any javascript files in the src/pages directory will be turned into pages at /<filename>.html, where <filename> is the actualy name of the file.

✅ Customize SEO information for each page by adding the src/components/seo.js component to any page or template and providing the desired information. Ex. Home page.

Search.gov integration - Once you have registered and configured Search.gov for your site by following these instructions, add your "affiliate" and "access key" to gatsby-config.js. Ex.

searchgov: {

  // You should not change this.
  endpoint: 'https://search.usa.gov',

  // replace this with your search.gov account
  affiliate: 'affiliate-agency-account',

  // replace this with your search.gov account access key
  access_key: 'affiliate-agency-account-access-key',
}

The logic for using Search.gov can be found in the src/components/search-form.js component and supports sending the user to Search.gov to view the results.

Digital Analytics Program (DAP) integration - Once you have registered your site with DAP add your "agency" and optionally, subagency to gatsby-config.js and uncomment the appropriate lines. Ex.

dap: {
    // agency: 'your-agency',

    // Optional
    // subagency: 'your-subagency',
},

Google Analytics integration - If you have a Google Analytics account to use, add your "ua" to gatsby-config.js and uncomment the appropriate lines. Ex.

ga: {
    // ua: 'your-ua',
},

✅ Out-of-the-box performant caching strategy following Gatsby recommended practices via pages.json. See cloud.gov Pages Documentation for more information on pages.json.

Getting Started

Easy mode

From cloud.gov Pages

This will create a copy of this repo in a Github repository of your choice and add it to your cloud.gov Pages dashboard.

From Github

This will create a copy of this repo in a Github repository of your choice but you will need to add it your cloud.gov Pages dashboard.

Installation for development

$ git clone https://github.com/cloud-gov/pages-uswds-gatsby
$ cd pages-uswds-gatsby

Running the application

With locally installed node

$ npm install
$ npm run develop

To build but not serve the site, run npm run build.

With Docker

$ docker-compose run node npm install
$ docker-compose up

To build but not serve the site, run:

docker-compose run node npm run build

.

Note that when built by cloud.gov Pages, npm run pages is used instead of npm run build.

Open your web browser to localhost:8000 to view your site.

Note: You'll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

Note that when built by cloud.gov Pages, npm run pages is used instead of the build script.

Technologies you should be familiarize yourself with

🎓 Learning Gatsby

Looking for more guidance? Full documentation for Gatsby lives on the website. Here are some places to start:

Things to Note

Contributing

See CONTRIBUTING for additional information.

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.

notes

npm install npm run develop npm run deploy

: North Fulton, South Forsyth, and Northwest Gwinnett.

But when you give a banquet, invite the poor, the crippled, the lame, the blind, 14 and you will be blessed. Although they cannot repay you, you will be repaid at the resurrection of the righteous.”