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

Copy inherited parameter doc to target if not already present #788

Closed
wants to merge 1 commit into from
Closed

Copy inherited parameter doc to target if not already present #788

wants to merge 1 commit into from

Conversation

kayahr
Copy link

@kayahr kayahr commented Jun 8, 2018

This change reverses the logic when copying inherited parameter comments. Before this change the source comment was only copied when there was already a target comment. This did not make any sense. Now the source comment is copied when target comment is missing. In this way all parameter documentation is copied when simply using @inheritDoc and it is possible to override specific parameter comments by documenting them with @param on the target method.

PR also includes a unit test for a few common scenarios.

This fixes #787

@MaximilianLackaw
Copy link

Has there been any progress yet?

@StephanBijzitter
Copy link
Contributor

StephanBijzitter commented May 4, 2020

@Gerrit0 any chance you can get this merged in the coming weeks?

I could fork this pull request and fix the conflicts, if that's any help

@Gerrit0
Copy link
Collaborator

Gerrit0 commented May 13, 2020

@StephanBijzitter fixing the conflicts would help a ton, I haven't had time to work on TypeDoc for a few weeks and it'll probably take me a while to get to this otherwise.

StephanBijzitter added a commit to StephanBijzitter/typedoc that referenced this pull request May 13, 2020
Original change by @kayahr in
TypeStrong#788 but was deleted
before the pull request could be merged.
StephanBijzitter added a commit to StephanBijzitter/typedoc that referenced this pull request May 13, 2020
Original change by @kayahr in
TypeStrong#788 but was deleted
before the pull request could be merged.
@StephanBijzitter
Copy link
Contributor

@Gerrit0 No worries, I already read that you didn't have a lot of spare time :-)

I re-applied the changes in a new branch and all tests (linting/unit) pass.
Next to that, I also checked the output (specs) myself and the JSON is as I would expect it to be.

new pull request: #1303

Gerrit0 pushed a commit that referenced this pull request May 17, 2020
Original change by @kayahr in
#788 but was deleted
before the pull request could be merged.

Fixes #787
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@inheritDoc is not copying parameter documentation
4 participants