@@ -294,35 +294,28 @@ base: $(inst_patch) $(inst_pkgconf)
294
294
#
295
295
# $ ./sage --docbuild -H
296
296
297
- # Building the documentation has many dependencies, because all
298
- # documented modules are imported and because we use matplotlib to
299
- # produce plots.
300
- DOC_DEPENDENCIES = sagelib $(inst_sphinx ) \
301
- | $(SAGERUNTIME ) $(inst_maxima ) $(inst_networkx ) $(inst_scipy ) $(inst_sympy ) \
302
- $(inst_matplotlib ) $(inst_pillow ) $(inst_mathjax ) $(inst_mpmath ) \
303
- $(inst_ipykernel ) $(inst_jupyter_client ) $(inst_conway_polynomials ) \
304
- $(inst_tachyon ) $(inst_jmol ) $(inst_thebe ) $(inst_ipywidgets )
305
-
306
297
doc : doc-html
307
298
308
- doc-html : $(DOC_DEPENDENCIES )
309
- $(AM_V_at ) cd ../.. && sage-logger -p ' ./sage --docbuild --no-pdf-links all html $(SAGE_DOCBUILD_OPTS)' logs/dochtml.log
299
+ # All doc-building is delegated to the script packages
300
+ # sagemath_doc_html, sagemath_doc_pdf
301
+ doc-html : sagemath_doc_html
310
302
311
303
# 'doc-html-no-plot': build docs without building the graphics coming
312
304
# from the '.. plot' directive, in case you want to save a few
313
305
# megabytes of disk space. 'doc-clean' is a prerequisite because the
314
306
# presence of graphics is cached in src/doc/output.
315
- doc-html-no-plot : doc-clean $( DOC_DEPENDENCIES )
316
- $( AM_V_at ) cd ../.. && sage-logger -p ' ./sage --docbuild --no-pdf-links --no-plot all html $(SAGE_DOCBUILD_OPTS) ' logs/dochtml.log
307
+ doc-html-no-plot : doc-clean
308
+ + $( MAKE_REC ) SAGE_SKIP_PLOT_DIRECTIVE=yes doc- html
317
309
318
- doc-html-mathjax : $(DOC_DEPENDENCIES )
319
- $(AM_V_at ) cd ../.. && sage-logger -p ' ./sage --docbuild --no-pdf-links all html -j $(SAGE_DOCBUILD_OPTS)' logs/dochtml.log
310
+ # Using mathjax is actually the default, but this target can be used
311
+ # to override an environment setting of SAGE_DOC_MATHJAX=no
312
+ doc-html-mathjax :
313
+ +$(MAKE_REC ) SAGE_DOC_MATHJAX=yes doc-html
320
314
321
315
# Keep target 'doc-html-jsmath' for backwards compatibility.
322
316
doc-html-jsmath : doc-html-mathjax
323
317
324
- doc-pdf : $(DOC_DEPENDENCIES )
325
- $(AM_V_at ) cd ../.. && sage-logger -p ' ./sage --docbuild all pdf $(SAGE_DOCBUILD_OPTS)' logs/docpdf.log
318
+ doc-pdf : sagemath_doc_pdf
326
319
327
320
doc-clean : doc-src-clean doc-output-clean
328
321
0 commit comments