Skip to content

Commit 40d0391

Browse files
committed
NO_COLOR for dfetch output in docs
1 parent 0f33bed commit 40d0391

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

doc/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
import os
1414
import sys
1515

16+
# Prevent ANSI color codes in command output captured by sphinxcontrib.programoutput.
17+
# Python 3.13+ argparse emits colors when FORCE_COLOR is set; NO_COLOR suppresses
18+
# that regardless of FORCE_COLOR, and dfetch's own Rich console respects it too.
19+
os.environ["NO_COLOR"] = "1"
20+
1621
from dfetch import __version__
1722

1823
# -- General configuration ------------------------------------------------

0 commit comments

Comments
 (0)