Tighten formatting for new branch reno page title

Some have pointed out that the generated page title is not strictly
correct for a valid RST title. This adds some additional formatting of
the text to make sure it is completely valid.

Change-Id: I8652be3dc987629a8acca7a1584086fc4e2f4636
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2019-09-12 10:40:19 -05:00
parent 82c4b5aaed
commit 323eb4d68c
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
1 changed files with 7 additions and 3 deletions

View File

@ -47,11 +47,15 @@ $NEW_BRANCH.
Sem-Ver: feature
"
titlebranch=$(python -c "print('$SERIES'.title())")
pagetitle="$titlebranch Series Release Notes"
titlebar=`printf '%*s' "$(echo -n $pagetitle | wc -c)" | tr ' ' "="`
cat - > releasenotes/source/${SERIES}.rst <<EOF
===================================
$titlebranch Series Release Notes
===================================
$titlebar
$pagetitle
$titlebar
.. release-notes::
:branch: $NEW_BRANCH