eventcatalog icon indicating copy to clipboard operation
eventcatalog copied to clipboard

Enable adding new pages to the site

Open huima opened this issue 1 year ago • 2 comments

Have you read the Contributing Guidelines on issues?

Description

Eventhough you can add links to other sites by adding links to header or footer, it could make sense to enable the possibility to add new pages to the nextjs site by copying for example pages directory from project directory to the .eventcatalog directory in eventcatalog/bin/eventcatalog.js script.

Adding:

fs.copySync(path.join(projectDIR, 'pages'), path.join(eventCatalogLibDir, 'pages'));

To each of the commands could be enough?

Motivation

This would enable users to define new pages in the project directory - or even overwrite some functionality of Event Catalog pages if -- for some strange reason -- they would need to do something like that.

huima avatar Mar 01 '24 12:03 huima