Skip to content

Remove ruby-title class#1694

Merged
st0012 merged 1 commit intoruby:masterfrom
Earlopain:remove-ruby-title
May 6, 2026
Merged

Remove ruby-title class#1694
st0012 merged 1 commit intoruby:masterfrom
Earlopain:remove-ruby-title

Conversation

@Earlopain
Copy link
Copy Markdown
Contributor

It was added for sdoc in acc499b
But since rails/sdoc@41a790b it doesn't use it anymore, and rdoc has no use for it as well.

It was added for sdoc in ruby@acc499b
But since rails/sdoc@41a790b it doesn't use it anymore,
and rdoc has no use for it as well.
Copilot AI review requested due to automatic review settings May 5, 2026 12:12
@Earlopain Earlopain temporarily deployed to fork-preview-protection May 5, 2026 12:12 — with GitHub Actions Inactive
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the ruby-title CSS class from Ruby syntax-highlighted HTML output generated by RDoc, aligning RDoc’s output with the fact that SDoc no longer relies on that class and RDoc itself doesn’t use it.

Changes:

  • Remove ruby-title span classification logic from RDoc::TokenStream.to_html.
  • Update ToHtml markup tests to match the new HTML output (method names/operators no longer carry ruby-title).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
lib/rdoc/token_stream.rb Removes the special-case tracking that added ruby-title to identifiers following def.
test/rdoc/markup/to_html_test.rb Updates expected HTML output for Ruby verbatim highlighting to no longer include ruby-title.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@matzbot
Copy link
Copy Markdown
Collaborator

matzbot commented May 6, 2026

🚀 Preview deployment available at: https://df4afe8c.rdoc-6cd.pages.dev (commit: e74ac71)

Copy link
Copy Markdown
Member

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

Thanks!

@st0012 st0012 merged commit 6912fc4 into ruby:master May 6, 2026
44 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants