From 5abb40c5be90e5257cdfae51c165f00c5398f32c Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Thu, 10 Jul 2025 08:08:59 +0000 Subject: starting to move studio website to ca, now moving configs --- etc/pacman.d/hooks/highlight-css.hook | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 etc/pacman.d/hooks/highlight-css.hook (limited to 'etc/pacman.d/hooks') diff --git a/etc/pacman.d/hooks/highlight-css.hook b/etc/pacman.d/hooks/highlight-css.hook new file mode 100644 index 00000000..f14acaa7 --- /dev/null +++ b/etc/pacman.d/hooks/highlight-css.hook @@ -0,0 +1,13 @@ +[Trigger] +Type = Package +Operation = Install +Operation = Upgrade +Target = highlight + +[Action] +Description = Upgrading highlight.css for cgit syntax highlighting... +When = PostTransaction +# mycgit.css import this highlight.css and cgit.css, for syntax-highlighting-edited.sh +# because cgit.css is not pacman backup file and will be overwritten when upgrade cgit +Exec = /usr/bin/sh -c '/usr/bin/mkdir -p /usr/share/webapps/cgit && /usr/bin/highlight -O xhtml --print-style -o /usr/share/webapps/cgit/highlight.css' +Depends = highlight -- cgit v1.2.3-70-g09d2