add correct bin PATH for postcss (#3589)

Signed-off-by: Carlos Santana <csantana23@gmail.com>
This commit is contained in:
Carlos Santana 2021-05-17 17:00:25 -04:00 committed by GitHub
parent ca829a5ac5
commit dc908c942e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -90,6 +90,8 @@ if [ -z "$SKIP_BLOG" ]; then
# See https://github.com/knative/website/blob/main/scripts/processsourcefiles.sh#L125 # See https://github.com/knative/website/blob/main/scripts/processsourcefiles.sh#L125
# For the reasoning behind all this. # For the reasoning behind all this.
echo 'Converting all links in GitHub source files to Hugo supported relative links...' 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 pushd temp/website
# Convert relative links to support Hugo # Convert relative links to support Hugo
find . -type f -path '*/content/*.md' ! -name '*_index.md' ! -name '*index.md' ! -name '*README.md' \ 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} }' {} + -exec sed -i '/](/ { /http/ !{s#\.md##g} }' {} +
# Run the hugo build as normal! # Run the hugo build as normal!
PATH=${PATH}:${PWD}/node_modules/.bin hugo hugo
popd popd
# Hugo builds to public/, just copy over to site/ to match up with mkdocs # Hugo builds to public/, just copy over to site/ to match up with mkdocs