-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to a more secure bash syntax (#661)
- Loading branch information
1 parent
2249350
commit aeccc62
Showing
7 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
# Change this to where gen-crd-api-reference-docs is extracted | ||
GEN_DOCS=$HOME/gen-crd-api-reference-docs | ||
GEN_DOCS=${HOME}/gen-crd-api-reference-docs | ||
|
||
# Change this to where the website repository is cloned. | ||
WEBSITE_ROOT=$GOPATH/src/github.com/kubeflow/website | ||
WEBSITE_ROOT=${GOPATH}/src/github.com/kubeflow/website | ||
|
||
# V1beta1 | ||
CONTENT_DIR=$WEBSITE_ROOT/content/docs/reference/pytorchjob/v1beta1 | ||
CONTENT_DIR=${WEBSITE_ROOT}/content/docs/reference/pytorchjob/v1beta1 | ||
|
||
echo "+++ | ||
title = \"PyTorchJob\" | ||
description = \"Reference documentation for PyTorchJob\" | ||
weight = 100 | ||
+++" > $CONTENT_DIR/pytorch.md | ||
+++" > ${CONTENT_DIR}/pytorch.md | ||
|
||
$GEN_DOCS/gen-crd-api-reference-docs -config $WEBSITE_ROOT/gen-api-reference/kubeflow-config.json -template-dir $GEN_DOCS/template -api-dir "github.com/kubeflow/pytorch-operator/pkg/apis/pytorch/v1beta1" -out-file temp_pytorch.md | ||
cat temp_pytorch.md >> $CONTENT_DIR/pytorch.md | ||
${GEN_DOCS}/gen-crd-api-reference-docs -config ${WEBSITE_ROOT}/gen-api-reference/kubeflow-config.json -template-dir ${GEN_DOCS}/template -api-dir "github.com/kubeflow/pytorch-operator/pkg/apis/pytorch/v1beta1" -out-file temp_pytorch.md | ||
cat temp_pytorch.md >> ${CONTENT_DIR}/pytorch.md | ||
rm temp_pytorch.md | ||
|
||
# V1beta2 | ||
CONTENT_DIR=$WEBSITE_ROOT/content/docs/reference/pytorchjob/v1beta2 | ||
CONTENT_DIR=${WEBSITE_ROOT}/content/docs/reference/pytorchjob/v1beta2 | ||
|
||
echo "+++ | ||
title = \"PyTorchJob\" | ||
description = \"Reference documentation for PyTorchJob\" | ||
weight = 100 | ||
+++" > $CONTENT_DIR/pytorch.md | ||
+++" > ${CONTENT_DIR}/pytorch.md | ||
|
||
$GEN_DOCS/gen-crd-api-reference-docs -config $WEBSITE_ROOT/gen-api-reference/kubeflow-config.json -template-dir $GEN_DOCS/template -api-dir "github.com/kubeflow/pytorch-operator/pkg/apis/pytorch/v1beta2" -out-file temp_pytorch.md | ||
cat temp_pytorch.md >> $CONTENT_DIR/pytorch.md | ||
${GEN_DOCS}/gen-crd-api-reference-docs -config ${WEBSITE_ROOT}/gen-api-reference/kubeflow-config.json -template-dir ${GEN_DOCS}/template -api-dir "github.com/kubeflow/pytorch-operator/pkg/apis/pytorch/v1beta2" -out-file temp_pytorch.md | ||
cat temp_pytorch.md >> ${CONTENT_DIR}/pytorch.md | ||
rm temp_pytorch.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
# Change this to where gen-crd-api-reference-docs is extracted | ||
GEN_DOCS=$HOME/gen-crd-api-reference-docs | ||
GEN_DOCS=${HOME}/gen-crd-api-reference-docs | ||
|
||
# Change this to where the website repository is cloned. | ||
WEBSITE_ROOT=$GOPATH/src/github.com/kubeflow/website | ||
WEBSITE_ROOT=${GOPATH}/src/github.com/kubeflow/website | ||
|
||
# V1beta1 | ||
CONTENT_DIR=$WEBSITE_ROOT/content/docs/reference/tfjob/v1beta1 | ||
CONTENT_DIR=${WEBSITE_ROOT}/content/docs/reference/tfjob/v1beta1 | ||
|
||
echo "+++ | ||
title = \"TFJob Common\" | ||
description = \"Reference documentation for TFJob\" | ||
weight = 100 | ||
+++" > $CONTENT_DIR/common.md | ||
+++" > ${CONTENT_DIR}/common.md | ||
|
||
$GEN_DOCS/gen-crd-api-reference-docs -config $WEBSITE_ROOT/gen-api-reference/kubeflow-config.json -template-dir $GEN_DOCS/template -api-dir "github.com/kubeflow/tf-operator/pkg/apis/common/v1beta1" -out-file temp_common.md | ||
cat temp_common.md >> $CONTENT_DIR/common.md | ||
${GEN_DOCS}/gen-crd-api-reference-docs -config ${WEBSITE_ROOT}/gen-api-reference/kubeflow-config.json -template-dir ${GEN_DOCS}/template -api-dir "github.com/kubeflow/tf-operator/pkg/apis/common/v1beta1" -out-file temp_common.md | ||
cat temp_common.md >> ${CONTENT_DIR}/common.md | ||
rm temp_common.md | ||
|
||
echo "+++ | ||
title = \"TFJob TensorFlow\" | ||
description = \"Reference documentation for TFJob\" | ||
weight = 100 | ||
+++" > $CONTENT_DIR/tensorflow.md | ||
+++" > ${CONTENT_DIR}/tensorflow.md | ||
|
||
$GEN_DOCS/gen-crd-api-reference-docs -config $WEBSITE_ROOT/gen-api-reference/kubeflow-config.json -template-dir $GEN_DOCS/template -api-dir "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1beta1" -out-file temp_tensorflow.md | ||
cat temp_tensorflow.md >> $CONTENT_DIR/tensorflow.md | ||
${GEN_DOCS}/gen-crd-api-reference-docs -config ${WEBSITE_ROOT}/gen-api-reference/kubeflow-config.json -template-dir ${GEN_DOCS}/template -api-dir "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1beta1" -out-file temp_tensorflow.md | ||
cat temp_tensorflow.md >> ${CONTENT_DIR}/tensorflow.md | ||
rm temp_tensorflow.md | ||
|
||
# V1beta2 | ||
CONTENT_DIR=$WEBSITE_ROOT/content/docs/reference/tfjob/v1beta2 | ||
CONTENT_DIR=${WEBSITE_ROOT}/content/docs/reference/tfjob/v1beta2 | ||
|
||
echo "+++ | ||
title = \"TFJob Common\" | ||
description = \"Reference documentation for TFJob\" | ||
weight = 100 | ||
+++" > $CONTENT_DIR/common.md | ||
+++" > ${CONTENT_DIR}/common.md | ||
|
||
$GEN_DOCS/gen-crd-api-reference-docs -config $WEBSITE_ROOT/gen-api-reference/kubeflow-config.json -template-dir $GEN_DOCS/template -api-dir "github.com/kubeflow/tf-operator/pkg/apis/common/v1beta2" -out-file temp_common.md | ||
cat temp_common.md >> $CONTENT_DIR/common.md | ||
${GEN_DOCS}/gen-crd-api-reference-docs -config ${WEBSITE_ROOT}/gen-api-reference/kubeflow-config.json -template-dir ${GEN_DOCS}/template -api-dir "github.com/kubeflow/tf-operator/pkg/apis/common/v1beta2" -out-file temp_common.md | ||
cat temp_common.md >> ${CONTENT_DIR}/common.md | ||
rm temp_common.md | ||
|
||
echo "+++ | ||
title = \"TFJob TensorFlow\" | ||
description = \"Reference documentation for TFJob\" | ||
weight = 100 | ||
+++" > $CONTENT_DIR/tensorflow.md | ||
+++" > ${CONTENT_DIR}/tensorflow.md | ||
|
||
$GEN_DOCS/gen-crd-api-reference-docs -config $WEBSITE_ROOT/gen-api-reference/kubeflow-config.json -template-dir $GEN_DOCS/template -api-dir "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1beta2" -out-file temp_tensorflow.md | ||
cat temp_tensorflow.md >> $CONTENT_DIR/tensorflow.md | ||
${GEN_DOCS}/gen-crd-api-reference-docs -config ${WEBSITE_ROOT}/gen-api-reference/kubeflow-config.json -template-dir ${GEN_DOCS}/template -api-dir "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1beta2" -out-file temp_tensorflow.md | ||
cat temp_tensorflow.md >> ${CONTENT_DIR}/tensorflow.md | ||
rm temp_tensorflow.md |