File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# You can set these variables from the command line, and also
5
5
# from the environment for the first two.
6
- SPHINXOPTS ?=
6
+ SPHINXOPTS ?= -W
7
7
SPHINXBUILD ?= sphinx-build
8
8
SOURCEDIR = source
9
9
GENERATEDDIR = $(SOURCEDIR ) /generated
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ test = [
48
48
" pytest-randomly" ,
49
49
]
50
50
docs = [
51
+ " waveform-editor[muscle3]" ,
51
52
" sphinx>=6.0.0,<7.0.0" ,
52
53
" sphinx-autosummary-accessors>=0.1.2" ,
53
54
" sphinx-immaterial>=0.11.0,<0.12" ,
Original file line number Diff line number Diff line change @@ -43,17 +43,19 @@ class State:
43
43
44
44
Example:
45
45
46
- ignore_clicks = State()
47
- def process(obj):
48
- if ignore_clicks:
49
- return
50
- ...
51
- widget = pn.widgets.Button(name="Process", on_click=process)
52
-
53
- # Elsewhere we can use a with statement to temporarily ignore clicks:
54
- with ignore_clicks:
55
- # process will not do anything, even though the on_click triggers
56
- widget.clicks = 0
46
+ .. code-block:: python
47
+
48
+ ignore_clicks = State()
49
+ def process(obj):
50
+ if ignore_clicks:
51
+ return
52
+ ...
53
+ widget = pn.widgets.Button(name="Process", on_click=process)
54
+
55
+ # Elsewhere we can use a with statement to temporarily ignore clicks:
56
+ with ignore_clicks:
57
+ # process will not do anything, even though the on_click triggers
58
+ widget.clicks = 0
57
59
"""
58
60
59
61
def __init__ (self ):
You can’t perform that action at this time.
0 commit comments