diff --git a/scripts/build_docs.sh b/scripts/build_docs.sh index 5ddcc2739c..24fe8ee82f 100755 --- a/scripts/build_docs.sh +++ b/scripts/build_docs.sh @@ -7,18 +7,19 @@ # run this script from the project root using `./scripts/build_docs.sh` usage() { - echo "Usage: $0 [-b]" + echo "Usage: $0 [-b | -n]" echo "" echo "Build Classy Vision documentation." echo "" echo " -b Build static version of documentation (otherwise start server)" + echo " -n Skip the docusaurus build/start step" echo "" exit 1 } BUILD_STATIC=false -while getopts 'hb' flag; do +while getopts 'hbn' flag; do case "${flag}" in h) usage @@ -26,6 +27,9 @@ while getopts 'hb' flag; do b) BUILD_STATIC=true ;; + n) + SKIP_DOCUSAURUS=true + ;; *) usage ;; @@ -83,6 +87,13 @@ python scripts/parse_tutorials.py -w "${cwd}" cd website || exit +if [[ $SKIP_DOCUSAURUS == true ]]; then + echo "-----------------------------------" + echo "Skipping docusaurus build because -n flag was provided" + echo "-----------------------------------" + exit 0 +fi + if [[ $BUILD_STATIC == true ]]; then echo "-----------------------------------" echo "Building static site" diff --git a/website/core/Footer.js b/website/core/Footer.js index fec406770b..2006f98e83 100644 --- a/website/core/Footer.js +++ b/website/core/Footer.js @@ -93,7 +93,8 @@ class Footer extends React.Component {