In the extra code analysis phase each parsed code part is enriched with a descriptor that contains specific information of the code part depending on its type (function, class, method, etc).
Function ANALYSE-CODE-PART Match an info collection from *CODE-INFO-COLLECTORS* and evaluate it to fill up the code part descriptor.
Macro DEFCODE-INFO-COLLECTOR Macro for defining code parts info collectors.
Generic Function DOCSTRING-FIRST-SENTENCE Returns the first sentence of DESCRIPTOR's docstring.
Define an info collector for each type of code part (function, method, defclass, macro, etc)
This is an example of how to define a custom code-part
(in-package :qbook)
Define a custom descriptor
Define an code info collector that instantiate the custom descriptor
Finally, possibly implement custom HTML and Latex generation, specializing WRITE-CODE-DESCRIPTOR generic function.