Skip to content

Added auto-expansion of inheritdoc comments #947

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

Merged
merged 2 commits into from
Feb 10, 2021
Merged

Conversation

bart-degreed
Copy link
Contributor

Added auto-expansion of inheritdoc comments using https://github.com/saucecontrol/InheritDoc, so that VS Intellisense picks it up when consumed as package reference.

Fixes #940.

Bart Koelman added 2 commits February 9, 2021 17:26
@bart-degreed bart-degreed marked this pull request as draft February 9, 2021 17:11
@bart-degreed
Copy link
Contributor Author

This does not remove warnings from DocFX, will look at those later.

@bart-degreed
Copy link
Contributor Author

Looked into why warnings are still being produced by DocFX. The reason is that DocFX uses roslyn to re-parse the sources and discards the compiler-generated JsonApiDotNetCore.xml that was produced during solution build.

This can be changed in docfx.json by replacing:

"files": [ "**/JsonApiDotNetCore.csproj" ],

with:

"files": [ "src/JsonApiDotNetCore/bin/Release/netcoreapp3.1/JsonApiDotNetCore.dll" ],

The upside of that is documentation generation runs a lot faster and handles inheritdoc properly, but the downside is we lose integration with sources on GitHub and some other minor details, so I think it is not worth the change.

Before:
image

After:
image

@bart-degreed bart-degreed marked this pull request as ready for review February 10, 2021 11:16
@bart-degreed bart-degreed requested a review from maurei February 10, 2021 11:17
@maurei maurei merged commit a6b9305 into master Feb 10, 2021
@maurei maurei deleted the fix-inheritdoc-expansion branch February 10, 2021 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Missing help in IntelliSense
2 participants