https://github.com/danasilver/danasilver.github.io
https://github.com/danasilver/danasilver.github.io
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danasilver/danasilver.github.io
- Owner: danasilver
- Created: 2014-02-16T22:11:35.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2025-02-23T20:44:34.000Z (over 1 year ago)
- Last Synced: 2025-02-23T21:27:30.502Z (over 1 year ago)
- Language: HTML
- Homepage: https://www.danasilver.org
- Size: 16.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## danasilver.org
The development repository for [www.danasilver.org](https://www.danasilver.org).
### Develop
Activate a [venv](https://docs.python.org/3/library/venv.html):
```sh
. venv/bin/activate
```
Install the requirements to build the site:
```sh
pip install -r requirements.txt
```
The site is templated with [Jinja2](http://jinja.pocoo.org/) and generated using
[staticjinja](https://staticjinja.readthedocs.io/en/latest/). Build the site with:
```sh
python3 build.py
```
The generated site is in `_site/`.
Run an HTTP server from that directory for a preview:
```sh
python3 -m http.server
```
And open http://localhost:8000 to view the rendered site.
### Deploy
Push to master to deploy.
#### How Deployment Works
Push to master triggers a
[GitHub Action](https://github.com/danasilver/danasilver.github.io/actions/workflows/deploy-to-s3.yaml),
which builds the static site, uploads to S3, and invalidates the Cloudfront distribution.