After the function calls have been expanded, the AST is traversed depth-first to gather enriched information about the document, such as: For clear performance reasons, only one traversal is performed ...
doctree is a single binary, lightweight, and designed to run on your local machine. It can be self-hosted, and used via doctree.org with any GitHub repository.