Skip to content

Conversation

DivitJain26
Copy link

@DivitJain26 DivitJain26 commented Oct 2, 2025

Description

  • Fixed the </dd> being pushed to a new line in generated api.md.
  • Updated the Handlebars template params-table.hbs to correctly inline the closing </dd>.
  • Regenerated docs/api.md using the updated template.

Related issue(s)

Screenshot 2025-10-02 122507

Summary by CodeRabbit

  • Documentation

    • Refreshed API docs with improved code formatting, reflowed text, and expanded parameter tables.
    • Enhanced global index rendering with clearer headings, signature links, and inline-linkified descriptions for better readability.
    • No changes to public APIs or behavior.
  • Chores

    • Updated documentation build script to automatically include all template partials, improving maintainability and consistency of generated docs.
    • Output location and overall documentation flow remain unchanged.

Copy link

changeset-bot bot commented Oct 2, 2025

⚠️ No Changeset found

Latest commit: 1d1ce4b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

coderabbitai bot commented Oct 2, 2025

Walkthrough

Documentation in apps/generator/docs/api.md was reformatted. A new Handlebars template for global index definition lists was added. The docs generation script in apps/generator/package.json now discovers partials via a glob pattern instead of an explicit list.

Changes

Cohort / File(s) Summary of changes
Docs content update
apps/generator/docs/api.md
Reflowed and standardized formatting, inline code markup adjustments, expanded parameter sections; no functional or API changes.
Docs templates addition
apps/generator/docs/jsdoc2md-handlebars/main-index/global-index/global-index-dl.hbs
Added Handlebars template to render globals as a definition list with signature links and descriptions; uses existing helpers/partials and handles first/last item control flow.
Docs build script update
apps/generator/package.json
Changed docs script to use glob-based partial discovery ('docs/jsdoc2md-handlebars/**/*.hbs') for jsdoc2md; output target unchanged.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related issues

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Linked Issues Check ⚠️ Warning The pull request links to issue #791 which requests configurability of the Nunjucks templating engine, but this changeset exclusively modifies Handlebars templates and jsdoc2md settings to address an HTML formatting issue and does not implement any Nunjucks configuration functionality. The linked issue’s focus on Nunjucks customization should either be fulfilled by adding the requested configuration options or the pull request should be relinked to an issue that accurately describes the HTML formatting fix being applied.
Out of Scope Changes Check ⚠️ Warning All changes override Handlebars partials and update the documentation generation script in package.json to fix a newline rendering issue, which is unrelated to the Nunjucks configuration objective in the linked issue and therefore out of scope. Consider splitting the Handlebars template adjustments and documentation regeneration into a separate pull request tied to a new issue for the HTML formatting fix, and reserve issue #791 for implementing Nunjucks configurability.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title concisely describes the primary change of preventing the closing tag from breaking onto a new line in the generated api.md and uses the conventional commit prefix correctly.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@asyncapi-bot
Copy link
Contributor

What reviewer looks at during PR review

The following are ideal points maintainers look for during review. Reviewing these points yourself beforehand can help streamline the review process and reduce time to merge.

  1. PR Title: Use a concise title that follows our Conventional Commits guidelines and clearly summarizes the change using imperative mood (it means spoken or written as if giving a command or instruction, like "add new helper for listing operations")

    Note - In Generator, prepend feat: or fix: in PR title only when PATCH/MINOR release must be triggered.

  2. PR Description: Clearly explain the issue being solved, summarize the changes made, and mention the related issue.

    Note - In Generator, we use Maintainers Work board to track progress. Ensure the PR Description includes Resolves #<issue-number> or Fixes #<issue-number> this will automatically close the linked issue when the PR is merged and helps automate the maintainers workflow.

  3. Documentation: Update the relevant Generator documentation to accurately reflect the changes introduced in the PR, ensuring users and contributors have up-to-date guidance.

  4. Comments and JSDoc: Write clear and consistent JSDoc comments for functions, including parameter types, return values, and error conditions, so others can easily understand and use the code.

  5. DRY Code: Ensure the code follows the Don't Repeat Yourself principle. Look out for duplicate logic that can be reused.

  6. Test Coverage: Ensure the new code is well-tested with meaningful test cases that pass consistently and cover all relevant edge cases.

  7. Commit History: Contributors should avoid force-pushing as much as possible. It makes it harder to track incremental changes and review the latest updates.

  8. Template Design Principles Alignment: While reviewing template-related changes in the packages/ directory, ensure they align with the Assumptions and Principles. If any principle feels outdated or no longer applicable, start a discussion these principles are meant to evolve with the project.

  9. Reduce Scope When Needed: If an issue or PR feels too large or complex, consider splitting it and creating follow-up issues. Smaller, focused PRs are easier to review and merge.

  10. Bot Comments: As reviewers, check that contributors have appropriately addressed comments or suggestions made by automated bots. If there are bot comments the reviewer disagrees with, react to them or mark them as resolved, so the review history remains clear and accurate.

