1 How to Scribble Documentation
2 Scribble Layers
3 @-Reader
4 Structures And Processing
5 Renderer
6 Decoding Text
7 Document Language
8 Document Reader
9 Basic Document Forms
10 Scheme
11 Manual Forms
12 Evaluation and Examples
13 BNF Grammars
14 Cross-Reference Utilities
15 Text Preprocessor
Index
Version: 4.0.2

 

7 Document Language

 #lang scribble/doclang

The scribble/doclang language provides everything from scheme/base, except that it replaces the #%module-begin form.

The scribble/doclang #%module-begin essentially packages the body of the module into a call to decode, binds the result to doc, and exports doc.

Any module-level form other than an expression (e.g., a require or define) remains at the top level, and the doc binding is put at the end of the module. As usual, a module-top-level begin slices into the module top level.