Skip to content

Fix display of section comments - #373

Open
jmalcic wants to merge 4 commits into
rails:mainfrom
jmalcic:section-comments
Open

Fix display of section comments#373
jmalcic wants to merge 4 commits into
rails:mainfrom
jmalcic:section-comments

Conversation

@jmalcic

@jmalcic jmalcic commented Dec 27, 2024

Copy link
Copy Markdown

This PR addresses an issue resulting from RDoc having changed where comments are stored in sections (since ruby/rdoc@4b50423 as an array at RDoc::Context::Section#comments) without removing the old reader. This can make it seem like #comment is still available as with other RDoc objects, when in reality for sections it now never has a value. This then means #description doesn't work for sections, because it calls the old reader. I couldn't find any tests in the RDoc repo suggesting how #comments is supposed to be formatted, so this was just a guess

@jmalcic jmalcic changed the title Display section comments Fix display of section comments Dec 27, 2024
@netlify

netlify Bot commented Dec 27, 2024

Copy link
Copy Markdown

Deploy Preview for sdoc failed.

Name Link
🔨 Latest commit 43e2184
🔍 Latest deploy log https://app.netlify.com/sites/sdoc/deploys/676ecfa59e55540008821c14

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.

1 participant