@@ -585,45 +585,25 @@ find a prefix and extract the subsequent name:
585585
586586 When a language's @racket[_get-info] procedure (accessed via @racket[read-language])
587587 responds to the @racket['documentation-language-family ]
588- key, the information it provides is used to find documentation
589- for the @tech[#:doc '(lib "scribblings/raco/raco.scrbl " )]{language family}
590- that the language is a part of. The response to that key should be a
591- @tech[#:doc '(lib "scribblings/reference/reference.scrbl " )]{hash
592- table} with certain known keys, such that those keys have to
593- have specific kinds of values attached to them, but is
594- allowed to have extra keys that are unconstrained (for
595- better forwards compatibility). This is the contract:
596-
597- @racketblock[
598- (hash/dc
599- [key symbol?]
600- [val (key)
601- (case key
602- [(doc-language-name) string?]
603- [(doc-path) path-string?]
604- [(doc-query) (hash/c symbol? string? #:immutable #t )]
605- [else any/c])]
606- #:immutable #t )
607- ]
588+ key, the result is a string that names a language family. The
589+ language family should be defined as @racketidfont{language-family} in
590+ some collection's @filepath{info.rkt} file , and that definition
591+ configures a documentation entry point, a navigation configuration,
592+ and search precedence.
608593
609594DrRacket uses the contents of this hash in three ways:
610595 @itemlist[
611596 @item{
612- When typing “f1” (or right clicking) to search for
597+ When typing f1 (or right clicking) to search for
613598 documentation in DrRacket, DrRacket calls
614- @racket[perform-search] and @racket[send-main-page] to
615- summon browser-based documentation. If
616- hash contains the @racket['doc-query ] key, then the value
617- associated with that key is supplied as the
618- @racket[#:query-table ] argument.}
619- @item{If the hash maps the
620- @racket['doc-language-name ] to a string, then DrRacket uses that
621- string in the first menu item in the @onscreen{Help} menu
599+ @racket[perform-search] or @racket[send-language-family-page] to
600+ summon browser-based documentation, and it passes
601+ along the language family.}
602+ @item{DrRacket uses the name in the first menu item in the @onscreen{Help} menu
622603 item, replacing the word “Racket” with the string in the hash.}
623- @item{ When selecting that menu item, DrRacket visits the web
624- page named by the @racket['doc-path ] key. Specifically,
625- DrRacket passes @racket['doc-path ] as the @racket[#:sub ]
626- argument to @racket[send-main-page].
604+ @item{ When selecting that menu item, DrRacket visits the
605+ documentation page the language family by passing it
606+ along to @racket[send-language-family-page].
627607 }]
628608}
629609
0 commit comments