Skip to content

Report RST as unsupported when no rst2html command is installed - #19

Merged
andrew merged 1 commit into
mainfrom
rst-supported-check
Nov 23, 2026
Merged

andrew merged 1 commit into
mainfrom
rst-supported-check

Conversation

@andrew

@andrew andrew commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Registry.Supported only checked tool availability for renderers of type *ExternalRenderer. The RST renderer is a separate type, so Supported("README.rst") returned true even with no rst2html command on $PATH, and a following Render failed with ErrToolNotFound.

Supported now asks any renderer that has an Available() method, and RSTRenderer has one.

@andrew
andrew added this pull request to stack #20 November 23, 2026 09:13
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 56b23cd7-e74e-44b9-a8ed-f1a00fe5e244
Commits

Reviewing files that changed from the base of the PR and between 1032fc5 and 1260b7d.

Files selected for processing: 3

  • external.go
  • markup.go
  • markup_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@andrew
andrew force-pushed the rst-supported-check branch from cf16511 to 734f927 Compare November 23, 2026 09:22
Base automatically changed from prefer-rst2html4 to main November 23, 2026 09:23
@andrew
andrew force-pushed the rst-supported-check branch from 734f927 to 1260b7d Compare November 23, 2026 09:23
@andrew
andrew merged commit 7df2dfe into main Nov 23, 2026
6 checks passed
@andrew
andrew deleted the rst-supported-check branch November 23, 2026 09:25
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