From 0e00b832d3c26a6c4613418baf67528b3e1a1819 Mon Sep 17 00:00:00 2001 From: troyyyyy Date: Mon, 8 Jan 2024 08:34:26 +0800 Subject: [PATCH] [FIX] remove copybuttons in code-out --- docs/_static/custom.css | 2 +- docs/conf.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/_static/custom.css b/docs/_static/custom.css index de4f232..c39b59a 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -1,5 +1,5 @@ div.code-out > div.highlight > pre { - background-color: #d3effd !important; + background-color: #dbf4fa !important; } .green-bold { color: green; diff --git a/docs/conf.py b/docs/conf.py index c861ec8..08d139e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -55,6 +55,8 @@ texinfo_documents = [ ("index", slug, project, slug, project, "Miscellaneous"), ] +copybutton_selector = "div:not(.code-out) > div.highlight > pre" + def remove_noqa(app: Sphinx, what: str, name: str, obj, options, lines): new_lines = []