-
Notifications
You must be signed in to change notification settings - Fork 709
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
Allow to specify a custom tsconfig
in packages mode for monorepos
#2061
Comments
I have same problem on generating docs with nx projects. |
@Zinyon Hi! Just curious, do you publish the resulting API reference to GitHub pages? |
@avchugaev Hi!, i'm considering it, but haven't tried yet. |
Yep, I managed to generate docs for all libraries from Nx workspace and deploy them to GitHub pages. But to achieve this, I had to rename |
@Gerrit0 I'd try to implement it, but I need help understanding the codebase and solution design. |
The relevant code starts at https://github.com/TypeStrong/typedoc/blob/master/src/lib/utils/entry-point.ts#L323, seems reasonable to treat this option like the readmeFile is tested today |
@Gerrit0 thanks for the feature 🤝 Please check the site build - https://github.com/TypeStrong/typedoc-site/actions/runs/3230626041/jobs/5289289873 There's still a previous version of the docs on the website: |
Huh, surprised that didn't give me an email about a failing build... thanks! |
Search Terms
Monorepo, tsconfig, custom path
Problem
When operating in monorepo mode (multiple packages), each package may contain several
tsconfig
files.For instance, Nx generates 3
tsconfig
files per TypeScript project:tsconfig.json
- base configuration, extends workspace's roottsconfig
;tsconfig.lib.json
- production code configuration, extends package'stsconfig.json
;tsconfig.spec.json
- tests configuration, extends package'stsconfig.json
.When one generates documentation for several packages, TypeDoc uses
tsconfig.json
instead of desiredtsconfig.lib.json
without ability to override the file name (or location).Suggested Solution
Allow to override package's
tsconfig
file name (location) viapackage.json
settings:So that TypeDoc will be more monorepo-friendly and multi-config-friendly.
The text was updated successfully, but these errors were encountered: