event-catalog / eventcatalog

An open source documentation tool to bring discoverability to your event-driven architectures
https://eventcatalog.dev
MIT License
1.78k stars 151 forks source link

Events containing "events" in their name fails to be shown in event catalog #834

Closed HansMartinJ closed 1 month ago

HansMartinJ commented 1 month ago

I tried this:

created event directory called "foo-bar-events/"

This happened:

it wasn't shown in event catalog

I expected this:

for it to be shown

Is there a workaround?

not have the event contain "events"

Anything else?

The problem is in getTargetPath in core/scripts/catalog-to-astro-content-directory.js. More specifically with the split

EventCatalog Version

2.8.1

Node.js Version

v22.8.0

Platform(s)

No response

Community Notes

devpsk commented 1 month ago

I have a similar situation, look at: https://github.com/event-catalog/eventcatalog/pull/749/files

boyney123 commented 1 month ago

Hey, thanks for raising this. This should be fixed in 2.9.1, give that ago, and feel free to reopen the issue if you still have problems, with instructions how we can replicate it. Thanks!