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

@file or @overview tags ignored #100

Open
madtrick opened this issue Aug 5, 2016 · 5 comments
Open

@file or @overview tags ignored #100

madtrick opened this issue Aug 5, 2016 · 5 comments

Comments

@madtrick
Copy link

madtrick commented Aug 5, 2016

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

@75lb
Copy link
Member

75lb commented Aug 5, 2016

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.

@madtrick madtrick changed the title @file or @overview tags ignore @file or @overview tags ignored Aug 8, 2016
@orneryd
Copy link

orneryd commented Jul 24, 2017

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

@orneryd
Copy link

orneryd commented Jul 24, 2017

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"

@cameronelliott
Copy link

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.

@dmnsgn
Copy link

dmnsgn commented Feb 26, 2022

I'd be interested in this feature too 👍

@75lb 75lb transferred this issue from jsdoc2md/jsdoc-to-markdown Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants