Commit Graph

104 Commits

Author SHA1 Message Date
Samuel Bronson
e9d830badb Hack to keep search.js and search-context.html up-to-date in doc/ trees by pretending that make-search.zo depends on them 2012-10-17 08:46:47 -04:00
Samuel Bronson
a624d8de15 Misc improvements to the doc search JavaScript code
* Stamp "plt-index.js" with the path of its generator.

* Fix most of the "use strict" and js2-mode warnings in scribble's
  JavaScript.

* Some code improvements in the generating code too.

(With some edits by Eli.)
2012-10-10 11:05:25 -04:00
Robby Findler
8ee76c9547 Add index entries for @defconstructor (and friends). Also add
code that skips over them when building the search indices.
Overall, this means that the only change most people would see
is that multiple constructors in the same class will get a warning
(and there was one of those, so fixed that too).

Also, Rackety. Specifically, transformed this surprising combination
of constructs (where all caps are placeholders for something specific):

((if PRED
     (λ (c mk) BODY2)
     (λ (c mk) BODY1))
 content
 (lambda (tag) BODY3))

into this one:

(define (mk tag) BODY3)
(if PRED
    BODY1{c:=content}
    BODY2{c:=content})
2012-08-11 21:52:48 -05:00
Eli Barzilay
6b2b784e79 Further improvements to the documentation search.
Revise the subword matching to have three different levels for full
match (= a permutation of the input), a generic match for all parts, and
everything else.
2012-06-14 15:46:53 -04:00
Eli Barzilay
ecc43ff104 Improve the documentation search code.
Instead of just one array for exact results and one for all the rest,
use one array for each possible comparison result, and concatenate them
all for the final list.
2012-06-14 15:46:53 -04:00
Matthew Flatt
815fd1b49c misc changes to speed up doc search generation
Cuts about 30% of the time on my machine.
2012-06-08 16:08:55 +08:00
Eli Barzilay
6318df82e5 Drop the now-redundant " " argument from existing uses of `string-join'. 2012-05-24 10:40:20 -04:00
Ryan Culpepper
8ebda770a6 restored Getting Started link 2011-07-07 14:00:22 -06:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Ryan Culpepper
4d38f491ca moved algol60 and honu docs to experimental category
remove empty doc categories
2011-07-01 20:13:52 -06:00
Ryan Culpepper
1b702a2ae3 docs reorganization
added tutorial, racket categories
  relabeled some other categories
  normalized manual names: de-bolded, changed some names
2011-07-01 17:16:53 -06:00
Robby Findler
71770ee285 one more collection-path => collection-file-path in scribble 2011-05-16 06:51:25 -05:00
Robby Findler
65cd861c6f adjust docs building so that it doesn't assume that the getinfo procs are there
closes PR 11484
2010-12-03 06:30:58 -06:00
Sam Tobin-Hochstadt
ab70fed8a8 Scheme -> Racket in styles
Scribble style names.
 .tex and .css files
2010-06-08 16:40:47 -04:00
Matthew Flatt
ed1d7f81c9 move drscheme and tests/drscheme to drracket and tests/drracket 2010-05-09 15:34:50 -06:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Eli Barzilay
c0be5f0d12 * Propagate all url arguments to links (except ones that are present)
* Use ctxtname for the displayed label
* `langindicator' -> `contextindicator' in css

svn: r17073
2009-11-26 20:45:40 +00:00
Eli Barzilay
dccc4bcb95 thread lang parameter through search results
svn: r17044
2009-11-24 15:13:55 +00:00
Eli Barzilay
615744073c thread lang parameter through the main pages too
svn: r17042
2009-11-24 14:36:00 +00:00
Eli Barzilay
142d33d67f Make it possible to register multiple onload handlers.
(Needed because all pages must have an onload, and the search page needs an
additional initialization function.)

svn: r17032
2009-11-24 09:11:09 +00:00
Eli Barzilay
9cd997af37 adjust for new link attribute, fix error message
svn: r17030
2009-11-24 08:25:42 +00:00
Eli Barzilay
212eb82314 use the utility function for the query parameter
svn: r17028
2009-11-24 06:52:40 +00:00
Eli Barzilay
65be0295cf Added A:{ ... } and O:{ ... } for and' and or' queries, and Q:foo for
"quoted" things so "}" can be included in these.  Not documented at the
user level for now, since I'm not sure that this will work fine in
general, but it's good enough to reactivate context-sensitive searches.

