Skip to content

Commit e31e16c

Browse files
authored
changed feed url (#197)
* changed feed url * add product and version to link * add scroll to hash changelog * Revert "add scroll to hash changelog" This reverts commit 9713776.
1 parent 87a37de commit e31e16c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/changelog/feed.xml.get.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ function buildRssItem(item: ChangelogWithDeps, baseUrl: string): string {
6060
const packageName = SHORT_NAMES[item.packageName] || item.packageName;
6161
const title = `${packageName} ${item.version}`;
6262
const releaseId = `${packageName}@${item.version}`;
63-
const releaseUrl = `${baseUrl}?release=${encodeURIComponent(releaseId)}`;
64-
const guidUrl = `${baseUrl}#${releaseId}`;
63+
64+
const releaseUrl = `${baseUrl}#${encodeURIComponent(releaseId)}`;
65+
const guidUrl = releaseUrl;
6566
const pubDate = formatRssDate(item.record.timestamp);
6667
const isoReleaseDate = new Date(item.record.timestamp).toISOString().split('T')[0];
6768
const featureCount = features.length;
@@ -128,8 +129,7 @@ export default async function changelogRssHandler(
128129
? productsParam.split(',').map(p => shortNameToPackage[p.trim()] || p.trim()).filter(Boolean)
129130
: Object.keys(changelogs); // Default to all packages if none specified
130131

131-
const changelogPath = url.pathname.replace(/\/api\/changelog-rss$/, '/docs/realm/changelog');
132-
const baseUrl = `${url.protocol}//${url.host}${changelogPath}`;
132+
const baseUrl = 'https://redocly.com/docs/realm/changelog';
133133

134134
const resolved: ChangelogWithDeps[] = [];
135135

0 commit comments

Comments
 (0)