Skip to content

Commit

Permalink
fix(core): changelog buttons now render the correct changelog (#931)
Browse files Browse the repository at this point in the history
* fix(core): changelog buttons now render the correct changelog

* Create thin-pens-chew.md
  • Loading branch information
boyney123 authored Nov 4, 2024
1 parent 7445dd9 commit d739d7b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-pens-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eventcatalog/core": patch
---

fix(core): changelog buttons now render the correct changelog
2 changes: 1 addition & 1 deletion src/components/SideBars/DomainSideBar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const ownersList = owners.map((o) => ({
<span class="block">View in visualiser</span>
</a>
<a
href={buildUrl(`/docs/${domain.collection}/${domain.data.id}/${domain.data.version}/changelog`)}
href={buildUrl(`/docs/${domain.collection}/${domain.data.id}/${domain.data.latestVersion}/changelog`)}
class="flex items-center space-x-2 justify-center text-center rounded-md w-full bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-100/60 hover:text-primary"
>
<ScrollText strokeWidth={2} size={16} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/SideBars/MessageSideBar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const schemaURL = path.join(publicPath, schemaFilePath || '');
</a>

<a
href={buildUrl(`/docs/${message.collection}/${message.data.id}/${message.data.version}/changelog`)}
href={buildUrl(`/docs/${message.collection}/${message.data.id}/${message.data.latestVersion}/changelog`)}
class="flex items-center space-x-2 justify-center text-center rounded-md w-full bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-100/60 hover:text-primary"
>
<ScrollText strokeWidth={2} size={16} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/SideBars/ServiceSideBar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const schemaURL = join(publicPath, schemaFilePath || '');
<span class="block">View in visualiser</span>
</a>
<a
href={buildUrl(`/docs/${service.collection}/${service.data.id}/${service.data.version}/changelog`)}
href={buildUrl(`/docs/${service.collection}/${service.data.id}/${service.data.latestVersion}/changelog`)}
class="flex items-center space-x-2 justify-center text-center rounded-md w-full bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-100/60 hover:text-primary"
>
<ScrollText strokeWidth={2} size={16} />
Expand Down

0 comments on commit d739d7b

Please sign in to comment.