4.2.6 Defining Documentation Forms
| (require scribble/manual-def) | package: scribble-lib |
Added in version 1.64 of package scribble-lib.
procedure
(make-id-element id str defn? [ #:space space #:suffix suffix #:link-style link-style #:unlinked-ok? unlinked-ok?]) → content? id : identifier? str : string? defn? : any/c space : (or/c #f symbol?) = #f suffix : (or/c #f symbol? serializable?) = #f link-style : (or/c #f style?) = #f unlinked-ok? : any/c = #f
The space argument indicates a space (in the sense of only-space-in) for the binding. The suffix argument provides an additional suffix on the documentation key, when not #f, and it normally should include space if space is not #f. The suffix might have additional components to, for example, indicate a name syntactically accessible via id, such as through a field-selecting dot notation.
If unlinked-ok? is #false, then if no link target is found based on the for-label binding of id in space, the identifier is typeset as a failed hyperlink. Otherwise, it is typeset without linking.
procedure
(id-to-target-maker id dep? [ #:space space #:suffix suffix]) → (content? (-> tag? content?) . -> . content?) id : identifier? dep? : any/c space : (or/c #f symbol?) = #f suffix : (or/c #f symbol? serializable?) = #f
The resulting make-target procedure expects content that is used before the resolve pass (e.g., to extract content text) plus a procedure that takes a cross-reference tag and produces a content representing the specific cross reference target. The procedure passed to make-target receives a tag representing the binding, and it typically generates a target-element (possibly a toc-target2-element) using that tag. The generated target-element may also include indexing information using the same tag, and where with-exporting-libraries is used to construct the index description.
procedure
(id-to-form-target-maker id dep? [ #:space space #:suffix suffix]) → (content? (-> tag? content?) . -> . content?) id : identifier? dep? : any/c space : (or/c #f symbol?) = #f suffix : (or/c #f symbol? serializable?) = #f
procedure
(annote-exporting-library content [ #:format-module-path fmt]) → content? content : content? fmt : (any/c . -> . string?) = ~s
procedure
(with-exporting-libraries make-desc) → delayed-index-desc?
make-desc : (list? . -> . exported-index-desc?)