A repository for consolidating the 18F Guides and Methods
The CODEOWNERS file keeps track of who is in review & approver roles for content in this repository — if you’re not receiving a timely (within two weeks) review or notice the list is outdated, reach out to 18F’s Chief of Delivery for assistance. These reviewers will be automatically tagged appropriately when opening pull requests.
The re-platformed sites use 11ty. If you could run Jekyll, you should be able to run 11ty! There are two approaches to working with the guides: Local installation and Codespaces.
Ensure that you have the latest version of Node installed.
To run the site locally:
- Clone this repo
- From the repo directory, run:
npm install npm run dev
- Open http://localhost:8080
For more information on testing and repo configurations, read our in-depth development docs.
Codespaces allows you to set up a development environment easily and without dependencies on a local machine.
- From this repo, Click "Code" and then the "Codespaces" tab.
- Click the "+" icon, agree to the terms.
- You should then see the repo interface. At the bottom, check the branch you are currently viewing or create a new one.
- Give this a few minutes to warm up. At first, it will have a message "Welcome to Codespaces." If you wait a bit, you'll see it recognize the environment and start to install libraries for you.
- Once it finishes installing the libraries, click on the "terminal" and type
npm start
. - It will think for 10 - 20 seconds and then you should see a message pop up on the right side that the site is available. Click "open in the browser.
- Select a file from the file explorer that you want to edit. Make some changes! You should be able to refresh the preview tab to see them immediately. If you will be making changes to styles, you will need to restart the server via
npm run dev
for those to be reflected.
- When you’re happy with how things look, switch on the left-hand menu to the "sourcecode" view. It will show you any changes you have made. Click the file name (on the left) to view things you've removed/added to that file.
- This is a good time to create a new branch if you haven't already started on one! Click the three dots at the top of that menu, then "Branch" then "Create Branch". Give it a name like "design-update" or "cool-new-footer" and hit enter.
- You will need to stage each file that you want to be committed. Once that's done, it's time to commit and push! You can click "commit" and then "publish" or you can use the arrow to select "commit & push".
- On the lower right, it will ask you if you want to create a pull request. If it's too soon, don't click this. Otherwise, feel free!
If you are interested in contributing to this repository, you can read more at CONTRIBUTING.
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