Diverse commando's toegevoegd. Ik weet nog niet of ik ze allemaal ga houden

This commit is contained in:
2026-08-13 02:14:49 +02:00
parent 2cb7e9310e
commit 003f3713f0
9 changed files with 830 additions and 131 deletions
+6 -1
View File
@@ -11,6 +11,12 @@
(define (make-js . args)
(string-join args "\n"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; goal : Render a Git diff in a temporary HTML file.
; pre : diff is a unified Git diff string.
; post : The generated HTML file has been opened in the default browser.
; result : void.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define (diff->html diff)
(let ((highlight-css "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css")
(diff2html-min-css "https://cdn.jsdelivr.net/npm/diff2html/bundles/css/diff2html.min.css")
@@ -52,4 +58,3 @@
(send-url/file tmp-file)))))