Diverse commando's toegevoegd. Ik weet nog niet of ik ze allemaal ga houden
This commit is contained in:
+6
-1
@@ -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)))))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user