Skip to content

Description from @categoryDescription missing in docs since 0.27.0 #2787

@blutorange

Description

@blutorange

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions