Skip to content

Commit e902c16

Browse files
committed
Update Makefile to detect source changes in docs
1 parent 5e4fcef commit e902c16

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,11 @@ endif
5959
$(BUILD_DIR)/mkdocs.yml: mkdocs.yml
6060
@cp mkdocs.yml $(BUILD_DIR)/mkdocs.yml
6161

62-
static-setup:: |$(BUILD_DIR) $(BUILD_DIR)/mkdocs.yml
62+
static-setup:: $(BUILD_DIR) $(BUILD_DIR)/mkdocs.yml
6363
@echo "Setting Up Static Documentation"
64-
@rm -rf $(BUILD_DIR)/docs/
6564
ifeq ($(NO_STATIC),)
6665
@echo " Copying docs/ to temp build"
67-
@rsync -aH docs/. $(BUILD_DIR)/docs/
68-
# fix_build is no longer needed but kept in case
69-
# it's needed again.
70-
# @echo " Applying link transformations"
71-
# @utils/fix_build.sh $(BUILD_DIR)/docs utils/build_fixes.yml
66+
@rsync -vaH --delete-after docs/. $(BUILD_DIR)/docs/
7267
else
7368
@echo " Copying only docs/index.md and favicon.ico to temp build"
7469
@mkdir -p $(BUILD_DIR)/docs

0 commit comments

Comments
 (0)