From 9a520d778b82e00949147471bf4b00a2a2aebf6b Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Wed, 27 Nov 2024 17:20:03 -0700 Subject: [PATCH] Simpler handling of changelog in site --- scripts/build_site.sh | 7 ++----- site/typedoc.config.jsonc | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) 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",