The Search.gov website serves as an educational resource and help manual for those using our service to power their site search. This website is based off of the Cloud.gov Pages Jekyll template.
This project strives to be compliant with requirements set by 21st Century IDEA Act. The standards require that a website or digital service:
Check your text against HemingwayApp or other plain language reviewer.
Save your changes to a new branch, and create a PR. Get the preview link from Cloud.gov Pages, and include this in the PR comment. Check lighthouse in your browser's Inspect panel to ensure no structural issues are present. If any, fix them.
Once everything is ready, set the Program Manager or other federal team member as Reviewer. At least one accepted review is required before merging.
Log in to your Github account.
Create a new branch with the naming convention yourgithubuser-change-you-are-making
.
Navigate to the page you want to edit. You'll see an editor interface where you can update content. You need to edit it in raw Markdown.
Note: some pages have HTML or complex markdown tables. Some examples of such pages are below:
Links will need to be added in markdown with the syntax below in order for our preview functionality to work.
[Link Text]({{ site.baseurl }}/folder1/folder2/index.html)
{{ site.baseurl }} adds the correct folder path for the Cloud.gov Pages preview URL to work.
Important Note - if you are adding image or PDF references to any page within admin-center
, use {{ site.url }}
instead of {{ site.baseurl }}
. This will add in "https://search.gov" to the URL, which means the resource will not appear until it exists in production. However, it will allow us to show that image within the preview modals in the Admin Center.
node
and ruby
$ npm install
$ bundle install
$ npm start
OR
$ bundle exec jekyll serve
To build but not serve the site, run npm run build
or bundle exec jekyll build
.
$ docker-compose run node npm install
$ docker-compose build
$ docker-compose up
To build but not serve the site, run:
docker-compose run ruby bundle exec jekyll build
.
Note that when built by Cloud.gov Pages, npm run federalist
is used instead of
npm run build
.
Open your web browser to localhost:4000 to view your site.
If you get an error like the below:
Assets: File to import not found or unreadable: uswds. Load paths: node_modules/uswds/dist/img node_modules/uswds/dist/js node_modules/uswds/dist/scss node_modules/netlify-cms/dist assets/css assets/fonts assets/images assets/videos assets/audios assets/components assets/javascript assets/video assets/audio assets/image assets/img assets/js _assets/css _assets/fonts _assets/images _assets/videos _assets/audios _assets/components _assets/javascript _assets/video _assets/audio _assets/image _assets/img _assets/js css fonts images videos audios components javascript audio video image img js .jekyll-cache/assets/proxied
This typically means a package in Node can’t be found. Run npm install
and try running bundle exec jekyll serve
again once done.
node
and ruby
$ npm test
OR
$ bundle exec htmlproofer _site; npx a11y '_site/**/*.html'
$ docker-compose run ruby bundle exec htmlproofer _site; npx a11y '_site/**/*.html'
_site/
folder. These files are auto-generated, and any change you make in the folder will be overwritten._includes/
folder, which render key components, like the menu, side navigation, and logos.--
tags. This is meta data that helps Jekyll build the site, but you can also use it to pass custom variables.See CONTRIBUTING for additional information.
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.