Here's myModule.ts:
/**
* @hidden
* @ignore
* @internal
*/
/**
* Some comment.
*
* @ignore
*/
const myFunction = () => {};
When I run typedoc on it, I still see myModule in the list of modules on the right.
My typedoc.js:
module.exports = {
exclude: ['**/*spec.ts', '**/index.ts'],
excludeExternals: true,
excludeNotExported: true,
excludePrivate: true,
hideGenerator: true,
includes: './src',
out: 'docs',
module: 'commonjs',
stripInternal: 'true'
};
I'm looking for the same behavior. Did you find a solution @amaurymartiny ?
I've tried to replicate this issue today with this setup but haven't been able. Both @internal and @hidden tags (individually or combined) on top of the file would hide it from the globals menu. Using the same typedoc.js file as the initial comment. Tried with the latest version and 0.12.0.
Would any of you have more info about the environment (OS, typedoc version, dir structure, ...) or a repo where this is happening? I could take a look
@igncp Look at the am-docs branch of https://github.com/maxogden/menubar/tree/am-docs/.
Specifically:
@amaurymartiny Same issue here. Just add another comment block after it, and it works fine.
I suspect this was fixed in some commit to TypeDoc after the original report but the issue didn't get closed alongside it.
Since if you are not familiar with TypeDoc's behavior it won't make much sense, I've opened #1080 to track adding a warning for the case of a module documentation comment used with import statements.
Is there a way to ignore the whole module without adding @ignore to all exported stuff?
As discussed above, you should be able to just add @ignore to the doc comment for the module. If this doesn't work for you, please open an issue.
Just to recap what worked for me. If you want to exclude a whole file (from the menu, search...), at the top of your file you should add:
/** @ignore *//** */
It is hacky and I'd love to see this fixed. Unfortunately, it does not work for me without /** */ (on [email protected], ubuntu 18.04, nodejs 12.13.1).
(like @SimonFarrugia suggested above)
Most helpful comment
Just to recap what worked for me. If you want to exclude a whole file (from the menu, search...), at the top of your file you should add:
It is hacky and I'd love to see this fixed. Unfortunately, it does not work for me without
/** */(on [email protected], ubuntu 18.04, nodejs 12.13.1).(like @SimonFarrugia suggested above)