From 95ecd8d86830e2be8a168e1db1a5c38fb4a82c91 Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Sun, 26 Feb 2023 15:14:04 -0800 Subject: [PATCH] Don't require building docs in order to run tests. --- makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 24c0daca..88d4fce2 100644 --- a/makefile +++ b/makefile @@ -153,6 +153,8 @@ test-clean: echo $(MYSQLCLEAN) | mysql --user=weewx --password=weewx --force >/dev/null 2>&1 pypi-packages $(DSTDIR)/$(SRCPKG) $(DSTDIR)/$(WHEEL): copy-resources + cp -rp html_docs/ bin/wee_resources/ + rm -rf $(DOCLOC) && mv -T bin/wee_resources/html_docs $(DOCLOC) poetry build copy-resources: @@ -166,8 +168,6 @@ copy-resources: mkdir -p bin/wee_resources/bin/ cp -rp bin/user/ bin/wee_resources/bin/ cp -p weewx.conf bin/wee_resources/ - cp -rp html_docs/ bin/wee_resources/ - rm -rf bin/wee_resources/docs && mv -T bin/wee_resources/html_docs bin/wee_resources/docs # Upload wheel and src package to pypi.org upload-pypi: $(DSTDIR)/$(SRCPKG) $(DSTDIR)/$(WHEEL) @@ -179,8 +179,9 @@ upload-src: # Build the documentation: build-docs: + @echo "Building documents" rm -rf $(DOCLOC) - mkdocs build + mkdocs --quiet build # upload docs to the web site upload-docs: