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
How to Merge namespace in difference Files? #1424
Comments
In 0.19, the way to do this is to use |
Thanks, it work well! And I can use 0.19.2 by now. But I wonder in 0.20, is there anyway to handle this in some easy way? (I have the |
0.20.3 now works better with global files, you should be able to get good results with: npx typedoc types/Manifest/index.d.ts |
I update the typedoc version and try your command but failed.Is there something I has configured wrong? my typedoc config file: const isProdSite = process.env.NODE_ENV === 'production';
module.exports = {
name: 'umi-plugin-extensions',
tsconfig: './tsconfig-typedoc.json',
entryPoints: ['types/index.d.ts'],
out: 'document/docs/api',
exclude: ['**/node_modules/**'],
excludePrivate: true,
excludeProtected: true,
excludeExternals: true,
includeVersion: true,
disableSources: true,
readme: 'document/API.md',
plugin: [
'typedoc-plugin-markdown',
],
hideBreadcrumbs: true,
namedAnchors: true,
hideProjectName: true,
publicPath: isProdSite ? '/umi-plugin-extensions/api/' : '/api/',
}; my tsconfig file: {
"include": ["types"],
"compilerOptions": {
"target": "ESNext",
"moduleResolution": "node",
"allowJs": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"noEmitOnError": false,
"noStrictGenericChecks": true,
"skipLibCheck": true,
"declaration": true
},
"exclude": [
"node_modules",
"dist",
"**/*.spec.ts",
"lib",
"src/.umi/**",
"fixtures",
"examples"
]
} |
There have been some changes to the option names - https://github.com/TypeStrong/typedoc/releases/tag/v0.20.0 typedoc-plugin-markdown will also need an update, 3.2.1 I believe |
yeah I have changed the config like entryPoints. And also update the markdown plugin version. The result I get is a modules.md files without modules I expect. |
The types files are here https://github.com/arvinxx/umi-plugin-extensions/tree/master/types |
Ah, that's why, |
a strange generate behavior, when use two entryPoints like below: entryPoints: [
'types/chromeManifest/index.d.ts',
'types/extensionsPlugin/index.d.ts',
], when using one entryPoint,the result is right Is there something wrong? More Info: if I add both namespace
the root
the result is right. |
Typedoc has special casing if there is only one entry point to avoid nesting the documentation within a module and directly including the module members within the project. With two entry points, we can't do this since a user needs to be able to tell what module the exports are from... "global" modules aren't commonly used anymore. |
I have a files like this
All of them are start with
when I use typedoc to generate docs, the result is below:
How can I merge this namespace into one file ?
my typedoc version is 0.19.2 and use the
typedoc-plugin-external-module-map
pluginThe text was updated successfully, but these errors were encountered: