Skip to content

CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.

fix(website): strip empty [Unreleased] section from changelog page

xf gongc7b68aece3f2
diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts
index 5eeab0d..a3dcdc4 100644
--- a/website/docusaurus.config.ts
+++ b/website/docusaurus.config.ts
@@ -95,6 +95,14 @@ const config: Config = {
clientModules: [require.resolve('./src/clientModules/posthog.ts')],
+ markdown: {
+ // Strip empty ## [Unreleased] sections before MDX compilation so the
+ // /changelog page doesn't open with a heading that has no content and
+ // makes the first release look unreleased.
+ preprocessor: ({fileContent}) =>
+ fileContent.replace(/^## \[Unreleased\]\n+(?=##)/m, ''),
+ },
+
presets: [['classic', classicOptions]],
plugins: [