Skip to content

Commit 0b13480

Browse files
authored
tiny documentation improvements (#204)
1 parent 9d9d1dd commit 0b13480

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

docs/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ html:
6161
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
6262

6363
livehtml:
64-
sphinx-autobuild -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
64+
sphinx-autobuild --port 8001 -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
6565

6666
dirhtml:
6767
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml

docs/source/documentation/pyadjoint_api.rst

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ Core utility functions
6464

6565
.. autofunction:: get_working_tape
6666
.. autofunction:: set_working_tape
67+
.. autofunction:: continue_annotation
68+
.. autofunction:: pause_annotation
6769
.. autofunction:: pyadjoint.tape.no_annotations
6870
.. autoclass:: stop_annotating
6971
.. autofunction:: annotate_tape

pyadjoint/tape.py

+2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ def get_working_tape():
1818

1919

2020
def pause_annotation():
21+
"""Switch off annotation."""
2122
global _annotation_enabled
2223
_annotation_enabled = False
2324

2425

2526
def continue_annotation():
27+
"""Switch on annotation."""
2628
global _annotation_enabled
2729
_annotation_enabled = True
2830
return _annotation_enabled

0 commit comments

Comments
 (0)