Skip to content

Commit 1e92303

Browse files
Adi-204asyncapi-botderberg
authored
docs: correct the links on Hooks docs page (#1394)
Co-authored-by: Adi-204 <adiboghawala@gmail.com> Co-authored-by: Chan <bot+chan@asyncapi.io> Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
1 parent 524017c commit 1e92303

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/generator/docs/hooks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ The following types of hooks are currently supported:
1111

1212
|Hook type|Description| Return type | Arguments
1313
|---|---|---|---|
14-
| `generate:before` | Called after registration of all filters and before the generator starts processing of the template. | void : Nothing is expected to be returned. | [The generator instance](/api)
15-
| `generate:after` | Called at the very end of the generation. | void : Nothing is expected to be returned. | [The generator instance](/api)
16-
| `setFileTemplateName ` | Called right before saving a new file generated by [file template](./file-templates.md). | string : a new filename for the generator to use for the file template. | [The generator instance](/api) and object in the form of `{ "originalFilename" : string }`
14+
| `generate:before` | Called after registration of all filters and before the generator starts processing of the template. | void : Nothing is expected to be returned. | [The generator instance](api)
15+
| `generate:after` | Called at the very end of the generation. | void : Nothing is expected to be returned. | [The generator instance](api)
16+
| `setFileTemplateName` | Called right before saving a new file generated by [file template](file-templates). | string : a new filename for the generator to use for the file template. | [The generator instance](api) and object in the form of `{ "originalFilename" : string }`
1717

1818
## Location
1919

apps/generator/docs/migration-nunjucks-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default function({ asyncapi }) {
112112

113113
### 6. File template
114114

115-
Check the [detailed guide on file templates](file-templates.md) to learn what is the difference between templating multiple file outputs in Nunjucks and React.
115+
Check the [detailed guide on file templates](file-templates) to learn what is the difference between templating multiple file outputs in Nunjucks and React.
116116

117117
### 7. Models generation
118118

0 commit comments

Comments
 (0)