Skip to content

Commit 4da57d0

Browse files
committed
Print the doc install directory only for make
1 parent db97e16 commit 4da57d0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/doc/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ doc-html:
2424
mkdir -p $(SAGE_DOC)
2525
cp -rf ../../build/sage-distro/src/doc/html $(SAGE_DOC)
2626
cp -f ../../build/sage-distro/src/doc/index.html $(SAGE_DOC)
27+
@echo "The html documentation was installed to $(SAGE_DOC)/html."
2728

2829
doc-pdf:
2930
meson compile -C ../../build/sage-distro doc-pdf
3031
mkdir -p $(SAGE_DOC)
3132
cp -rf ../../build/sage-distro/src/doc/pdf $(SAGE_DOC)
33+
@echo "The pdf documentation was installed to $(SAGE_DOC)/pdf."
3234

3335
.PHONY: all clean \
3436
doc-src \

src/sage_docbuild/builders.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ def f(self, *args, **kwds):
150150
if build_options.ABORT_ON_ERROR:
151151
raise Exception("Non-exception during docbuild: %s" % (e,), e)
152152

153+
if type == 'latex':
154+
logger.warning(f"LaTeX files can be found in {output_dir}.")
155+
elif type != 'inventory':
156+
logger.warning(f"Build finished. The built documents can be found in {output_dir}.")
157+
153158
f.is_output_format = True
154159
return f
155160

0 commit comments

Comments
 (0)