Skip to content

Conversation

StalemateInc
Copy link
Contributor

Should fix #2417.

With Ruby 3.4 the documentation is generated using a different theme, which impacted the layout of the page and the classes for HTML elements. Without the change the "Source" toggle from the original doc is copied over into the the final document without doing anything, whereas the expected header "Show source" link is missing and as the result the source code cannot be viewed.

This PR updates Docs::Rdoc::CleanHtmlFilter to add a link for methods with the source and remove the superfluous "Source" toggle from the original documentation.

Manually tested on documentation from Ruby 3.3 and 3.4.

Before Screenshot 2025-03-26 at 22 21 04
After Screenshot 2025-03-26 at 22 22 57

@StalemateInc StalemateInc requested a review from a team as a code owner March 26, 2025 19:27
Copy link
Contributor

@simon04 simon04 left a comment

Choose a reason for hiding this comment

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

Thank you!

@simon04 simon04 merged commit 38fd291 into freeCodeCamp:main Oct 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ruby3.4 Show Source toggle does not work

2 participants