@@ -6,20 +6,20 @@ The Render Pipeline
66===================
77
88The pipeline defines how nodes carrying data are generated and when they are
9- rendered to part of the document.
9+ rendered as part of the document.
1010
11111. Generation: :py:class: `~sphinxnotes.render.BaseContextRole `,
1212 :py:class: `~sphinxnotes.render.BaseContextDirective ` and their subclasses
1313 create :py:class: `~sphinxnotes.render.pending_node ` on document parsing,
1414 and the node will be inserted to the document tree. The node contains:
1515
16- - :ref: `context `, the dynamic content of Jinja template
16+ - :ref: `context `, the dynamic content of a Jinja template
1717
1818 - :py:class: `~sphinxnotes.render.Template `,
1919 the Jinja template for rendering context to markup text
2020 (reStructuredText or Markdown)
2121
22- 2. Render: ``pending_node `` node will be rendered at appropriate
22+ 2. Render: the ``pending_node `` node will be rendered at the appropriate
2323 :py:class: `~sphinxnotes.render.Phase `, depending on
2424 :py:attr: `~sphinxnotes.render.pending_node.template.phase `.
2525
3333Context
3434-------
3535
36- Context refers dynamic content of Jinja template. It can be:
36+ Context refers to the dynamic content of a Jinja template. It can be:
3737
3838:py:class: `~sphinxnotes.render.ResolvedContext `:
39- Our dedicated data types (:py:class: `sphinxnotes.render.ParsedData `) , or any
39+ Our dedicated data type (:py:class: `sphinxnotes.render.ParsedData `), or any
4040 Python ``dict ``.
4141
4242:py:class: `~sphinxnotes.render.PendingContext `:
43- Context no yet available. e.g. Context contains
44- :py:class: `un-parsed data <sphinxnotes.render.RawData> `) ,
45- remote data, and etc .
43+ Context that is not yet available. For example, it may contain
44+ :py:class: `unparsed data <sphinxnotes.render.RawData> `,
45+ remote data, and more .
4646
47- PendingContext can be resolved to :py:class: `~sphinxnotes.render.ResolvedContext `.
48- by calling the :py:class: `~sphinxnotes.render.PendingContext.resolve ` method.
47+ :py:class: `PendingContext ` can be resolved to
48+ :py:class: `~sphinxnotes.render.ResolvedContext ` by calling
49+ :py:meth: `~sphinxnotes.render.PendingContext.resolve `.
4950
5051.. autotype :: sphinxnotes.render.ResolvedContext
5152
5253.. autoclass :: sphinxnotes.render.PendingContext
5354 :members: resolve
5455
55- ``PendingContext `` Implementions
56- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56+ ``PendingContext `` Implementations
57+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5758
5859.. autoclass :: sphinxnotes.render.UnparsedData
5960 :show-inheritance:
@@ -141,8 +142,8 @@ Data, Field and Schema
141142Registry
142143========
143144
144- Developer can extending the function of this extentison (For example, support
145- more data types, add new extra context) by adding new item to
145+ Developers can extend this extension (for example, to support more data types
146+ or add new extra context) by adding new items to
146147:py:class: `sphinxnotes.render.REGISTRY `.
147148
148149.. autodata :: sphinxnotes.render.REGISTRY
0 commit comments