milesj / docusaurus-plugin-typedoc-api

Docusaurus plugin that provides source code API documentation powered by TypeDoc.
71 stars 25 forks source link

internal: Improve mdx-loader usage. #134

Closed boenrobot closed 8 months ago

boenrobot commented 8 months ago

Explicitly require mdx loader as an optional peer dependency.

Added rimraf as a dev dependency to enable cross platform removal of the tsconfig.lib.tsbuildinfo file, and thus cross platform builds.

Fix configuration to satisfy the mdx loader's options (specifically, the static folders and site dir).

Adjusted the whitelisting to only include files that are enabled, rather than include both if either changelogs or readmes are enabled.

Removed an unnecessary await in extractSidebar call.


I'm not 100% sure about the siteDir config, but then again, it's required, so something should be put there. Just not sure if copying the global siteDir is correct, or if some context/config/package specific folder is the correct path.