@@ -228,35 +228,35 @@ kube::util::gen-docs() {
228
228
229
229
# create the list of generated files
230
230
pushd " ${dest} " > /dev/null
231
- touch .generated_docs
232
- find . -type f | cut -sd / -f 2- | LC_ALL=C sort > .generated_docs
231
+ touch docs/ .generated_docs
232
+ find . -type f | cut -sd / -f 2- | LC_ALL=C sort > docs/ .generated_docs
233
233
popd > /dev/null
234
234
}
235
235
236
236
# Puts a placeholder for every generated doc. This makes the link checker work.
237
237
kube::util::set-placeholder-gen-docs () {
238
- local list_file=" ${KUBE_ROOT} /.generated_docs"
238
+ local list_file=" ${KUBE_ROOT} /docs/ .generated_docs"
239
239
if [ -e ${list_file} ]; then
240
240
# remove all of the old docs; we don't want to check them in.
241
241
while read file; do
242
242
if [[ " ${list_file} " != " ${KUBE_ROOT} /${file} " ]]; then
243
243
cp " ${KUBE_ROOT} /hack/autogenerated_placeholder.txt" " ${KUBE_ROOT} /${file} "
244
244
fi
245
245
done < " ${list_file} "
246
- # The .generated_docs file lists itself, so we don't need to explicitly
246
+ # The docs/ .generated_docs file lists itself, so we don't need to explicitly
247
247
# delete it.
248
248
fi
249
249
}
250
250
251
251
# Removes previously generated docs-- we don't want to check them in. $KUBE_ROOT
252
252
# must be set.
253
253
kube::util::remove-gen-docs () {
254
- if [ -e " ${KUBE_ROOT} /.generated_docs" ]; then
254
+ if [ -e " ${KUBE_ROOT} /docs/ .generated_docs" ]; then
255
255
# remove all of the old docs; we don't want to check them in.
256
256
while read file; do
257
257
rm " ${KUBE_ROOT} /${file} " 2> /dev/null || true
258
- done < " ${KUBE_ROOT} /.generated_docs"
259
- # The .generated_docs file lists itself, so we don't need to explicitly
258
+ done < " ${KUBE_ROOT} /docs/ .generated_docs"
259
+ # The docs/ .generated_docs file lists itself, so we don't need to explicitly
260
260
# delete it.
261
261
fi
262
262
}
0 commit comments