Website
- Go to repo toplevel
rm -r docs/
- clear the old websitepython3 src/index_posts.py
- generate/update the blog index incontent/tidings/
racket site.rkt
- generate/update the site indocs/
python3 -m http.server -d docs/
- view the result in browser at default port:localhost:8000
; Ctrl-C to close the server
Then add, commit, and push.
- Create a new HTML file somewhere in the
content/
directory. - Add a rule to the config for the new page. Note that many folders register their contents recursively, so your new page may already have an implicit entry. Check the config.
- Rebuild the entire site as usual to view your new post on the webserver.
You can also create new templates and assets (e.g. CSS files) to help define the look of your new page.
See here for information on authoring templates.
- Create a new HTML file in the
tidings/
folder. The file should be an HTML fragment containing a<title>
tag and an element containing the date withid="date"
. - Run
python3 src/index_posts.py
from the repo toplevel. This updates the blog index with your new post. - Rebuild the entire site as usual to view your new post on the webserver.