Skip to content

Commit 5e8901a

Browse files
committed
Remove copy button from unnecessary blocks
1 parent 7090a41 commit 5e8901a

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

docs/ops/doc/IntrospectingOps.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ System.out.println(Ops.info(op).implementationName());
4646

4747
might print out (if you're using `scijava-ops-image` version `1.0.0`):
4848

49-
```
49+
```{code-block}
50+
:class: no-copybutton
5051
org.scijava.ops.image.filter.gauss.Gaussians.gaussRAISingleSigma(net.imglib2.RandomAccessibleInterval<I>,double,net.imglib2.outofbounds.OutOfBoundsFactory<I, net.imglib2.RandomAccessibleInterval<I>>,net.imglib2.RandomAccessibleInterval<O>)Reduction1
5152
```
5253

@@ -73,7 +74,8 @@ System.out.println(Ops.signature(op));
7374

7475
might print out (again using `scijava-ops-image` version `1.0.0`):
7576

76-
```
77+
```{code-block}
78+
:class: no-copybutton
7779
|Reduction:|ParamsReduced:1|OriginalInfo:|Info:org.scijava.ops.image.filter.gauss.Gaussians.gaussRAISingleSigma(net.imglib2.RandomAccessibleInterval<I>,double,net.imglib2.outofbounds.OutOfBoundsFactory<I, net.imglib2.RandomAccessibleInterval<I>>,net.imglib2.RandomAccessibleInterval<O>)@1.0.0{}
7880
```
7981

docs/ops/doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
myst_heading_anchors = 4
4444
nb_execution_mode = "off"
4545

46+
# -- Sphinx Copy Button ------------------------------------------------------
47+
48+
copybutton_selector = "div:not(.no-copybutton) > div.highlight > pre"
49+
4650
# -- Options for HTML output -------------------------------------------------
4751
# Add the SciJava logo
4852
# html_logo = "doc-images/logo.svg"

0 commit comments

Comments
 (0)