Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,12 @@ print("This won't have a copy button!")
```
````

If you wish to remove the copybutton for one or more languages you can use:

```python
copybutton_selector = "div:not(.highlight-diff, .highlight-python) > div.highlight > pre"
```

### A typical code cell HTML structure in Sphinx

Using CSS to modify the copy button requires you to know what kind of HTML structure code cells have in your documentation.
Expand Down