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

fix: ApiPage is not generated when multiple namespaces defined across projects #9650

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

filzrev
Copy link
Contributor

@filzrev filzrev commented Jan 25, 2024

This PR is intended to fix #9618.

On current implementation.
CreateNamespaceToc method don't call yield return node if node.containsLeafNodes is false.
So if empty namespace is processed first. other items that share same namespaces are not included as docfx output.

This PR change logics to call yield return node with following 2 condition.

  1. TocNode is created & items are added.
  2. TocNode is exists but has no items & items are added.

Copy link

codecov bot commented Jan 25, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (e2f78e9) 74.31% compared to head (1ff4cdd) 74.31%.
Report is 3 commits behind head on main.

Files Patch % Lines
src/Docfx.Dotnet/DotnetApiCatalog.Toc.cs 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9650      +/-   ##
==========================================
- Coverage   74.31%   74.31%   -0.01%     
==========================================
  Files         536      536              
  Lines       23179    23181       +2     
  Branches     4054     4056       +2     
==========================================
  Hits        17226    17226              
- Misses       4851     4853       +2     
  Partials     1102     1102              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yufeih yufeih added the bug-fix Makes the pull request to appear in "Bug Fixes" section of the next release note label Jan 27, 2024
Copy link
Contributor

@yufeih yufeih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @filzrev 👍

@yufeih yufeih merged commit 62fdc08 into dotnet:main Jan 27, 2024
8 checks passed
@filzrev filzrev deleted the fix-apipage-when-exists-same-namespace branch April 1, 2024 05:03
p-kostov pushed a commit to ErpNetDocs/docfx that referenced this pull request Jun 28, 2024
… projects (dotnet#9650)

fix: ApiPage is not generated when multiple namespaces exists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix Makes the pull request to appear in "Bug Fixes" section of the next release note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] docfx metadata does not generate all metadata on Ubuntu
2 participants