Skip to content

Commit

Permalink
Fix plot paths for 03_geo
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Aug 2, 2024
1 parent ee83624 commit db53187
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/deploy-live-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,23 @@ jobs:
run: |
declare -A example_map
example_map["01_orbit_prop"]="01_orbit_prop"
example_map["02_jwst_covar_monte_carlo"]="02_jwst"
example_map["03_geo_analysis"]="03_geo_raise"
example_map["02_jwst"]="02_jwst_covar_monte_carlo"
declare -A special_cases
special_cases["03_geo_analysis"]="03_geo_raise 03_geo_drift 03_geo_sk"
for example_dir in examples/*; do
example_name=$(basename $example_dir)
if [ -d "$example_dir/plots" ]; then
doc_name=${example_map[$example_name]}
if [ -n "$doc_name" ]; then
if [ -n "${example_map[$example_name]}" ]; then
doc_name=${example_map[$example_name]}
mkdir -p target/doc/$doc_name/plots
cp -r $example_dir/plots/* target/doc/$doc_name/plots/
elif [ -n "${special_cases[$example_name]}" ]; then
for target_folder in ${special_cases[$example_name]}; do
mkdir -p target/doc/$target_folder/plots
cp -r $example_dir/plots/* target/doc/$target_folder/plots/
done
else
echo "No mapping found for $example_name"
fi
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/deploy-staging-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,23 @@ jobs:
run: |
declare -A example_map
example_map["01_orbit_prop"]="01_orbit_prop"
example_map["02_jwst_covar_monte_carlo"]="02_jwst"
example_map["03_geo_analysis"]="03_geo_raise"
example_map["02_jwst"]="02_jwst_covar_monte_carlo"
declare -A special_cases
special_cases["03_geo_analysis"]="03_geo_raise 03_geo_drift 03_geo_sk"
for example_dir in examples/*; do
example_name=$(basename $example_dir)
if [ -d "$example_dir/plots" ]; then
doc_name=${example_map[$example_name]}
if [ -n "$doc_name" ]; then
if [ -n "${example_map[$example_name]}" ]; then
doc_name=${example_map[$example_name]}
mkdir -p target/doc/$doc_name/plots
cp -r $example_dir/plots/* target/doc/$doc_name/plots/
elif [ -n "${special_cases[$example_name]}" ]; then
for target_folder in ${special_cases[$example_name]}; do
mkdir -p target/doc/$target_folder/plots
cp -r $example_dir/plots/* target/doc/$target_folder/plots/
done
else
echo "No mapping found for $example_name"
fi
Expand Down

0 comments on commit db53187

Please sign in to comment.