See [Caddy: Install](https://caddyserver.com/docs/install) for directions on installing `caddy`.
+See [Comrak](https://github.com/kivikakk/comrak) for installing `comrak`.
+
Explanation:
- `git`, `gitweb` are naturally required.
- `highlight` for code syntax highlighting on the web view.
- `ufw` for setting up firewall rules (can substitute with whatever you like).
- `fcgiwrap` to call the `gitweb` and `git-http-backend` FastCGI scripts.
- `caddy` for the web server to serve the web view and repos over HTTPS.
+- `comrak` for rendering `README.md` as close to GitHub as possible.
2. Clone this repo somewhere on the server.
# Commented out to simplify administration (not dealing with cron jobs to remove repos)
# git maintenance start
-# Create post-update hook for dumb HTTP transport and general maintenance
+# Create post-update hook for dumb HTTP transport, generating README for summary view,
+# and general maintenance.
# See https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols#_dumb_http)
# See https://git-scm.com/docs/git-maintenance
# See https://git-scm.com/book/en/v2/Git-Internals-Maintenance-and-Data-Recovery
cat > "$path/hooks/post-update" << EOL
#!/bin/sh
git update-server-info
+git cat-file blob HEAD:README.md | comrak > $GIT_DIR/README.html
git maintenance run
EOL
chmod a+x "$path/hooks/post-update"