eventcatalog
eventcatalog copied to clipboard
Enable adding new pages to the site
Have you read the Contributing Guidelines on issues?
- [X] I have 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.