-
Notifications
You must be signed in to change notification settings - Fork 401
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
[dev-v5] Refactoring the generator of API documentation #3322
Merged
dvoituron
merged 22 commits into
dev-v5
from
users/dvoituron/dev-v5/documentation-generator
Feb 9, 2025
Merged
[dev-v5] Refactoring the generator of API documentation #3322
dvoituron
merged 22 commits into
dev-v5
from
users/dvoituron/dev-v5/documentation-generator
Feb 9, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vnbaaij
approved these changes
Feb 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 99.1%
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[dev-v5] Refactoring the generator of API documentation
The current project
FluentUI.Demo.Generators.csproj
is an Analyzer project which had to be compiled to netstandard2.0.The documentation file generated by Visual Studio is an XML file containing some tags like
<inheritdoc />
to automatically read the comment from the parent element. To manage these flows, we need to use a library LoxSmoke.DocXml and to load theMicrosoft.FluentUI.AspNetCore.Components
library developed with .NET9. These different .NET versions are not compatible.So, we created a new project
FluentUI.Demo.DocApiGen
to generate a JSON fileapi-comments.json
that is read read by the Demo app to populate the API tables.This
DocApiGen
is a console app that is already configured for the developer using thelaunchSettings.json
fileDeveloper usage
Without actions, the demo application will launch without errors, but the API tables will be empty (only the Description column).
To populate this column, the developer must run the
![{A91619C2-6370-44A6-A3AC-060A3C6AFCD4}](https://private-user-images.githubusercontent.com/8350694/411263018-b0fd56c0-5f8a-43b8-8560-102799e94cf9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MjEwNjgsIm5iZiI6MTczOTYyMDc2OCwicGF0aCI6Ii84MzUwNjk0LzQxMTI2MzAxOC1iMGZkNTZjMC01ZjhhLTQzYjgtODU2MC0xMDI3OTllOTRjZjkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMTE1OTI4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTIwYzNjZTc4NzE5ZmRhMDUwYjA1MDJhMGQwYzA1MGQyYTFmYWU4ZTFkZjgwMDA4NWZjMjVlYWE5NzdmMTEwNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.24LhPZq6DQz1vcmJUwX7Hav9kfN05OZCd9VjBEeGvGo)
DocApiGen
project (right click -> Debug -> Start without debugging) and the JSON file will be saved in theFluentUI.Demo.Client/wwwroot
folder.Build pipeline and publication
This command must be included in the YML file to generate the JSON file in the
wwwroot
folder.