From 20160d21159084ba386636a7ad8a32369cb3fdeb Mon Sep 17 00:00:00 2001 From: Dhairya Majmudar <2022kuec2045@iiitkota.ac.in> Date: Wed, 4 Sep 2024 21:12:16 +0530 Subject: [PATCH 1/4] test commit --- .github/workflows/update-docs-in-website.yml | 2 +- apps/generator/docs/model-generation.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-docs-in-website.yml b/.github/workflows/update-docs-in-website.yml index 6394cefae..698c32be9 100644 --- a/.github/workflows/update-docs-in-website.yml +++ b/.github/workflows/update-docs-in-website.yml @@ -5,7 +5,7 @@ on: branches: - 'master' paths: - - 'docs/*.md' + - 'apps/generator/docs/*.md' jobs: Make-PR: diff --git a/apps/generator/docs/model-generation.md b/apps/generator/docs/model-generation.md index f15ea8d24..64b4c2f54 100644 --- a/apps/generator/docs/model-generation.md +++ b/apps/generator/docs/model-generation.md @@ -3,7 +3,7 @@ title: "Adding models generation in template" weight: 200 --- -This guide will walk you through the process of enabling models/types generation in a template by using [Modelina](https://www.asyncapi.com/tools/modelina). +This guide will walk you through the process of enabling models/types generation in a template by using [Modelina](https://www.asyncapi.com/tools). Modelina is an AsyncAPI library designed for generating data models using inputs such as [AsyncAPI](generator/asyncapi-document), OpenAPI, or JSON schema inputs. Its functionality revolves around creating data models from the provided AsyncAPI document and the model template, which defines message payloads. It is better to use Modelina in your template to handle model generation rather than providing custom templates. From 25536b0db66d348e7fae641777f1a603c62a138a Mon Sep 17 00:00:00 2001 From: Dhairya Majmudar <2022kuec2045@iiitkota.ac.in> Date: Wed, 4 Sep 2024 21:39:19 +0530 Subject: [PATCH 2/4] updating paths --- .github/workflows/update-docs-in-website.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-docs-in-website.yml b/.github/workflows/update-docs-in-website.yml index 698c32be9..c02cd0db4 100644 --- a/.github/workflows/update-docs-in-website.yml +++ b/.github/workflows/update-docs-in-website.yml @@ -37,10 +37,10 @@ jobs: run: | rm -r ./markdown/docs/tools/generator mkdir -p ./markdown/docs/tools/generator - rm ../generator/docs/README.md - rm -r ../generator/docs/jsdoc2md-handlebars + rm ./apps/generator/docs/README.md + rm -r ./apps/generator/docs/jsdoc2md-handlebars printf "%s\ntitle: Generator\nweight: 3\n%s" "---" "---"> ../generator/docs/_section.md - mv ../generator/docs/*.md ./markdown/docs/tools/generator + mv ./apps/generator/docs/*.md ./markdown/docs/tools/generator - name: Commit and push working-directory: ./website run: | From 6527aeccafa37ffc50659975a435e25bb7cafdd2 Mon Sep 17 00:00:00 2001 From: Dhairya Majmudar <2022kuec2045@iiitkota.ac.in> Date: Wed, 4 Sep 2024 21:42:09 +0530 Subject: [PATCH 3/4] removing tests --- apps/generator/docs/model-generation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/generator/docs/model-generation.md b/apps/generator/docs/model-generation.md index 64b4c2f54..f15ea8d24 100644 --- a/apps/generator/docs/model-generation.md +++ b/apps/generator/docs/model-generation.md @@ -3,7 +3,7 @@ title: "Adding models generation in template" weight: 200 --- -This guide will walk you through the process of enabling models/types generation in a template by using [Modelina](https://www.asyncapi.com/tools). +This guide will walk you through the process of enabling models/types generation in a template by using [Modelina](https://www.asyncapi.com/tools/modelina). Modelina is an AsyncAPI library designed for generating data models using inputs such as [AsyncAPI](generator/asyncapi-document), OpenAPI, or JSON schema inputs. Its functionality revolves around creating data models from the provided AsyncAPI document and the model template, which defines message payloads. It is better to use Modelina in your template to handle model generation rather than providing custom templates. From 3bcac0b36e351eeea6b378cb8158954b5cda8773 Mon Sep 17 00:00:00 2001 From: Dhairya Majmudar <2022kuec2045@iiitkota.ac.in> Date: Wed, 4 Sep 2024 21:50:47 +0530 Subject: [PATCH 4/4] fixing the paths --- .github/workflows/update-docs-in-website.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-docs-in-website.yml b/.github/workflows/update-docs-in-website.yml index c02cd0db4..b39628970 100644 --- a/.github/workflows/update-docs-in-website.yml +++ b/.github/workflows/update-docs-in-website.yml @@ -37,10 +37,10 @@ jobs: run: | rm -r ./markdown/docs/tools/generator mkdir -p ./markdown/docs/tools/generator - rm ./apps/generator/docs/README.md - rm -r ./apps/generator/docs/jsdoc2md-handlebars + rm ../generator/apps/generator/docs/README.md + rm -r ../generator/apps/generator/docs/jsdoc2md-handlebars printf "%s\ntitle: Generator\nweight: 3\n%s" "---" "---"> ../generator/docs/_section.md - mv ./apps/generator/docs/*.md ./markdown/docs/tools/generator + mv ../generator/apps/generator/docs/*.md ./markdown/docs/tools/generator - name: Commit and push working-directory: ./website run: |