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

[Docs] ListItem InfoLabels Documentation Incomplete/Malformed #25151

Merged
merged 1 commit into from May 6, 2024

Conversation

DeltaMikeCharlie
Copy link
Contributor

Description

The current online documentation for ‘ListItem’ InfoLabels ends at ‘ListItem.AddonLifecycleDesc’, however, more labels are documented in the source file. There is also some malformed documentation in the ‘listitem_labels’ section of ‘GUIInfoManager.cpp’

A single empty line appears to interrupt the documentation creation process. Removing this empty line produces documentation up to ‘ListItem.HasVideoExtras’ (the last item documented in the source file) and removes the malformed documentation from ‘GUIInfoManager.cpp’.

Motivation and context

Provide accurate documentation.

How has this been tested?

  • Build the documentation locally and observe the issues.
  • Remove the blank line,
  • Rebuild the documentation locally and observe the results.

What is the effect on users?

None. For developers only.

Screenshots (if appropriate):

Before
dUdVhTA
After
oc6W1xU

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Clean up (non-breaking change which removes non-working, unmaintained functionality)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that will cause existing functionality to change)
  • Cosmetic change (non-breaking change that doesn't touch code)
  • Student submission (PR was done for educational purposes and will be treated as such)
  • None of the above (please explain below)

Checklist:

  • My code follows the Code Guidelines of this project
  • My change requires a change to the documentation, either Doxygen or wiki
  • I have updated the documentation accordingly
  • I have read the Contributing document
  • I have added tests to cover my change
  • All new and existing tests passed

@ksooo ksooo added Type: Fix non-breaking change which fixes an issue Component: Documentation v22 "P" labels May 6, 2024
@ksooo ksooo added this to the "P" 22.0 Alpha 1 milestone May 6, 2024
Copy link
Member

@ksooo ksooo left a comment

Choose a reason for hiding this comment

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

Good catch. Thanks.

@neo1973 neo1973 merged commit 4db6d25 into xbmc:master May 6, 2024
2 checks passed
@MikeSiLVO
Copy link

I think this PR caused a couple of unwanted changes (issues?).

Header blue bar now goes down the side until it reaches the change:

firefox_WTwnGW3ZEl

Then at the change I see html(?) code instead of formatted description:

firefox_1iDbpIPrSY

@ksooo
Copy link
Member

ksooo commented May 8, 2024

The problem is only caused indirectly by this PR. Some parts of the documentation are now rendered for the first time, and there are syntax errors, namely:

https://github.com/xbmc/xbmc/blob/master/xbmc/GUIInfoManager.cpp#L6491

Can you see it? ;-) There is one ` that needs to be removed.

``\endlink -> `\endlink

@ksooo
Copy link
Member

ksooo commented May 9, 2024

@DeltaMikeCharlie are you interested in opening a PR to fix the problem @MikeSiLVO reported here? See my (untested) proposal for a fix.

@DeltaMikeCharlie
Copy link
Contributor Author

@DeltaMikeCharlie are you interested in opening a PR to fix the problem @MikeSiLVO reported here? See my (untested) proposal for a fix.

OK.

@DeltaMikeCharlie
Copy link
Contributor Author

Actually, there are some unescaped commas.

/// @return The Musicbrainz release status of the album (official, bootleg, promotion etc)

On both Chromium and Firefox on my Ubuntu development system, the first issue at the top of the list item has been fixed.
Using Firefox on my host Win10 machine, I can see the second error with the malformed ListItem.AddonLifecycleDesc table and the HTML code, but I could never see this manifest under Ubuntu. I copied the updated html to Windows and both issue were resolved.

@DeltaMikeCharlie
Copy link
Contributor Author

Here is another.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Type: Fix non-breaking change which fixes an issue v22 "P"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants