Skip to content

Commit

Permalink
update example generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Oct 25, 2023
1 parent f7c569c commit eccb7c8
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ These are all the basic generator examples that shows a bare minimal example of
These are examples of how you can integrate Modelina into a specific scenario:
- [integrate-with-react](./integrate-with-react) - A basic example that shows how you can integrate Modelina with React.
- [integrate-with-next](./integrate-with-next) - A basic example that shows how you can integrate Modelina with Next.
- [integrate-modelina-into-maven/](./integrate-modelina-into-maven/) - A basic example that shows how you can integrate Modelina into the Java Maven build process.
- [integrate-modelina-into-maven](./integrate-modelina-into-maven) - A basic example that shows how you can integrate Modelina into the Java Maven build process.

## Python
These are all specific examples only relevant to the Python generator:
Expand Down
84 changes: 84 additions & 0 deletions modelina-website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modelina-website/scripts/build-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async function start() {
mainReadme = mainReadme.replace('<!-- tocstop -->', '');
mainReadme = mainReadme.replace('../docs/contributing.md', 'https://github.com/asyncapi/modelina/tree/master/examples/../docs/contributing.md');
for (const exampleToIgnore of examplesToIgnore) {
mainReadme = mainReadme.replace(`- [${exampleToIgnore}](?selectedExample=${exampleToIgnore}/)`, `- [${exampleToIgnore}](https://github.com/asyncapi/modelina/tree/master/examples/${exampleToIgnore})`);
mainReadme = mainReadme.replace(`- [${exampleToIgnore}](?selectedExample=${exampleToIgnore})`, `- [${exampleToIgnore}](https://github.com/asyncapi/modelina/tree/master/examples/${exampleToIgnore})`);
}
const readmePath = path.resolve(__dirname, '../config/examples_readme.json');
await writeFile(readmePath, JSON.stringify(mainReadme))
Expand Down

0 comments on commit eccb7c8

Please sign in to comment.