Skip to content

Commit

Permalink
disable color for text targets
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Aug 18, 2024
1 parent 026fbb2 commit 7216418
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sphinxcontrib/typer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,9 @@ def get_console(stderr: bool = False) -> Console:
},
),
"highlighter": typer_rich_utils.highlighter,
"color_system": typer_rich_utils.COLOR_SYSTEM,
"color_system": None
if self.target is RenderTarget.TEXT
else typer_rich_utils.COLOR_SYSTEM,
"force_terminal": typer_rich_utils.FORCE_TERMINAL,
"width": self.width or typer_rich_utils.MAX_WIDTH,
"stderr": stderr,
Expand Down

0 comments on commit 7216418

Please sign in to comment.