'nest' docs and enumeration of libraries re-exported by scheme

svn: r9653
This commit is contained in:
Matthew Flatt 2008-05-05 11:29:04 +00:00
parent 785f860175
commit b53e01c460
3 changed files with 727 additions and 654 deletions

View File

@ -23,7 +23,11 @@
(begin (begin
(declare-exporting lib scheme #:use-sources (src ...)) (declare-exporting lib scheme #:use-sources (src ...))
(defmodule*/no-declare (lib) (defmodule*/no-declare (lib)
(t "The bindings documented in this section are provided by the " (t (make-collect-element
#f null
(lambda (ci)
(collect-put! ci `(scheme-extra-lib ,'lib) (schememodname lib))))
"The bindings documented in this section are provided by the "
(schememodname lib) (schememodname lib)
" and " " and "
(schememodname scheme) (schememodname scheme)

View File

@ -1,7 +1,25 @@
#lang scribble/doc #lang scribble/doc
@(require "mz.ss") @(require "mz.ss"
scribble/struct)
@(define w (make-will-executor)) @(define (scheme-extra-libs)
(make-delayed-element
(lambda (renderer p ri)
(let ([keys (resolve-get-keys p ri (lambda (v)
(eq? (car v) 'scheme-extra-lib)))])
(let ([keys (sort keys string<?
#:key (lambda (k)
(symbol->string (cadr k)))
#:cache-keys? #t)])
(let loop ([keys keys])
(cond
[(null? keys) '("")]
[(null? (cdr keys)) (list ", and "
(resolve-get p ri (car keys)))]
[else (list* ", " (resolve-get p ri (car keys))
(loop (cdr keys)))])))))
(lambda () "...")
(lambda () "...")))
@title{@bold{Reference}: PLT Scheme} @title{@bold{Reference}: PLT Scheme}
@ -23,8 +41,10 @@ language.
Unless otherwise noted, the bindings defined in this manual are Unless otherwise noted, the bindings defined in this manual are
exported by the @schememodname[scheme/base] and @schememodname[scheme] exported by the @schememodname[scheme/base] and @schememodname[scheme]
languages, where @schememodname[scheme] includes all of languages.}
@schememodname[scheme/base].}
@margin-note{The @schememodname[scheme] library combines
@schememodname[scheme/base]@scheme-extra-libs[].}
@table-of-contents[] @table-of-contents[]

File diff suppressed because it is too large Load Diff