Skip to content

Commit 6412ce4

Browse files
author
Matthias Koeppe
committed
sage --docbuild: Add option --no-preparsed-examples
1 parent 129540c commit 6412ce4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sage_docbuild/__main__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ def setup_parser():
288288
standard.add_argument("--no-plot", dest="no_plot",
289289
action="store_true",
290290
help="do not include graphics auto-generated using the '.. plot' markup")
291+
standard.add_argument("--no-preparsed-examples", dest="no_preparsed_examples",
292+
action="store_true",
293+
help="do not show preparsed versions of EXAMPLES blocks")
291294
standard.add_argument("--include-tests-blocks", dest="skip_tests", default=True,
292295
action="store_false",
293296
help="include TESTS blocks in the reference manual")
@@ -477,6 +480,8 @@ def excepthook(*exc_info):
477480
build_options.ALLSPHINXOPTS += "-n "
478481
if args.no_plot:
479482
os.environ['SAGE_SKIP_PLOT_DIRECTIVE'] = 'yes'
483+
if args.no_preparsed_examples:
484+
os.environ['SAGE_PREPARSED_DOC'] = 'no'
480485
if args.live_doc:
481486
os.environ['SAGE_LIVE_DOC'] = 'yes'
482487
if args.skip_tests:

0 commit comments

Comments
 (0)