Commits

Mike Bayer  committed bb1867c

- add support for introductory notes following .. changelog:: directive

  • Participants
  • Parent commits 42664b4

Comments (0)

Files changed (1)

File doc/build/builder/changelog.py

                         self._parsed_content['released']))
         else:
             topsection.append(nodes.Text("no release date"))
+
+        intro_para = nodes.paragraph('', '')
+        for len_, text in enumerate(self._parsed_content['text']):
+            if ".. change::" in text:
+                break
+        if len_:
+            self.state.nested_parse(self._parsed_content['text'][0:len_], 0,
+                            intro_para)
+            topsection.append(intro_para)
+
         return topsection