README.md (1086B)
1 ## Static Site Generator 2 3 A custom static site generator written in C. 4 5 ## Usage 6 7 ```bash 8 scripts/generate 9 ``` 10 11 ### Static Git Pages 12 13 Generate static [`stagit`](https://codemadness.org/git/stagit/file/README.html) 14 pages for the projects listed in `content/index.md`: 15 16 ```bash 17 scripts/generate 18 scripts/stagit 19 ``` 20 21 The `stagit` script reads the generated `build/index.html` with `htmlq`, so the site must 22 be generated first. Projects without a GitHub link are skipped. 23 24 Each repository is also published as a bare repository at 25 `build/git/<name>.git`, prepared for dumb HTTP with `git update-server-info`. 26 27 Clone it directly from the site: 28 29 ```bash 30 git clone https://unitehenry.com/git/openpod.git 31 ``` 32 33 ### Dependencies 34 35 The following dependencies are required to run this program: 36 37 - [`gcc`](https://gcc.gnu.org) 38 - [`pandoc`](https://pandoc.org) 39 40 ## Development 41 42 ```bash 43 scripts/serve 44 ``` 45 46 There is a script to make recompilation easier for editing content. It will start a dev server on `http://localhost:8080` and rebuild any pages that change under `content` or `static` directories.