@derberg
Copy link
Member

derberg commented Oct 2, 2025

@DivitJain26 thanks for quick PR. Please just:

  • change prefix of pr title to docs only
  • check requirements of the issue again, one thing is missing in the PR

and can you specify how much Dosu comment helped you with the contribution?

@DivitJain26 DivitJain26 changed the title fix(docs): prevent </dd> from breaking into newline in api.md docs: prevent </dd> from breaking into newline in api.md Oct 2, 2025
@DivitJain26
Copy link
Author

DivitJain26 commented Oct 2, 2025

@DivitJain26 thanks for quick PR. Please just:

  • change prefix of pr title to docs only
  • check requirements of the issue again, one thing is missing in the PR

and can you specify how much Dosu comment helped you with the contribution?

  • Regenerated docs/api.md using the updated template.
  • The Dosu comment on the related issue was very helpful. It pointed me towards whitespace control in Handlebars templates, which directly led to fixing the </dd> newline problem.

@DivitJain26
Copy link
Author

@DivitJain26 thanks for quick PR. Please just:

  • change prefix of pr title to docs only
  • check requirements of the issue again, one thing is missing in the PR

and can you specify how much Dosu comment helped you with the contribution?

  • Regenerated docs/api.md using the updated template.
  • The Dosu comment on the related issue was very helpful. It pointed me towards whitespace control in Handlebars templates, which directly led to fixing the </dd> newline problem.

is there something else I should do

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, now look at the generated api.md - it is not really fixed, you were suppose to prevent dd going into newline. It is still going into new line, and additionally you added dl in multiple places

@aasim-maverick
Copy link

Hey @DivitJain26, I think you were on the right path, maybe Dosu was kinda misleading here.

and can you specify how much Dosu comment helped you with the contribution?

@derberg, I'm not sure how reliable Dosu is in general but here it was mildly misleading. Still an appreciable analysis nonetheless, I wouldn't expect much better from an agent at this point.

None of the six .hbs files in /apps/generator/docs/jsdoc2md-handlebars currently use the <dd> and </dd> tags. I don't think the culprit here is any of those handlebar files.

I believe some other dmd partial(s) is/are generating these <dd> and </dd> tags.
The culprits show themselves:

$ grep -r "<dd>" node_modules/dmd/partials/
node_modules/dmd/partials/main-index/module-index/module-index-dl.hbs:<dd>{{{md (inlineLinks description)}}}</dd>
node_modules/dmd/partials/main-index/global-index/global-index-dl.hbs:<dd>{{{md (inlineLinks description)}}}</dd>

