API Reference¶
Note
WIP
sphinxnotes.render.pipeline¶
- copyright:
Copyright 2026 by the Shengyu Zhang.
- license:
BSD, see LICENSE for details.
This module defines pipeline for rendering data to nodes.
The Pipline¶
Define context: BaseDataSource generates a
pending_node, which contains:Context
Template for rendering data to markup text
Possible extra contexts
See also
BaseDataSource.Render data: the
pending_nodenodes will be rendered (by callingpending_node.render()) at some point, depending onpending_node.template.phase.The one who calls
pending_node.renderis calledHost. TheHosthost is responsible for rendering the markup text into docutils nodes (SeeMarkupRenderer).Phases:
Phase.Parsing:Called by BaseDataSource (‘s subclasses)
Phase.Parsed:Called by
ParsedHookTransform.Phase.Resolving:Called by
ResolvingHookTransform.
How context be rendered list[nodes.Node]¶
See also
ctxnodes.pending_node.render().