Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 42b7714

Browse files
author
Matthias Koeppe
committed
WIP sagemath_doc_html sagemath_doc_pdf
1 parent 13b4090 commit 42b7714

File tree

5 files changed

+22
-17
lines changed

5 files changed

+22
-17
lines changed

build/make/Makefile.in

+10-17
Original file line numberDiff line numberDiff line change
@@ -294,35 +294,28 @@ base: $(inst_patch) $(inst_pkgconf)
294294
#
295295
# $ ./sage --docbuild -H
296296

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-
306297
doc: doc-html
307298

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
310302

311303
# 'doc-html-no-plot': build docs without building the graphics coming
312304
# from the '.. plot' directive, in case you want to save a few
313305
# megabytes of disk space. 'doc-clean' is a prerequisite because the
314306
# 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
317309

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
320314

321315
# Keep target 'doc-html-jsmath' for backwards compatibility.
322316
doc-html-jsmath: doc-html-mathjax
323317

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
326319

327320
doc-clean: doc-src-clean doc-output-clean
328321

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sagelib sphinx | $(SAGERUNTIME) maxima networkx scipy sympy matplotlib pillow mathjax mpmath ipykernel jupyter_client conway_polynomials tachyon jmol thebe ipywidgets
2+
3+
# Building the documentation has many dependencies, because all
4+
# documented modules are imported and because we use matplotlib to
5+
# produce plots.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#! /usr/bin/env bash
2+
cd $SAGE_ROOT
3+
./sage --docbuild --no-pdf-links all html $SAGE_DOCBUILD_OPTS
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../sagemath_doc_html/dependencies
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#! /usr/bin/env bash
2+
cd $SAGE_ROOT
3+
./sage --docbuild all pdf $SAGE_DOCBUILD_OPTS

0 commit comments

Comments
 (0)