diff options
Diffstat (limited to 'bin/docs_jwst.sh')
-rwxr-xr-x | bin/docs_jwst.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/bin/docs_jwst.sh b/bin/docs_jwst.sh new file mode 100755 index 0000000..1542cdd --- /dev/null +++ b/bin/docs_jwst.sh @@ -0,0 +1,36 @@ +#!/bin/bash +source /eng/ssb/auto/astroconda/include/midnight_special.sh +source /eng/ssb/auto/astroconda/include/conda_porcelain.sh +source /eng/ssb/auto/astroconda/include/texlive.sh + +porcelain_init + +pushd "$PORCELAIN_PREFIX" + porcelain_get_installer + porcelain_run_installer + + build_env="$(basename $PORCELAIN_PREFIX)" + depot=/eng/ssb/websites/ssbpublic/doc/jwst_git + + repo_conda=http://ssb.stsci.edu/conda-dev + repo_git=https://github.com/stsci-jwst/jwst + repo_git_branch=master + + conda create -n "$build_env" \ + --yes \ + --quiet \ + --override-channels \ + -c defaults \ + -c $repo_conda sphinx=1.3.5 jwst stsci.sphinxext + + source activate $build_env + + git clone "$repo_git" + pushd "$(basename $repo_git)" + git checkout $repo_git_branch + docs/mkdocs.sh -o "$depot" + popd +popd + +porcelain_deinit + |