Skip to content

Add Darkfish deprecation warning - #1797

Open
st0012 wants to merge 1 commit into
masterfrom
codex/add-darkfish-deprecation-warning
Open

Add Darkfish deprecation warning#1797
st0012 wants to merge 1 commit into
masterfrom
codex/add-darkfish-deprecation-warning

Conversation

@st0012

@st0012 st0012 commented Aug 29, 2026

Copy link
Copy Markdown
Member

I want to remove Darkfish completely in the next major release, so let's start showing deprecation warnings for it.

  • Aliki shouldn't show the deprecation message
  • Other generators thats' built on top of Darkfish should see it, such as rorvswild

We can't cover all the cases where Darkfish is used, so this is just a best effort notification. Readme has been announcing this removal for a while.

@matzbot

matzbot commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

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

Assisted-By: devx/0d67a386-6fea-4c9d-96ef-064c1cc8810c
@st0012
st0012 force-pushed the codex/add-darkfish-deprecation-warning branch from db5818b to 19eec2a Compare September 12, 2026 14:45
@github-actions

Copy link
Copy Markdown

Documentation preview

View the preview

Commit: 19eec2a

@st0012
st0012 marked this pull request as ready for review September 12, 2026 15:12
Copilot AI balanced review requested due to automatic review settings September 12, 2026 15:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The exact-class guard prevents Darkfish subclasses from receiving the intended warning.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds runtime notice of Darkfish’s planned removal in RDoc 9.0 while keeping Aliki quiet.

Changes:

  • Adds a Darkfish deprecation warning.
  • Tests warning behavior for Darkfish and Aliki.
File summaries
File Description
lib/rdoc/generator/darkfish.rb Emits the deprecation warning.
test/rdoc/generator/darkfish_test.rb Tests Darkfish warning output.
test/rdoc/generator/aliki_test.rb Verifies Aliki remains silent.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +217 to +219
if self.class == Generator::Darkfish
warn "The Darkfish template is deprecated and will be removed in version 9.0."
end
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.

3 participants