extended help-desk to construct custom queries

svn: r10102
This commit is contained in:
Eli Barzilay 2008-06-03 00:21:55 +00:00
parent 00043aaaae
commit df62a12b07

View File

@ -64,13 +64,14 @@
(super-new)))
(define (goto-plt-license)
(send-url
(url->string
(path->url (build-path (find-doc-dir) "license" "index.html")))))
(send-main-page "license/index.html"))
(define (help-desk [key #f] #:module [mod #f] #:manual [man #f])
(if (or key mod man)
(perform-search (string-append (or key "")
(if mod (format " L:~a" mod) "")
(if man (format " T:~a" man) "")))
(send-main-page)))
;; here for legacy code that should be removed
(define (get-docs) '())
(define help-desk
(case-lambda
[() (send-main-page)]
[(key) (perform-search key)]))