diff --git a/website/build_site.sh b/website/build_site.sh index 9dd7e97056..a6db1acbf2 100755 --- a/website/build_site.sh +++ b/website/build_site.sh @@ -28,6 +28,7 @@ $pythonCmd -m pip install jupyter nbconvert==5.6.1 # execute and render the notebooks to html # downgrade html output because hugo doesn't like raw html mkdir -p content/notebooks +# Restricted set of notebooks that are rendered for inclusion on the webpage: notebooks='BayesianOptimization SmartCacheOptimization' for nb in $notebooks; do nb_path="$MLOS_ROOT/source/Mlos.Notebooks/$nb.ipynb" @@ -50,6 +51,17 @@ for f in content/notebooks/*.md; do sed -i "s/FILENAME/$base/g" "$f" done +# Provide +cat > content/notebooks/_index.md <> content/notebooks/_index.md <