diff --git a/helper.rkt b/helper.rkt index f163ec1..c92685f 100644 --- a/helper.rkt +++ b/helper.rkt @@ -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 ...)))])) \ No newline at end of file +(define (link-rp path . text-args) + (element (style #f (list (link-resource path))) + text-args)) \ No newline at end of file