Skip to content

Commit e346f34

Browse files
committed
feat(website): make homepage callout dynamic from latest version
Create single source of truth for latest version information that drives both the homepage callout and serves as a reminder when adding new updates. Changes: - Add website/content/latest-version.ts with version metadata - Import latestVersion in homepage to dynamically show version - Add comment to updates page to remind updating the version file Benefits: - Only one place to update when releasing new versions - Homepage automatically reflects latest version - Reduces chance of homepage getting out of sync with updates page
1 parent e21540e commit e346f34

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

website/content/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: dev-agent
33
---
44

55
import { Callout, Steps, Tabs, FileTree } from 'nextra/components'
6+
import { latestVersion } from './latest-version'
67

78
# dev-agent
89

@@ -11,7 +12,7 @@ Local semantic code search for Cursor and Claude Code via MCP.
1112
[Get Started](/docs) · [View on GitHub](https://github.com/lytics/dev-agent)
1213

1314
<Callout type="info">
14-
**New in v0.5.1**Incremental indexing! Only re-index files that actually changed. [See what's new →](/updates)
15+
**New in v{latestVersion.version}**{latestVersion.summary} [See what's new →](/updates)
1516
</Callout>
1617

1718
<Callout type="default">

website/content/latest-version.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Latest version information
3+
* Update this file when adding a new version to updates/index.mdx
4+
*/
5+
6+
export const latestVersion = {
7+
version: '0.5.2',
8+
title: 'GitHub Indexing for Large Repositories',
9+
date: 'December 6, 2024',
10+
summary: 'Fixed `ENOBUFS` errors when indexing repositories with many GitHub issues/PRs.',
11+
link: '/updates#v052--github-indexing-for-large-repositories',
12+
} as const;

website/content/updates/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Updates
22

3+
{/*
4+
When adding a new version below, also update ../latest-version.ts
5+
so the homepage callout stays in sync.
6+
*/}
7+
38
What's new in dev-agent. We ship improvements regularly to help AI assistants understand your code better.
49

510
---

0 commit comments

Comments
 (0)