Skip to content

Commit

Permalink
Simpler handling of changelog in site
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Nov 28, 2024
1 parent 6142a5e commit 9a520d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions scripts/build_site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ if [[ -n "$CI" || ! -d example/docs ]]; then
cd ..
fi

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

# Build the actual site, references the API docs
node bin/typedoc --options site/typedoc.config.jsonc
Expand Down
2 changes: 1 addition & 1 deletion site/typedoc.config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"plugins.md",
"declaration-references.md",
"tags.md",
"../CHANGELOG.md",
"generated/CHANGELOG.md",
"development/index.md",
],
"customCss": "custom.css",
Expand Down

0 comments on commit 9a520d7

Please sign in to comment.