diff --git a/scripts/build_site.sh b/scripts/build_site.sh index a8d7ac64c..b9d440a30 100755 --- a/scripts/build_site.sh +++ b/scripts/build_site.sh @@ -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 diff --git a/site/typedoc.config.jsonc b/site/typedoc.config.jsonc index 429c343bc..cf339a0f9 100644 --- a/site/typedoc.config.jsonc +++ b/site/typedoc.config.jsonc @@ -19,7 +19,7 @@ "plugins.md", "declaration-references.md", "tags.md", - "../CHANGELOG.md", + "generated/CHANGELOG.md", "development/index.md", ], "customCss": "custom.css",