@@ -29,7 +29,7 @@ elif [[ $1 = "dev" ]] ; then
29
29
elif [[ $1 = " dev-clean" ]] ; then
30
30
# For testing: creates separate dir and does not (git) commit and
31
31
# also deletes an existing .doctrees subdirectory
32
- dir=$PWD /docs/dev
32
+ dir=$PWD /docs/dev
33
33
elif [[ $1 = " dev-scrub" ]] ; then
34
34
# For testing: creates separate dir and does not (git) commit and
35
35
# also completely deletes the new target directory.
@@ -38,10 +38,15 @@ elif [[ $1 = "dev-scrub" ]] ; then
38
38
elif [[ $1 = " dev-recipes" ]] ; then
39
39
# For testing: similar to dev, but specifically for generating recipes.
40
40
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
41
46
else
42
47
set +x
43
48
echo " \$ 1 must be one of 'dev', 'dev-clean', 'dev-scrub', 'latest', 'archive',
44
- or 'dev-recipes'"
49
+ 'dev-recipes' or 'dev-recipes-scrub '"
45
50
exit 2
46
51
fi
47
52
@@ -76,6 +81,13 @@ mkdir -p $dir/_downloads
76
81
# # Force recreation of recipes
77
82
# rm source/recipes/*.md5
78
83
# 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
79
91
80
92
export CF_DOCS_MODE=$1
81
93
@@ -164,11 +176,11 @@ if [[ $1 = "latest" ]] ; then
164
176
cd $dir
165
177
git add \
166
178
* .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 \
172
184
* .inv \
173
185
* .js \
174
186
_static \
185
197
set +x
186
198
187
199
echo PYTHONPATH=$PYTHONPATH
188
-
0 commit comments