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:
parent
82c4b5aaed
commit
323eb4d68c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user