Skip to content

Commit e62a717

Browse files
Have the --colored default value be yes in the docs (#2289)
Co-authored-by: Antoine DECHAUME <> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9f7001b commit e62a717

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import os
34
import sys
45
from datetime import date, datetime
56
from pathlib import Path
@@ -86,6 +87,8 @@
8687
nitpicky = True
8788
nitpick_ignore = []
8889

90+
os.environ["FORCE_COLOR"] = "yes" # force --colored default value to be yes
91+
8992

9093
def skip_member(app: Sphinx, what: str, name: str, obj: Any, would_skip: bool, options: Options) -> bool: # noqa: U100
9194
return name in options.get("exclude-members", set()) or would_skip

0 commit comments

Comments
 (0)