Parcourir la source

Fixed docs/Makefile (#226)

Co-authored-by: Dmitriy Suponitskiy <dsuponitskiy@dualitytech.com>
dsuponitskiy il y a 8 mois
Parent
commit
b161f73a05
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 9 0
      docs/Makefile

+ 9 - 0
docs/Makefile

@@ -13,6 +13,15 @@ help:
 
 .PHONY: help Makefile
 
+# I got the following warning running "make html":
+#     WARNING: html_static_path entry '_static' does not exist
+# The _static folder in a Sphinx project is used to store custom static files. We must either
+# suppress the warning by creating the folder or remove the entry from conf.py ("html_static_path = []").
+# Creating the folder may be safer.
+html:
+	@mkdir -p _static
+	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
+
 # Catch-all target: route all unknown targets to Sphinx using the new
 # "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
 %: Makefile