Skip to content

Commit 9a520d7

Browse files
committed
Simpler handling of changelog in site
1 parent 6142a5e commit 9a520d7

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

scripts/build_site.sh

+2-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ if [[ -n "$CI" || ! -d example/docs ]]; then
1818
cd ..
1919
fi
2020

21-
# Checkout the changelog as of the last release
22-
if [[ -n "$CI" ]]; then
23-
echo "Reverting changelog to last release"
24-
git checkout $(git describe --tags --abbrev=0) -- CHANGELOG.md
25-
fi
21+
# Use changelog as of last release
22+
git show $(git describe --tags --abbrev=0):CHANGELOG.md | sed 's/#* Unreleased//' > site/generated/CHANGELOG.md
2623

2724
# Build the actual site, references the API docs
2825
node bin/typedoc --options site/typedoc.config.jsonc

site/typedoc.config.jsonc

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"plugins.md",
2020
"declaration-references.md",
2121
"tags.md",
22-
"../CHANGELOG.md",
22+
"generated/CHANGELOG.md",
2323
"development/index.md",
2424
],
2525
"customCss": "custom.css",

0 commit comments

Comments
 (0)