Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/GeneratorInstallation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function GeneratorInstallation() {
const [template, setTemplate] = useState<string>('@asyncapi/[email protected]');
// By default we will have output folder flag so its set here.
const [params, setParams] = useState<string>('-o example --use-new-generator');
const [specPath, setSpecPath] = useState<string>('https://bit.ly/asyncapi');
const [specPath, setSpecPath] = useState<string>('https://asyncapi.com/s/asyncapiv2');

const generatorflags = generatorflagList as GeneratorFlags;

Expand Down
12 changes: 6 additions & 6 deletions config/generator-flags.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"@asyncapi/[email protected]": {
"flag": "-o example --use-new-generator",
"specPath" : "https://bit.ly/asyncapi"
"specPath" : "https://asyncapi.com/s/asyncapiv2"
},
"@asyncapi/markdown-template": {
"flag": "-o example",
"specPath" : "https://bit.ly/asyncapi"
"specPath" : "https://asyncapi.com/s/asyncapiv2"
},
"@asyncapi/nodejs-template": {
"flag": "-p server=production -o example",
"specPath" : "https://bit.ly/asyncapi"
"specPath" : "https://asyncapi.com/s/asyncapiv2"
},
"@asyncapi/nodejs-ws-template": {
"flag": "-p server=localhost -o example",
"specPath" : "https://raw.githubusercontent.com/asyncapi/generator/v1.4.0/test/docs/ws.yml"
},
"@asyncapi/java-spring-cloud-stream-template": {
"flag": "-o example",
"specPath" : "https://bit.ly/asyncapi"
"specPath" : "https://asyncapi.com/s/asyncapiv2"
},
"@asyncapi/java-spring-template": {
"flag": "-o example",
"specPath" : "https://bit.ly/asyncapi"
"specPath" : "https://asyncapi.com/s/asyncapiv2"
},
"@asyncapi/python-paho-template": {
"flag": "-o example",
"specPath" : "https://bit.ly/asyncapi"
"specPath" : "https://asyncapi.com/s/asyncapiv2"
}
}
6 changes: 3 additions & 3 deletions markdown/blog/february-2021-at-asyncapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ We had some significant traffic in the area of code generation templates in Febr
[Emiliano Zublena](https://github.com/emilianozublena) joined the AsyncAPI community big time by starting with donating [a new template for PHP](https://github.com/asyncapi/asyncapi-php-template). It is not yet released under **@asyncapi** scope on npm, but you can already play with it by using the AsyncAPI Generator with a direct GitHub link like:

```bash
ag https://bit.ly/asyncapi https://github.com/asyncapi/asyncapi-php-template -o output`
ag https://asyncapi.com/s/asyncapiv2 https://github.com/asyncapi/asyncapi-php-template -o output`
```

### Go

We merged the initial pull request to the [Go template](https://github.com/asyncapi/go-template). The initial contributor was not able to continue working on the template, but the foundation was there. [Emiliano Zublena](https://github.com/emilianozublena) and [Takumi Sueda](https://github.com/puhitaku) will try to help to drive forward template development. This template is not yet released as we need to get some feedback from the community first. Give it a try with:

```bash
ag https://bit.ly/asyncapi https://github.com/asyncapi/go-template -o output
ag https://asyncapi.com/s/asyncapiv2 https://github.com/asyncapi/go-template -o output
```
Let us know what you think in the GitHub issues section. Thank you, [Jacob Poston](https://github.com/jposton96a) for your initial hard work on the template!

Expand Down Expand Up @@ -154,7 +154,7 @@ We are very noisy :sweat_smile:
EOF

# 3, Generate Markdown file that includes the frontmatter
ag https://bit.ly/asyncapi @asyncapi/markdown-template -o output -p frontMatter=ssg.yml
ag https://asyncapi.com/s/asyncapiv2 @asyncapi/markdown-template -o output -p frontMatter=ssg.yml

# 4. Check out the output
cat output/asyncapi.md
Expand Down
2 changes: 1 addition & 1 deletion markdown/docs/tools/generator/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ asyncapi generate fromTemplate asyncapi.yaml @asyncapi/[email protected] --use

**Generating from a URL:**
```bash
asyncapi generate fromTemplate https://bit.ly/asyncapi @asyncapi/[email protected] --use-new-generator
asyncapi generate fromTemplate https://asyncapi.com/s/asyncapiv2 @asyncapi/[email protected] --use-new-generator
```

**Specify where to put the result:**
Expand Down
3 changes: 3 additions & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ https://www.asyncapi.io/* https://www.asyncapi.com/:splat 301!
# Additional redirection
/community/meetings /community/events 301!
/cheatsheet https://github.com/asyncapi/website/tree/master/cheatsheet 302!

#short urls
/s/asyncapiv2 https://raw.githubusercontent.com/asyncapi/asyncapi/2.0.0/examples/2.0.0/streetlights.yml 301!
Loading