Skip to content

Commit a290af3

Browse files
docs: adjust API.md templates to keep </dd> inline and prevent website break (#1748)
Co-authored-by: lightning-sagar <lightningsagar0@gmail.com> Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
1 parent 205b335 commit a290af3

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# Ensure script files have LF line endings
22
*.sh text eol=lf
33
*.bash text eol=lf
4+
5+
# Normalize documentation and templates
6+
*.md text eol=lf
7+
*.hbs text eol=lf
8+
*.js text eol=lf

apps/generator/docs/api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ Reference API documentation for AsyncAPI Generator library.
88

99
<dl>
1010
<dt><a href="#Generator">Generator</a></dt>
11-
<dd></dd>
1211
</dl>
1312

1413
## Members
1514

1615
<dl>
1716
<dt><a href="#listBakedInTemplates">listBakedInTemplates</a> ⇒ <code>Array.&lt;Object&gt;</code></dt>
1817
<dd><p>List core templates, optionally filter by type, stack, protocol, or target.
19-
Use name of returned templates as input for the <code>generate</code> method for template generation. Such core templates code is part of the @asyncapi/generator package.</p></dd>
18+
Use name of returned templates as input for the `generate` method for template generation. Such core templates code is part of the @asyncapi/generator package.</p></dd>
2019
</dl>
2120

2221

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{#globals kind=kind ~}}
2+
{{#if @first~}}{{>heading-indent}}{{../title}}
3+
4+
<dl>
5+
{{/if~}}
6+
<dt>{{>sig-link-html}}</dt>
7+
{{#if description~}}
8+
<dd><p>{{{inlineLinks description}}}</p></dd>
9+
{{/if}}
10+
{{#if @last~}}</dl>
11+
12+
{{/if~}}
13+
{{/globals~}}

apps/generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"test:integration": "npm run test:cleanup && jest --testPathPattern=integration --modulePathIgnorePatterns='./__mocks__(?!\\/loglevel\\.js$)'",
1919
"test:integration:update": "npm run test:integration -- -u",
2020
"test:cleanup": "rimraf \"test/temp\"",
21-
"docs": "jsdoc2md --partial docs/jsdoc2md-handlebars/custom-sig-name.hbs docs/jsdoc2md-handlebars/main.hbs docs/jsdoc2md-handlebars/header.hbs docs/jsdoc2md-handlebars/defaultvalue.hbs docs/jsdoc2md-handlebars/link.hbs docs/jsdoc2md-handlebars/params-table.hbs docs/jsdoc2md-handlebars/member-index-list.hbs docs/jsdoc2md-handlebars/member-index-grouped.hbs docs/jsdoc2md-handlebars/members.hbs --files lib/generator.js > docs/api.md",
21+
"docs": "jsdoc2md --partial \"docs/jsdoc2md-handlebars/**/*.hbs\" --files lib/generator.js > docs/api.md",
2222
"docker:build": "docker build -t asyncapi/generator:latest .",
2323
"lint": "eslint --max-warnings 0 --config ../../.eslintrc --ignore-path ../../.eslintignore .",
2424
"lint:fix": "npm run lint -- --fix",

0 commit comments

Comments
 (0)