From: Mike Bayer Date: Sat, 2 Mar 2013 22:48:22 +0000 (-0500) Subject: - add support for introductory notes following .. changelog:: directive X-Git-Tag: rel_0_8_0~13^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67f5c4a96d816b5f86f7e94310337c7cb9645779;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - add support for introductory notes following .. changelog:: directive --- diff --git a/doc/build/builder/changelog.py b/doc/build/builder/changelog.py index 85ae6dba05..41a403ad09 100644 --- a/doc/build/builder/changelog.py +++ b/doc/build/builder/changelog.py @@ -142,6 +142,16 @@ class ChangeLogDirective(EnvDirective, Directive): 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