From dc908c942eeba0478a1c7f3204fe0ee29893d370 Mon Sep 17 00:00:00 2001 From: Carlos Santana Date: Mon, 17 May 2021 17:00:25 -0400 Subject: [PATCH] add correct bin PATH for postcss (#3589) Signed-off-by: Carlos Santana --- hack/build-with-blog.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/build-with-blog.sh b/hack/build-with-blog.sh index 1f844c283..0ad2398ae 100755 --- a/hack/build-with-blog.sh +++ b/hack/build-with-blog.sh @@ -90,6 +90,8 @@ if [ -z "$SKIP_BLOG" ]; then # See https://github.com/knative/website/blob/main/scripts/processsourcefiles.sh#L125 # For the reasoning behind all this. echo 'Converting all links in GitHub source files to Hugo supported relative links...' + # Setup postcss to be in the PATH + PATH=${PATH}:${PWD}/node_modules/.bin pushd temp/website # Convert relative links to support Hugo find . -type f -path '*/content/*.md' ! -name '*_index.md' ! -name '*index.md' ! -name '*README.md' \ @@ -105,7 +107,7 @@ if [ -z "$SKIP_BLOG" ]; then -exec sed -i '/](/ { /http/ !{s#\.md##g} }' {} + # Run the hugo build as normal! - PATH=${PATH}:${PWD}/node_modules/.bin hugo + hugo popd # Hugo builds to public/, just copy over to site/ to match up with mkdocs