mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 03:34:08 +01:00
Tweak display of vUNSTABLE changelog
This commit is contained in:
parent
ff14641d0c
commit
a120a427ba
|
|
@ -16,14 +16,24 @@ rm -f rendered.md
|
|||
# Generate changelog
|
||||
towncrier --yes
|
||||
|
||||
if [ "$VERSION" = "vUNSTABLE" ]; then
|
||||
TITLE="Changes since last release"
|
||||
LINKTITLE="Unstable"
|
||||
FILENAME="unstable.md"
|
||||
else
|
||||
TITLE="$VERSION Changelog"
|
||||
LINKTITLE="$VERSION"
|
||||
FILENAME="$VERSION.md"
|
||||
fi
|
||||
|
||||
{
|
||||
# Prepare the header
|
||||
# We include the generation date in the front matter so that we can use it
|
||||
# to sort the changelogs at build time.
|
||||
cat <<EOF
|
||||
---
|
||||
title: $VERSION Changelog
|
||||
linkTitle: $VERSION
|
||||
title: $TITLE
|
||||
linkTitle: $LINKTITLE
|
||||
type: docs
|
||||
outputs:
|
||||
- html
|
||||
|
|
@ -37,7 +47,7 @@ EOF
|
|||
|
||||
# Remove trailing whitespace (such as our intentionally blank RST headings)
|
||||
sed -e "s/[ ]*$//" rendered.md
|
||||
} > ../content/changelog/$VERSION.md
|
||||
} > ../content/changelog/$FILENAME
|
||||
|
||||
# Cleanup
|
||||
rm -v rendered.md
|
||||
|
|
|
|||
Loading…
Reference in a new issue