all repos — elgit @ 7b90e8eac224891de8dd3bc4ab37dca1b5639340

fork of legit: web frontend for git, written in go

docs: add info about syntaxHighlight usage
Gabriel A. Giovanini mail@gabrielgio.me
Sun, 14 Jul 2024 16:24:26 +0200
commit

7b90e8eac224891de8dd3bc4ab37dca1b5639340

parent

34521a5bc308c168d43f168e325ac4f43d5dd835

2 files changed, 7 insertions(+), 0 deletions(-)

jump to
M config.yamlconfig.yaml
@@ -14,6 +14,7 @@ static: ./static meta:
   title: icy does git
   description: come get your free software
+  syntaxHighlight: monokailight
 server:
   name: git.icyphox.sh
   host: 0.0.0.0
M readmereadme
@@ -63,6 +63,10 @@ • repo.mainBranch: main branch names to look for. • repo.ignore: repos to ignore, relative to scanPath.
 • repo.unlisted: repos to hide, relative to scanPath.
 • server.name: used for go-import meta tags and clone URLs.
+• meta.syntaxHighlight: used for picking which syntax theme render. Leave it
+  blank or remove it to disable and use native theme. If this field is set with
+  a invalid theme, it will fallback to "monokailight". For more information
+  about themes check chroma's gallery[1].
 
 
 NOTES
@@ -86,3 +90,5 @@ LICENSE
 
 legit is licensed under MIT.
+
+[1]: https://swapoff.org/chroma/playground/