scribble-enhanced/collects/help/help.ss
Robby Findler 45c8f79865 exact matches now come first and help-desk with no arguments goes to some kind of generic page
svn: r7970

original commit: 046abd204ea6cadb36e9a127e3a71c2b025adbd2
2007-12-12 17:24:57 +00:00

19 lines
508 B
Scheme

#lang scheme/base
(require "search.ss"
browser/external
setup/dirs
mzlib/cmdline)
(define search-terms '())
(command-line "Help Desk"
(current-command-line-arguments)
(args search-term (set! search-terms search-term)))
(cond
[(null? search-terms)
(let ([dest-path (build-path (find-doc-dir) "start" "index.html")])
(send-url (format "file://~a" (path->string dest-path))))]
[else
(generate-search-results search-terms)])