Closed RichiCoder1 closed 1 year ago
Hello - I am trying to replicate this - is your code on a public repo? If not could you let me know what other options you are using? Many thanks.
@tgreyuk private, but I'll see if I can put together a code sandbox with examples.
If it helps in the meantime:
.config/typedoc.cjs
:
/** @type {import('typedoc').TypeDocOptions} */
module.exports = {
name: "JS Libs",
entryPointStrategy: "packages",
out: "../docs",
githubPages: false,
gitRevision: "main",
plugin: ["typedoc-plugin-markdown"],
entryPoints: [
"../packages/package-a"
],
readme: "none"
};
.config/typedoc.base.json
{
"$schema": "https://typedoc.org/schema.json",
"includeVersion": true
}
packages/package-a/typedoc.config.json
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../.config/typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
packages/package-a/src/index.ts
export interface MyArgs {
readonly someArg: boolean;
}
export function someExampleFunction(args: MyArgs) {
return args;
}
Above is a adapted minisample. I think it's because in page.toc.ts
it's only printing out modules:
But modules on includes (or seems to include exported interfaces in this case. So functions aren't present.
Is it intentional that the toc includes modules?
Ok so there is obviously some weird going on but still not been able to replicate.
So I have put together an example repo for 'packages'. I'd be interested if you can see any differences in setup as the exports look correct. Please feel free to try and break it :)
This is API.md for a single package (as per your example):
Or for a typical setup with multiple packages:
configs are here:
https://github.com/tgreyuk/typedoc-plugin-markdown-examples/tree/main/monorepo/.config
Howdy! I'm using
typedoc-plugin-markdown@next
, and running into an issue whereAPI.md
only seems to contain exported interfaces and not functions. If I switch tooutputFileStrategy: "modules"
they show up, and the member MDs show up on disk with"members"
, but they don't show up in theAPI.md
doc.Is there a setting I need to flip to get exported function members into the API.md?