sjwiesman commented on a change in pull request #14903:
URL: https://github.com/apache/flink/pull/14903#discussion_r573213182



##########
File path: tools/ci/docs.sh
##########
@@ -17,34 +17,20 @@
 # limitations under the License.
 
################################################################################
 
-gem update --system
-gem install bundler -v 1.17.2
+HUGO_REPO=https://github.com/gohugoio/hugo/releases/download/v0.80.0/hugo_extended_0.80.0_Linux-64bit.tar.gz
+HUGO_ARTIFACT=hugo_extended_0.80.0_Linux-64bit.tar.gz
 
-# build the docs w/o any additional arguments, to build both the en and zh 
variant
-JEKYLL_BUILD_CONFIG="--baseurl=" CACHE_DIR=$HOME/gem_cache ./docs/build_docs.sh
-
-if [ $? -ne 0 ]; then
-       echo "Error building the docs"
+if ! curl --fail -OL $HUGO_REPO ; then 
+       echo "Failed to download Hugo binary"
        exit 1
 fi
 
-# serve the docs
-cd docs/content
-python -m SimpleHTTPServer 4000 &
-cd ../..
+tar -zxvf $HUGO_ARTIFACT
 
+hugo --source docs
 
-for i in `seq 1 90`;
-do
-       echo "Waiting for server..."
-       curl -Is http://localhost:4000 --fail
-       if [ $? -eq 0 ]; then
-               ./docs/check_links.sh

Review comment:
       +1




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to