]> git.ardis.lu - git.ardis.lu/commitdiff
Specify theme for syntax highlighting
authorArdis Lu <ardisglu@gmail.com>
Wed, 8 Apr 2026 06:43:37 +0000 (23:43 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 8 Apr 2026 06:43:37 +0000 (23:43 -0700)
srv/git/git-shell-commands/init

index 3ebdec2d88d53fcb87b95c85a0af8d5c343cf392..a715d3ab7ca13fcf33b59ec5b51a69f387d5a0ac 100644 (file)
@@ -53,7 +53,7 @@ git init --bare --quiet
 cat > "$path/hooks/post-update" << EOL
 #!/bin/sh
 git update-server-info
-git cat-file blob HEAD:README.md | comrak --gfm > "$(git rev-parse --git-common-dir)/README.html"
+git cat-file blob HEAD:README.md | comrak --gfm --syntax-highlighting InspiredGitHub > "$(git rev-parse --git-common-dir)/README.html"
 git maintenance run
 EOL
 chmod a+x "$path/hooks/post-update"
This page took 0.037038 seconds and 4 git commands to generate.