diff --git a/Makefile b/Makefile index a3e48b957d74d..b5236aee807a5 100644 --- a/Makefile +++ b/Makefile @@ -116,7 +116,7 @@ node_modules: package.json yarn.lock # All the requirements for a full build dependencies: clean - make hugpython all-examples update_pre_build node_modules build-cdocs placeholders + make hugpython all-examples update_pre_build node_modules build-cdocs integrations_data/extracted/vector: $(call source_repo,vector,https://github.com/vectordotdev/vector.git,master,true,website/) @@ -153,6 +153,13 @@ update_websites_sources_module: node_modules/hugo-bin/vendor/hugo mod clean node_modules/hugo-bin/vendor/hugo mod tidy cat go.mod + @if [ -n "$(CI_COMMIT_REF_NAME)" ]; then \ + echo "In ci, vendoring integrations pages for placeholder generation"; \ + node_modules/hugo-bin/vendor/hugo mod vendor; \ + cp -rpv _vendor/github.com/DataDog/websites-sources/content/en/integrations/. content/en/integrations/; \ + rm -rf _vendor; \ + fi + ####################################################################################################################### # API Code Examples #######################################################################################################################