fix it more better

master-blaster
Matthew Butterick 9 years ago
parent 1ef1d73001
commit 021ea51dc6

@ -2,8 +2,6 @@
(require scribble/manual scribble/html-properties
scribble/core)
(provide (all-defined-out))
(require (for-syntax racket/base racket/syntax) racket/runtime-path)
(provide (for-syntax #%datum))
(define (aoc-title which)
(define which-str (number->string which))
@ -11,12 +9,6 @@
(define day-prefix (format "~a-" day-x))
@title[#:style manual-doc-style]{Day @which-str})
(define-syntax (link-rp stx)
(syntax-case stx ()
[(_ where text-args ...)
(with-syntax ([rp-name (generate-temporary)])
#'(begin
(require racket/runtime-path)
(define-runtime-path rp-name where)
(element (style #f (list (link-resource where)))
text-args ...)))]))
(define (link-rp path . text-args)
(element (style #f (list (link-resource path)))
text-args))