Skip to content

Commit

Permalink
add docs for all exported modules
Browse files Browse the repository at this point in the history
  • Loading branch information
madsrasmussen committed Mar 6, 2024
1 parent 4fe56e1 commit 77361b7
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion typedoc.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
import { packageJsonExports } from './devops/package/meta.js';

const excludePaths = ['./src/external', '.src/apps'];
const entryPoints = [];

for (const [key, value] of Object.entries(packageJsonExports || {})) {
if (value) {
let path = value.replace(/^\.\/dist-cms/, './src');
path = path.replace('.js', '.ts');

if (excludePaths.some((excludePath) => path.startsWith(excludePath))) {
console.log('excluding', path);
} else {
entryPoints.push(path);
}
}
}

export default {
entryPoints: ['./src/packages/core/index.ts', './src/packages/data-type/index.ts'],
entryPoints,
out: 'api-docs',
};

0 comments on commit 77361b7

Please sign in to comment.