A TTS-flavored Copier template for creating and maintaining Astro applications
This template supports scaffolding and maintaining Astro-based federal applications, configured to the local tastes of TTS.
It's suitable for standalone use or composition with other GSA-TTS/hello-* templates.
- Multiple Astro templates:
- astro-plain: Minimal Astro starter
- astro-uswds: Styled with the U.S. Web Design System v3.0 (USWDS), amenable to the 21st Century IDEA Act requirements
- Install uv (if you haven't already)
- Generate a new project...
...from your local clone of the repository:...or directly from the repository on GitHub:uvx copier copy --trust ./hello-astro <destination-folder>uvx copier copy --trust gh:GSA-TTS/hello-astro <destination-folder> - Answer the prompts:
- Select which Astro template to use (
astro-plainorpages-site-gantry).
- Select which Astro template to use (
If you'd like to...
- change your answers or
- incorporate improvements made after you copied this template
...you can run the Copier update command:
- Make sure that your destination folder contains no uncommitted changes
- Update your destination folder from the most recently-tagged version of the template:
If necessary, you can specify a specific tag or gitref:
uvx copier update --trust -a .hello-astro-answers.ymluvx copier update --trust -a .hello-astro-answers.yml -r GITREF
To learn how updating works and what additional options are available, read the Copier update documentation .
Follow instructions in the README.md in the destination folder to work with the new site.
templates/astro-plain/: Template for the minimal Astro startertemplates/astro-uswds/: Minimal template styles with USWDS and oriented toward 21st Century IDEA requirementstemplates/pages-site-gantry/: cg-pages' advanced starter with extra features, USWDS, etc.
To ensure that copies reflect your local changes to the template, specify the HEAD revision on the command-line. For example...
When copying:
uvx copier copy --trust -r HEAD <template-folder> <destination-folder>
When recopying:
uvx copier recopy --trust -r HEAD <destination-folder>
When updating:
uvx copier update --trust -r HEAD <destination-folder>
There's more information about this in the Copier docs.
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.