Skip to content

Commit

Permalink
generate toc
Browse files Browse the repository at this point in the history
  • Loading branch information
Tenischev committed Oct 13, 2023
1 parent 5904dc6 commit 376446b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Java Spring template for the [AsyncAPI Generator](https://github.com/asyncapi/ge

---
[![License](https://img.shields.io/github/license/asyncapi/java-spring-template)](https://github.com/asyncapi/java-spring-template/blob/master/LICENSE)
![npm](https://img.shields.io/npm/v/@asyncapi/java-spring-template?style=flat-square)<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![npm](https://img.shields.io/npm/v/@asyncapi/java-spring-template?style=flat-square)](https://www.npmjs.com/package/@asyncapi/java-spring-template)<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)<!-- ALL-CONTRIBUTORS-BADGE:END -->
![downloads](https://img.shields.io/npm/dm/@asyncapi/java-spring-template?style=flat-square)
---
Expand All @@ -13,6 +13,14 @@ Java Spring template for the [AsyncAPI Generator](https://github.com/asyncapi/ge

<!-- toc -->

- [Usage](#usage)
* [AsyncAPI definitions](#asyncapi-definitions)
* [Supported parameters](#supported-parameters)
* [Examples](#examples)
- [Run it](#run-it)
- [Development](#development)
* [Missing features](#missing-features)
- [Contributors ✨](#contributors-%E2%9C%A8)

<!-- tocstop -->

Expand Down Expand Up @@ -55,7 +63,7 @@ It is RECOMMENDED to not use anonymous objects in payload and components definit
```
- Complete example for MQTT is [here](tests/mocks/mqtt.yml).
#### Supported parameters
### Supported parameters
|Name|Description| Required | Default |
|---|---|----------|--------------------------|
Expand All @@ -72,7 +80,7 @@ It is RECOMMENDED to not use anonymous objects in payload and components definit
|completionTimeout|Only for MQTT. The completion timeout in milliseconds for operations. The default completion timeout is 30000 milliseconds.| No | `30000` |
|mqttClientId| Only for MQTT. Provides the client identifier for the MQTT server. This parameter overrides the value of the clientId if it's set in the AsyncAPI file.If both aren't provided, a default value is set.| No | |
|asyncapiFileDir| Path where original AsyncAPI file will be stored.| No | `src/main/resources/api/` |
#### Examples
### Examples

The shortest possible syntax:
```bash
Expand Down Expand Up @@ -147,13 +155,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://github.com/Tenischev"><img src="https://avatars1.githubusercontent.com/u/4137916?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Semen</b></sub></a><br /><a href="#maintenance-Tenischev" title="Maintenance">🚧</a><a href="https://github.com/asyncapi/java-spring-template/commits?author=Tenischev" title="Documentation">πŸ“–</a> <a href="https://github.com/asyncapi/java-spring-template/commits?author=Tenischev" title="Code">πŸ’»</a><a href="https://github.com/asyncapi/java-spring-template/issues?q=author%3ATenischev" title="Bug reports">πŸ›</a><a href="https://github.com/asyncapi/java-spring-template/pulls?q=is%3Apr+reviewed-by%3ATenischev" title="Reviewed Pull Requests">πŸ‘€</a><a href="https://github.com/asyncapi/java-spring-template/commits?author=Tenischev" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/Tenischev"><img src="https://avatars1.githubusercontent.com/u/4137916?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Semen</b></sub></a><br /><a href="https://github.com/asyncapi/java-spring-template/commits?author=Tenischev" title="Documentation">πŸ“–</a> <a href="https://github.com/asyncapi/java-spring-template/commits?author=Tenischev" title="Code">πŸ’»</a></td>
<td align="center"><a href="https://www.linkedin.com/in/francesconobilia/"><img src="https://avatars1.githubusercontent.com/u/10063590?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Francesco Nobilia</b></sub></a><br /><a href="https://github.com/asyncapi/java-spring-template/pulls?q=is%3Apr+reviewed-by%3Afnobilia" title="Reviewed Pull Requests">πŸ‘€</a></td>
<td align="center"><a href="https://www.linkedin.com/in/derberg/"><img src="https://avatars.githubusercontent.com/u/6995927?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Lukasz Gornicki</b></sub></a><br /><a href="https://github.com/asyncapi/java-spring-template/pulls?q=is%3Apr+reviewed-by%3Aderberg" title="Reviewed Pull Requests">πŸ‘€</a></td>
<td align="center"><a href="http://www.amrutprabhu.com"><img src="https://avatars.githubusercontent.com/u/8725949?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Amrut Prabhu</b></sub></a><br /><a href="https://github.com/asyncapi/java-spring-template/commits?author=amrutprabhu" title="Code">πŸ’»</a></td>
<td align="center"><a href="https://github.com/VaishnaviNandakumar"><img src="https://avatars.githubusercontent.com/u/41518119?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vaishnavi Nandakumar</b></sub></a><br /><a href="https://github.com/asyncapi/java-spring-template/commits?author=VaishnaviNandakumar" title="Code">πŸ’»</a></td>
<td align="center"><a href="https://github.com/taotao100"><img src="https://avatars.githubusercontent.com/u/7056867?v=4?s=100" width="100px;" alt=""/><br /><sub><b>taotao100</b></sub></a><br /><a href="https://github.com/asyncapi/java-spring-template/issues?q=is%3Aissue+author%3Ataotao100" title="Bug reports">πŸ›</a>
<td align="center"><a href="https://github.com/jbiscella"><img src="https://avatars.githubusercontent.com/u/7963565?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jacopo Biscella</b></sub></a><br /><a href="https://github.com/asyncapi/java-spring-template/issues?q=is%3Aissue+author%3Ajbiscella" title="Bug reports">πŸ›</a>
</tr>
</table>

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"scripts": {
"test": "rimraf test/temp && jest --modulePathIgnorePatterns='./template'",
"lint": "echo \"No linter specified yet\"",
"generate:assets": "echo 'No additional assets need to be generated at the moment'",
"generate:readme:toc": "markdown-toc -i README.md",
"generate:assets": "npm run generate:readme:toc",
"bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION"
},
"publishConfig": {
Expand All @@ -40,7 +41,8 @@
"@asyncapi/generator": "^1.14.0",
"jest": "^29.6.4",
"node-fetch": "^2.6.1",
"rimraf": "^2.2.8"
"rimraf": "^2.2.8",
"markdown-toc": "^1.2.0"
},
"generator": {
"supportedProtocols": [
Expand Down

0 comments on commit 376446b

Please sign in to comment.