@@ -29,7 +29,7 @@ elif [[ $1 = "dev" ]] ; then
2929elif [[ $1 = " dev-clean" ]] ; then
3030 # For testing: creates separate dir and does not (git) commit and
3131 # also deletes an existing .doctrees subdirectory
32- dir=$PWD /docs/dev
32+ dir=$PWD /docs/dev
3333elif [[ $1 = " dev-scrub" ]] ; then
3434 # For testing: creates separate dir and does not (git) commit and
3535 # also completely deletes the new target directory.
@@ -38,10 +38,15 @@ elif [[ $1 = "dev-scrub" ]] ; then
3838elif [[ $1 = " dev-recipes" ]] ; then
3939 # For testing: similar to dev, but specifically for generating recipes.
4040 dir=$PWD /docs/dev
41+ elif [[ $1 = " dev-recipes-scrub" ]] ; then
42+ # For testing: similar to dev, but specifically for generating recipes,
43+ # but cleaning any generated recipe files and gen'd dev dir first.
44+ dir=$PWD /docs/dev
45+ rm -fr $dir
4146else
4247 set +x
4348 echo " \$ 1 must be one of 'dev', 'dev-clean', 'dev-scrub', 'latest', 'archive',
44- or 'dev-recipes'"
49+ 'dev-recipes' or 'dev-recipes-scrub '"
4550 exit 2
4651fi
4752
@@ -76,6 +81,13 @@ mkdir -p $dir/_downloads
7681# # Force recreation of recipes
7782# rm source/recipes/*.md5
7883# fi
84+ if [[ $1 = " dev-recipes-scrub" ]] ; then
85+ # Force recreation of recipes
86+ rm source/recipes/* .md5
87+ rm source/recipes/* .ipynb
88+ rm source/recipes/* _codeobj.pickle
89+ rm source/recipes/* _recipe.rst
90+ fi
7991
8092export CF_DOCS_MODE=$1
8193
@@ -164,11 +176,11 @@ if [[ $1 = "latest" ]] ; then
164176 cd $dir
165177 git add \
166178 * .html \
167- class/* .html \
168- function/* .html \
169- method/* .html \
170- attribute/* .html \
171- recipes/* .html \
179+ class/* .html \
180+ function/* .html \
181+ method/* .html \
182+ attribute/* .html \
183+ recipes/* .html \
172184 * .inv \
173185 * .js \
174186 _static \
185197set +x
186198
187199echo PYTHONPATH=$PYTHONPATH
188-
0 commit comments