Lines Matching full:rst
11 # The purpose of this extension is to read fragments of rST
13 # The rST fragments are delimited by SRST/ERST lines.
25 from docutils.parsers.rst import directives, Directive
35 # states: reading the C code fragment, or inside a rST fragment.
38 RST = 2 variable in HxState
56 # consistency with other headings in the rST documentation.
69 # consistency with other headings in the rST documentation.
84 """Extract rST fragments from the specified .hx file"""
100 # We build up lines of rST in this ViewList, which we will
114 if state == HxState.RST:
117 state = HxState.RST
138 # Put the accumulated rST into the previous node,
142 # We had some rST fragments before the first
147 'first DEFHEADING must precede all rST text')
156 # Not a directive: put in output if we are in rST fragment
157 if state == HxState.RST:
162 # We don't have multiple sections, so just parse the rst
168 # Put the remaining accumulated rST into the last section, and