[Bf-docboard-svn] bf-manual: [8168] trunk/blender_docs/Makefile: Restore "html" target

Campbell Barton noreply at blender.org
Mon Jun 28 04:51:29 CEST 2021


Revision: 8168
          https://developer.blender.org/rBM8168
Author:   campbellbarton
Date:     2021-06-28 04:51:29 +0200 (Mon, 28 Jun 2021)
Log Message:
-----------
Restore "html" target

Partial revert of rev 8150,

This target has some minor usability advantages:
- Gives a useful error if `sphinx-build` is missing.
- Shows a command to run once the build is finished that opens the generated document.

Revision Links:
--------------
    https://developer.blender.org/rBM8150

Modified Paths:
--------------
    trunk/blender_docs/Makefile

Modified: trunk/blender_docs/Makefile
===================================================================
--- trunk/blender_docs/Makefile	2021-06-25 23:31:44 UTC (rev 8167)
+++ trunk/blender_docs/Makefile	2021-06-28 02:51:29 UTC (rev 8168)
@@ -84,6 +84,11 @@
 # End command checking
 # --------------------
 
+html: .SPHINXBUILD_EXISTS
+	$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
+	@echo "To view, run:"
+	@echo "  "$(OPEN_CMD) $(shell pwd)"/$(BUILDDIR)/html/index.html"
+
 livehtml:
 	@$(SPHINXAUTOBUILD) --open-browser --delay 0 "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
 



More information about the Bf-docboard-svn mailing list