Skip to content
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

Add possibility to generating documentation for non component libraries #3940

Closed
floratmin opened this issue Oct 19, 2020 · 8 comments
Closed

Comments

@floratmin
Copy link

Description

Add a document generator to nx workspaces to generate documentation for non-component libraries.

Motivation

With storybook there is a very good tool to document components. But for plain libraries there is no such tool for generating documentation.

Suggested Implementation

With typedoc there is an excellent generator. With the help of typedoc.json files in each library we can generate documentation for each library separately. This can already be easily realized with a simple @nrwl/workspace:run-commands. But an integration into library creation could make this process more straight forward.

@floratmin floratmin changed the title Add possibility to scaffold documentation for non component libraries Add possibility to generating documentation for non component libraries Oct 19, 2020
@vsavkin vsavkin added the scope: misc Misc issues label Oct 23, 2020
@kmaraz
Copy link

kmaraz commented Mar 25, 2021

@floratmin would it be possible to share some example repo on how did you set it up please?

@vervallsweg
Copy link

@kmaraz That's the target I added to my-lib in workspace.json. Obviously replace the lib name.

	"docs": {
            "executor": "@nrwl/workspace:run-commands",
                "options": {
                "commands": [
                    {
                        "command": "yarn typedoc --tsconfig libs/my-lib/tsconfig.lib.json --out docs/my-lib libs/my-lib/src/index.ts"
                    }
                ]
            }
        }

@wangzishi
Copy link

I am also confused with setup typedoc integration with multiple packages in nx monorepo.

@github-actions
Copy link

github-actions bot commented May 8, 2022

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
If we missed this issue please reply to keep it active.
Thanks for being a part of the Nx community! 🙏

@gp187
Copy link

gp187 commented Jul 1, 2022

+1

1 similar comment
@kalebheitzman
Copy link

+1

@DaSchTour
Copy link
Contributor

I would expect that it should be possible to create one documentation from the root of the project with all libraries as modules.

But as stated in TypeStrong/typedoc#1791 in seams that typedoc is not able to distinguish modules/libraries.

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants