Browse Source

[FIX] remove copybuttons in code-out

pull/5/head
troyyyyy 1 year ago
parent
commit
0e00b832d3
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      docs/_static/custom.css
  2. +2
    -0
      docs/conf.py

+ 1
- 1
docs/_static/custom.css View File

@@ -1,5 +1,5 @@
div.code-out > div.highlight > pre {
background-color: #d3effd !important;
background-color: #dbf4fa !important;
}
.green-bold {
color: green;


+ 2
- 0
docs/conf.py View File

@@ -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 = []


Loading…
Cancel
Save