Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add a --disableAutoModuleName flag
- Loading branch information
1 parent
efcc02a
commit a8561e0
Showing
2 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
var plugin = require('./typedoc-plugin-external-module-name'); | ||
module.exports = function(PluginHost) { | ||
module.exports = function (PluginHost) { | ||
var app = PluginHost.owner; | ||
/** | ||
* used like so: | ||
* --disableAutoModuleName true | ||
*/ | ||
app.options.addDeclaration({ name: 'disableAutoModuleName', defaultValue: false }); | ||
app.converter.addComponent('external-module-name', plugin.ExternalModuleNamePlugin); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters