From 3a233a092ff8fef0751dbc337ed46ec506cc4be9 Mon Sep 17 00:00:00 2001 From: David Hassell Date: Fri, 10 Mar 2023 17:45:17 +0000 Subject: [PATCH] tidy --- release_docs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/release_docs b/release_docs index 1ecf5251e2..8e8483a247 100755 --- a/release_docs +++ b/release_docs @@ -49,23 +49,23 @@ zip cf_tutorial_files.zip *.nc *.pp cd - # Regerenate tutorial.py field_analysis.py -#if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] ; then -# ./test_tutorial_code -# rc=$? -# if [[ $rc != 0 ]]; then -# echo "test_tutorial_code failed." -# # exit $rc -# fi -# pre-commit run --files tutorial.py field_analysis.py -#fi +if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] ; then + ./test_tutorial_code + rc=$? + if [[ $rc != 0 ]]; then + echo "test_tutorial_code failed." + # exit $rc + fi + pre-commit run --files tutorial.py field_analysis.py +fi # -------------------------------------------------------------------- # Make the latest docs # -------------------------------------------------------------------- cd docs -#if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] || [[ $1 = "dev-clean" ]] ; then -# rm -fr $dir/.doctrees -#fi +if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] || [[ $1 = "dev-clean" ]] ; then + rm -fr $dir/.doctrees +fi mkdir -p $dir/_downloads #if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] ; then