svn: r16944
2009-11-21 21:55:34 +00:00
Eli Barzilay
128da973df Truing to use JS `eval' in several ways doesn't seem to be doing
anything for speed.  So dump all attempts at making things faster this
way.  Also, it seems that things are responsive enough with any break in
the searching "thread", so shorten that time.  (And one other random
optimization: abort early when an item doesn't match.)

svn: r16943
2009-11-21 21:53:06 +00:00
Eli Barzilay
3ccb9082dc stupid typo
svn: r16917
2009-11-20 08:35:43 +00:00
Eli Barzilay
b9f4662af9 Very partial change, the only visible effect should be that "Pre-Query"
is no longer part of the interface in any way.

svn: r16136
2009-09-27 14:13:57 +00:00
Matthew Flatt
2e8de6467a make sure search pages are installed with scheme.css
svn: r15621
2009-07-29 15:54:18 +00:00
Matthew Flatt
229e2636de change scribble 'variant' to 'property'; add contracts in scribble/decode
svn: r15581
2009-07-27 03:55:43 +00:00
Matthew Flatt
345c17e85c major Scribble revision (v4.2.1.2)
svn: r15569
2009-07-25 20:25:33 +00:00
Matthew Flatt
7daedece49 getting-started doc improvements, and small change to raise-syntax-error
svn: r13607
2009-02-15 15:15:06 +00:00
Eli Barzilay
55ebce5466 minor
svn: r13405
2009-02-04 04:18:00 +00:00
Eli Barzilay
f5a019f23d better message if no results and we have a context
svn: r11830
2008-09-22 04:30:31 +00:00
Eli Barzilay
bdfcca7d11 Use an nonexistent css class for installation warning message, so when
it's installed on the web page it's easy to add the missing class with
a `display: none' so it's not show without any html rehacking.
Disabled the "(installation)" suffix to the main title for now: it's
also used for the window title and that shouldn't have the suffix
because the browser window will have it.

svn: r11452
2008-08-27 11:19:20 +00:00
Eli Barzilay
24aff20196 switch to N: for negation
svn: r11030
2008-08-02 04:17:08 +00:00
Eli Barzilay
7ef5249fa5 proper error message
svn: r11003
2008-07-31 09:24:17 +00:00
Eli Barzilay
e7184d8d29 add "-foo" for negated search terms, fix occasional problem with aborted searches
svn: r10911
2008-07-25 13:51:51 +00:00
Matthew Flatt
4092392e5a adjust Scribble para/div style handling
svn: r10910
2008-07-25 13:16:06 +00:00
Eli Barzilay
42cf9ddda1 parse a label argument too
svn: r10905
2008-07-25 01:44:59 +00:00
Matthew Flatt
78c5220836 fix searching a different way, which more likely matches the intent
svn: r10899
2008-07-24 11:41:21 +00:00
Matthew Flatt
9c8cad4197 fix doc searching
svn: r10898
2008-07-24 11:37:35 +00:00
Eli Barzilay
a104bb0453 scroll a panel into view when activated
svn: r10895
2008-07-24 11:05:10 +00:00
Eli Barzilay
56320ded96 Much improved support for context, reorganize dom using divs only, improve html part, and more
svn: r10894
2008-07-24 10:43:22 +00:00
Eli Barzilay
ea3c3687dc improved search indicator thing
svn: r10880
2008-07-23 16:14:29 +00:00
Eli Barzilay
2628b28770 fix keyboard response
svn: r10790
2008-07-16 13:58:24 +00:00
Eli Barzilay
3111d2c147 fix keep-file -- it should be a render-element
svn: r10787
2008-07-16 10:32:57 +00:00
Matthew Flatt
1c6281111b add render-element structure, and use it in the search doc
svn: r10782
2008-07-15 22:03:36 +00:00
Eli Barzilay
bb562f9ee4 * some fixes to make-search.ss
* rename search-context.html to .htm to avoid being deleted by
  setup/scribble
* added context to help/search interface

svn: r10717
2008-07-11 09:50:29 +00:00
Eli Barzilay
dc5211f363 improve status message clearing for input fields ("" is false in javascript)
svn: r10716
2008-07-11 08:48:53 +00:00
Eli Barzilay
f44a06a4da Added an `hq' argument for a pre-filter argument, parsed on a separate
page instead of in index.html, so that it can be removed from the url
to avoid resetting the cookie on every refresh.

svn: r10715
2008-07-11 08:40:11 +00:00
Eli Barzilay
14cd61f353 fix prefiltering
svn: r10705
2008-07-10 07:12:40 +00:00