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

If a file starts with a @license comment block, typedoc doesn't generate the module documentation #2552

Closed
xuhdev opened this issue Apr 21, 2024 · 0 comments
Labels
bug Functionality does not match expectation

Comments

@xuhdev
Copy link
Contributor

xuhdev commented Apr 21, 2024

Search terms

@license, @module

Expected Behavior

Given a file a.ts with the following content:

/**@license MIT
 *
 * Full permission notice.
 */

/**
 * This is an awesome module.
 * @module good-module
 */

export function goodFunction() {
}

typedoc a.ts generates an output that the module doc is completely missing.

Actual Behavior

typedoc should generate the module doc.

Steps to reproduce the bug

  1. Save the file above as a.ts.
  2. Install the latest typedoc and run typedoc a.ts.

Environment

  • Typedoc version: 0.25.13
  • TypeScript version: 5.4.5
  • Node.js version: 20.12.2
  • OS: Debian

Additional Context

JSDoc supports the @license tag to indicate the license of the file. If the file above is fed to JSDoc, it will generate the module documentation properly.

I also wrote a blog post on @license, which may help clarify some background.

@xuhdev xuhdev added the bug Functionality does not match expectation label Apr 21, 2024
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

1 participant