dmd icon indicating copy to clipboard operation
dmd copied to clipboard

@file or @overview tags ignored

Open madtrick opened this issue 9 years ago • 5 comments

Summary

jsdoc tags @file and its synonims @overview and @fileoverview seem to be ignored by jsdoc-to-markdown

Steps to reproduce

Create a file with the following contents:

'use strict';

/**
 * @file A sample file
 */

/**
 * @function foo
 */
function foo () {
  return 'bar';
}

Run jsdoc2md:

$ jsdoc2md file.js
<a name="foo"></a>

## foo()
**Kind**: global function

As you can see the contents for the @file tag are not included in the generated markdown.

Other information

Using version 1.3.6. of jsdoc-to-markdown

madtrick avatar Aug 05 '16 07:08 madtrick

i don't think this tag gets much usage in jsdoc2md as the information it contains has no impact on a module's API (which is what the tool is intended to document).. But will have a look, thanks.

75lb avatar Aug 05 '16 11:08 75lb

I there a workaround for this? I need to be able to document files as well.

orneryd avatar Jul 24 '17 18:07 orneryd

I figured out a workaround. just use the "@name" tag instead and just give your file a name without an extension. then it will pick up the comments regardless. just don't use "@file" or synonyms or it will still ignore it even when using "@name"

orneryd avatar Jul 24 '17 18:07 orneryd

I figured out a workaround. just use the "@name" tag instead and just give your file a name without an extension. then it will pick up the comments regardless. just don't use "@file" or synonyms or it will still ignore it even when using "@name"

This doesn't really seem to be a substitute for @file , it can be used to document a function defined outside the source file, though.

cameronelliott avatar Nov 03 '21 00:11 cameronelliott

I'd be interested in this feature too 👍

dmnsgn avatar Feb 26 '22 19:02 dmnsgn