From b7a39d341fe981bfb2a8a7a43756b41078b3716e Mon Sep 17 00:00:00 2001 From: Antoine DECHAUME <> Date: Mon, 20 Dec 2021 18:50:13 +0100 Subject: [PATCH 1/2] Have the --colored default value be yes in the docs --- docs/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 72165a62e..477e1e198 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -5,6 +5,7 @@ from pathlib import Path from subprocess import check_output from typing import Any, cast +import os from docutils.nodes import Element, Node, Text, container, fully_normalize_name, literal, paragraph, reference, strong from docutils.parsers.rst.directives import flag, unchanged, unchanged_required @@ -86,6 +87,8 @@ 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 From 4dc3ecd7063b7ba883d8db2af2af1d1ddd680e29 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Dec 2021 17:51:02 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 477e1e198..620361b95 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,11 +1,11 @@ from __future__ import annotations +import os import sys from datetime import date, datetime from pathlib import Path from subprocess import check_output from typing import Any, cast -import os from docutils.nodes import Element, Node, Text, container, fully_normalize_name, literal, paragraph, reference, strong from docutils.parsers.rst.directives import flag, unchanged, unchanged_required