Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Description from @categoryDescription missing in docs since 0.27.0 #2787

Closed
blutorange opened this issue Nov 27, 2024 · 3 comments
Closed

Description from @categoryDescription missing in docs since 0.27.0 #2787

blutorange opened this issue Nov 27, 2024 · 3 comments
Labels
bug Functionality does not match expectation
Milestone

Comments

@blutorange
Copy link

Search terms

category description missing

Description

I was updating typedoc-plugin-merge-modules (krisztianb/typedoc-plugin-merge-modules#21) to use ESM so that it can be used with TypeDoc 0.27 when I noticed some tests of that plugin were failing after the update. After taking a look and trying it without the plugin, TypeDoc's behavior regarding @categoryDescription seems to have that changed -- in that it does not seem to output the description anymore.

I found one note in the changelog regarding that tag, but it sounds like it should affect only plugin authors, but not people using the CLI?

API: @group, @category, @groupDescription and @categoryDescription will no longer be removed from the reflections they are present on. They are skipped during rendering with the notRenderedTags option.

Steps to reproduce the bug

Take the example from the documentation for @categoryDescription:

// cat.ts
/**
 * @categoryDescription Advanced Use
 * These functions are available for...
 * @module
 */

/**
 * @category General Use
 */
export function runProcess(): void {}

/**
 * @category Advanced Use
 */
export function unref(): void {}

/**
 * @category Advanced Use
 */
export function ref(): void{}

And run npx typedoc cat.ts --out docs

Expected Behavior

TypeDoc should output the category description in the docs.

Actual Behavior

With TypeDoc 0.26.11:

image

With TypeDoc 0.27.0:

image

Also, even grep -r docs -e 'These functions are available' doesn't find anything, so it's definitely nowhere in the generated docs.

Environment

  • Typedoc version: 0.26.11 / 0.27.0
  • TypeScript version: 5.6.3
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Nov 27, 2024

This is because modules are rendered in a custom way now, and I forgot to handle this and @groupDescription within them... easy fix.

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Nov 27, 2024

I forgot to include the issue number in the commit, fixed with c2c1289

@Gerrit0 Gerrit0 closed this as completed Nov 27, 2024
@Gerrit0 Gerrit0 added this to the v0.27.1 milestone Nov 27, 2024
@blutorange
Copy link
Author

Thanks, just to let you know, the tests for typedoc-plugin-merge-modules are now passing with the fix for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality does not match expectation
Projects
None yet
Development

No branches or pull requests

2 participants