make collection xref for git help

This commit is contained in:
2026-08-11 22:53:28 +02:00
parent 7c6a338326
commit 069fdbf921
4 changed files with 10 additions and 8 deletions
+4 -3
View File
@@ -123,9 +123,10 @@
(lambda ()
(error 'git-help "unknown help topic: ~a" topic)))
'git))
;; Use Racket's installed-documentation cross-reference database instead of
;; guessing where raco setup placed this package's generated HTML.
(define xref (load-collections-xref))
;; Build a fresh installed-documentation cross-reference database instead of
;; using load-collections-xref's process-local cache. This makes help notice
;; documentation generated by raco setup during the current DrRacket session.
(define xref (make-collections-xref))
(define tag
(xref-binding->definition-tag xref (list 'git binding) #f))
(unless tag