The <dd> tags are coming from the following dmd partials:

  1. module-index-dl.hbs:
{{#modules~}}
{{#if @first~}}{{>heading-indent}}Modules

<dl>
{{/if~}}
<dt>{{>sig-link-html}}</dt>
<dd>{{{md (inlineLinks description)}}}</dd>
{{#if @last~}}</dl>

{{/if~}}
{{/modules~}}
  1. global-index-dl.hbs:
{{#globals kind=kind ~}}
{{#if @first~}}{{>heading-indent}}{{../title}}

<dl>
{{/if~}}
<dt>{{>sig-link-html}}</dt>
<dd>{{{md (inlineLinks description)}}}</dd>
{{#if @last~}}</dl>

{{/if~}}
{{/globals~}}

I think the issue is clearer now right?

I think the {{{md ...}}} helper is what's adding the <p> tags and newlines in api.md. Maybe we can override these files and remove this helper.

These are nested inside subdirectories so what we can do to override these is:

  1. Create /apps/generator/docs/jsdoc2md-handlebars/main-index/module-index/module-index-dl.hbs
  2. Create /apps/generator/docs/jsdoc2md-handlebars/main-index/global-index/global-index-dl.hbs

and remove that md helper in both of them and tweak /apps/genrator/package.json to use:

"docs": "jsdoc2md --partial 'docs/jsdoc2md-handlebars/**/*.hbs' --files lib/generator.js > docs/api.md",

@aasim-maverick
Copy link

  1. Create /apps/generator/docs/jsdoc2md-handlebars/main-index/module-index/module-index-dl.hbs
  2. Create /apps/generator/docs/jsdoc2md-handlebars/main-index/global-index/global-index-dl.hbs

I think only step 2 is enough, step 1 can be safely skipped for this issue.

We can just have a /apps/generator/docs/jsdoc2md-handlebars/main-index/global-index/global-index-dl.hbs :

{{#globals kind=kind ~}}
{{#if @first~}}{{>heading-indent}}{{../title}}
<dl>
{{/if~}}
<dt>{{>sig-link-html}}</dt>
<dd>{{{inlineLinks description}}}</dd>
{{#if @last~}}</dl>
{{/if~}}
{{/globals~}}

@DivitJain26 DivitJain26 force-pushed the fix/1737-api-md-template branch from 58f8f7f to fca8d11 Compare October 7, 2025 16:04
@DivitJain26
Copy link
Author

  1. Create /apps/generator/docs/jsdoc2md-handlebars/main-index/module-index/module-index-dl.hbs
  2. Create /apps/generator/docs/jsdoc2md-handlebars/main-index/global-index/global-index-dl.hbs

I think only step 2 is enough, step 1 can be safely skipped for this issue.

We can just have a /apps/generator/docs/jsdoc2md-handlebars/main-index/global-index/global-index-dl.hbs :

{{#globals kind=kind ~}}
{{#if @first~}}{{>heading-indent}}{{../title}}
<dl>
{{/if~}}
<dt>{{>sig-link-html}}</dt>
<dd>{{{inlineLinks description}}}</dd>
{{#if @last~}}</dl>
{{/if~}}
{{/globals~}}

Thank you so much @aasim-maverick, you have been a Great Help, @derberg Please review

{{/if~}}
<dt>{{>sig-link-html}}</dt>
<dd>{{{md (inlineLinks description)}}}</dd>
{{#if @last~}}</dl>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to put the </dl> on line 8 onto a newline on 9.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@aasim-maverick
Copy link

tweak /apps/genrator/package.json to use:

"docs": "jsdoc2md --partial 'docs/jsdoc2md-handlebars/**/*.hbs' --files lib/generator.js > docs/api.md",

Maybe you missed this in your commit, did you?

@DivitJain26 DivitJain26 force-pushed the fix/1737-api-md-template branch from fca8d11 to d1b9703 Compare October 7, 2025 16:39
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (1)
apps/generator/docs/api.md (1)

69-88: Generated file reflects invalid HTML structure from template.

This generated documentation contains invalid HTML where <dl> elements wrap markdown-style list items. This is a consequence of the issue in params-table.hbs (see my comment on that file).

Once the template is fixed, regenerate this file to correct the HTML structure throughout the document.

The AI summary claims "purely presentational formatting changes" with "no functional logic changes," but the introduction of <dl> wrapper around non-definition-list content is actually a structural HTML change that violates HTML5 specification.

🧹 Nitpick comments (1)
apps/generator/docs/api.md (1)

69-70: Consider using a proper heading for "Params" section.

The static analysis tool (markdownlint) flags line 70 because **Params** uses emphasis (bold) instead of a proper markdown heading. While this matches the existing template pattern, consider whether "Params" should be a heading (e.g., ### Params) for better document structure and accessibility.

This would require updating the params-table.hbs template to emit a heading instead of bold text. However, verify this doesn't conflict with the existing documentation structure and hierarchy.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fca8d11 and d1b9703.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (3)
  • apps/generator/docs/api.md (10 hunks)
  • apps/generator/docs/jsdoc2md-handlebars/main-index/global-index/global-index-dl.hbs (1 hunks)
  • apps/generator/docs/jsdoc2md-handlebars/params-table.hbs (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/generator/docs/jsdoc2md-handlebars/main-index/global-index/global-index-dl.hbs
🧰 Additional context used
🪛 markdownlint-cli2 (0.18.1)
apps/generator/docs/api.md

70-70: Emphasis used instead of a heading

(MD036, no-emphasis-as-heading)


240-240: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


240-240: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


381-381: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


381-381: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


408-408: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


408-408: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


446-446: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


446-446: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


476-476: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


476-476: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)

Comment on lines 4 to 6
<dl>{{#each this~}}
{{indent}}- {{name}}{{#if type}} {{>linked-type-list types=type.names delimiter=" | " }}{{/if}}{{#unless (equal defaultvalue undefined)}} {{>defaultvalue equals=true ~}}{{/unless}}{{#if description}} - {{{inlineLinks description}}}{{/if}}
{{/each}}
{{/each~}}</dl>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion | 🟠 Major

🧩 Analysis chain

Invalid HTML structure: <dl> cannot contain markdown list items.

The current implementation wraps markdown-style list items (with - prefix) inside a <dl> element, which violates HTML5 specification. According to HTML5 standards, a <dl> (definition list) must contain only <dt> (definition term) and <dd> (definition description) elements, not raw text or markdown list items.

This malformed HTML will:

  • Fail HTML validation
  • Potentially break rendering in browsers
  • Break accessibility tools and screen readers
  • Not achieve the intended formatting

Based on the PR discussion, the root cause appears to be in the dmd partials (node_modules/dmd/partials/main-index/global-index/global-index-dl.hbs), not in this file. According to aasim-maverick's investigation, the solution should involve creating a local override of the dmd partial to control the whitespace around <dd> tags.

Recommended approach:

Either revert this change and implement the proper fix in the dmd partial overrides, or convert this template to generate proper HTML structure:

{{#if params}}
{{#params}}**Params**

{{#each this~}}
<dl>
<dt>{{name}}</dt>
<dd>
{{#if type}}{{>linked-type-list types=type.names delimiter=" | " }}{{/if}}{{#unless (equal defaultvalue undefined)}} {{>defaultvalue equals=true}}{{/unless}}{{#if description}} - {{{inlineLinks description}}}{{/if}}
</dd>
</dl>
{{/each~}}

{{/params~}}
{{/if}}

However, based on the PR discussion, please verify with the reviewer whether this file should be modified at all, or if the fix should be in the dmd partial overrides as suggested by aasim-maverick.


🏁 Script executed:

sed -n '1,20p' apps/generator/docs/jsdoc2md-handlebars/params-table.hbs

Length of output: 334


Use <dt> and <dd> elements inside <dl>
The template currently nests markdown list items (- {{name}}…) inside <dl>, resulting in invalid HTML and broken rendering. Refactor to emit <dt>{{name}}</dt> and <dd>…</dd> pairs instead.

🤖 Prompt for AI Agents
In apps/generator/docs/jsdoc2md-handlebars/params-table.hbs around lines 4 to 6,
the template is outputting markdown list items inside a <dl>, producing invalid
HTML; replace the current list-item emit with proper definition term/description
pairs by rendering each parameter as <dt>{{name}}</dt> and a matching <dd>
containing the type, default value and description (preserving the existing
helpers: linked-type-list, defaultvalue and inlineLinks), ensuring conditional
rendering logic remains the same and keeping the surrounding <dl> wrapper.

@DivitJain26
Copy link
Author

tweak /apps/genrator/package.json to use:

"docs": "jsdoc2md --partial 'docs/jsdoc2md-handlebars/**/*.hbs' --files lib/generator.js > docs/api.md",

Maybe you missed this in your commit, did you?

main.hbs is wroking well with previous command

@aasim-maverick
Copy link

aasim-maverick commented Oct 7, 2025

main.hbs is wroking well with previous command

I'm not sure why there's a large diff being formed in package-lock.json, I won't be so sure but refactoring the package.json file inside the /apps/generator directory might avoid that.

@DivitJain26 DivitJain26 force-pushed the fix/1737-api-md-template branch from b9bd2bb to 7142aa2 Compare October 7, 2025 17:08
@DivitJain26 DivitJain26 closed this Oct 7, 2025
@DivitJain26 DivitJain26 force-pushed the fix/1737-api-md-template branch from 7142aa2 to 08dd7a9 Compare October 7, 2025 18:17
@DivitJain26 DivitJain26 reopened this Oct 7, 2025
Copy link

sonarqubecloud bot commented Oct 7, 2025

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d1b9703 and 1d1ce4b.

📒 Files selected for processing (3)
  • apps/generator/docs/api.md (7 hunks)
  • apps/generator/docs/jsdoc2md-handlebars/main-index/global-index/global-index-dl.hbs (1 hunks)
  • apps/generator/package.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/generator/docs/jsdoc2md-handlebars/main-index/global-index/global-index-dl.hbs
🧰 Additional context used
🪛 markdownlint-cli2 (0.18.1)
apps/generator/docs/api.md

23-23: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


24-24: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


25-25: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


26-26: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


27-27: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


28-28: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


29-29: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


30-30: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


31-31: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


32-32: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


33-33: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


34-34: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


35-35: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


36-36: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


37-37: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


38-38: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


39-39: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


40-40: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


41-41: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


42-42: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


43-43: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


44-44: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


45-45: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


46-46: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


47-47: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


48-48: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


49-49: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


50-50: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


51-51: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


52-52: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


53-53: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


54-54: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


55-55: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


77-77: Bare URL used

(MD034, no-bare-urls)


344-344: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


344-344: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


371-371: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


371-371: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


408-408: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


408-408: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


437-437: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)


437-437: Emphasis style
Expected: underscore; Actual: asterisk

(MD049, emphasis-style)

"test:integration:update": "npm run test:integration -- -u",
"test:cleanup": "rimraf \"test/temp\"",
"docs": "jsdoc2md --partial docs/jsdoc2md-handlebars/custom-sig-name.hbs docs/jsdoc2md-handlebars/main.hbs docs/jsdoc2md-handlebars/docs.hbs docs/jsdoc2md-handlebars/header.hbs docs/jsdoc2md-handlebars/defaultvalue.hbs docs/jsdoc2md-handlebars/link.hbs docs/jsdoc2md-handlebars/params-table.hbs --files lib/generator.js > docs/api.md",
"docs": "jsdoc2md --partial 'docs/jsdoc2md-handlebars/**/*.hbs' --files lib/generator.js > docs/api.md",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Fix docs script quoting for Windows compatibility.

Using single quotes in npm scripts keeps the quotes on Windows shells, so jsdoc2md receives the literal path 'docs/jsdoc2md-handlebars/**/*.hbs' and fails to load the partials. Switch to double quotes to keep the glob portable.

-    "docs": "jsdoc2md --partial 'docs/jsdoc2md-handlebars/**/*.hbs' --files lib/generator.js > docs/api.md",
+    "docs": "jsdoc2md --partial \"docs/jsdoc2md-handlebars/**/*.hbs\" --files lib/generator.js > docs/api.md",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"docs": "jsdoc2md --partial 'docs/jsdoc2md-handlebars/**/*.hbs' --files lib/generator.js > docs/api.md",
"docs": "jsdoc2md --partial \"docs/jsdoc2md-handlebars/**/*.hbs\" --files lib/generator.js > docs/api.md",
🤖 Prompt for AI Agents
In apps/generator/package.json at line 21, the npm script uses single quotes
around the jsdoc2md partials glob which breaks on Windows; replace the single
quotes with double quotes (and escape them so the package.json remains valid
JSON) so the script reads the glob as "**/docs/jsdoc2md-handlebars/**/*.hbs**"
(i.e., change 'docs/jsdoc2md-handlebars/**/*.hbs' →
\"docs/jsdoc2md-handlebars/**/*.hbs\") to make the command portable across
shells.

@@ -1,9 +1,3 @@
---
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are there so many changes in this file now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configure nunjucks

4 participants