To clone locally: $ git clone https://betagit.vosjedev.net/git/website.git
Last commit:
eac8d6dc6d5f md: update projects.md with a bunch of stuff (see desc)[checkout]
| Name | Size | Mode |
|---|---|---|
| .gitignore | 27B | 100644 |
| README.md | 1.3KiB | 100644 |
| content/ | - | 040000 |
| html/ | - | 040000 |
| static/ | - | 040000 |
| tools/ | - | 040000 |
README.md
How to useΒΆ
May I ask why you are wondering how to build my website...?
Anyways, in case you decide to copy and use my tools directory (in which case, plsz credit):
- (optional but recommended) Create a venv (location doesn't matter, but the
.gitignoreassumes.venvin the project root) - Install the following python packages:
markdown feedgen -
gen.pyandserve_dev.shassume to be ran in the project root and have adequate permissions. The other scripts should not have to be ran manually, they will be ran when needed. -
to automatically serve a local python http server for development purposes, use
bash tools/serve_dev.sh.- this will use
inotifywaitand automatically (re)generate the html output when any files in thecontent/andhtml/directories get modified
- this will use
- to manually generate the html output (for example when ready to serve in prod), use
python3 tools/gen.py.
My workflow should give an example for this:
- cd to project root
- open code editor in background, and run
serve_dev.sh - point browser to
http://localhost:8000/for previewing - edit files until happy
-
refresh page, check if everything correct
- if not, go to step 4
- commit and push
- ssh to server
-
git pull && python3 tools/gen.py
My caddy instance serves the out/ directory directly.