Have the --colored default value be yes in the docs
from __future__ import annotations
+import os
import sys
from datetime import date, datetime
from pathlib import Path
@@ -86,6 +87,8 @@ intersphinx_mapping = {
nitpicky = True
nitpick_ignore = []
+os.environ["FORCE_COLOR"] = "yes" # force --colored default value to be yes
+
def skip_member(app: Sphinx, what: str, name: str, obj: Any, would_skip: bool, options: Options) -> bool: # noqa: U100
return name in options.get("exclude-members", set()) or would_skip
