/usr/share/racket/pkgs/games/show-scribbling.rkt is in racket-common 6.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #lang racket/base
(require setup/xref
scribble/xref
scribble/tag
net/url
net/sendurl)
(provide show-scribbling)
(define (show-scribbling mod-path tag)
(define xref (load-collections-xref))
(λ ()
(define-values (path anchor)
(xref-tag->path+anchor
xref
(make-section-tag tag #:doc mod-path)))
(if path
(let ([u (path->url path)])
(send-url (url->string u)))
(error 'show-scribbling "cannot find docs for: ~.s ~.s" mod-path tag))))
|