Skip to content

Commit

Permalink
Fix changelog script to work with any year
Browse files Browse the repository at this point in the history
  • Loading branch information
justindeguzman committed Feb 3, 2024
1 parent 2164998 commit 15d2b73
Show file tree
Hide file tree
Showing 3 changed files with 183 additions and 5 deletions.
2 changes: 1 addition & 1 deletion copyClickhouseRepoDocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ echo "Copying completed"

echo "----Generate Changelog----"
cp docs/en/_placeholders/changelog/_index.md docs/en/whats-new/changelog/index.md
sed "0,/^# 2023 Changelog/d" \
sed "0,/^# $(date +%Y) Changelog/d" \
< ClickHouse/CHANGELOG.md \
>> docs/en/whats-new/changelog/index.md
echo "Start Deleting ClickHouse"
Expand Down
4 changes: 2 additions & 2 deletions docs/en/_placeholders/changelog/_index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
slug: /en/whats-new/changelog/
sidebar_position: 2
sidebar_label: 2023
title: 2023 Changelog
sidebar_label: 2024
title: 2024 Changelog
note: This file is autogenerated by the yarn new-build
---

Loading

0 comments on commit 15d2b73

Please sign in to comment.