Skip to content

Commit

Permalink
versioned solutions for map layout
Browse files Browse the repository at this point in the history
update tutorial script
  • Loading branch information
swainn committed Nov 10, 2023
1 parent ae11f4f commit 81f1001
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/tutorials/map_layout/add_spatial_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you wish to use the previous solution as a starting point:
git clone https://github.com/tethysplatform/tethysapp-map_layout_tutorial.git
cd tethysapp-map_layout_tutorial
git checkout -b data-prep-solution data-prep-solution
git checkout -b data-prep-solution data-prep-solution-|version|
You'll also need to do the following:

Expand Down Expand Up @@ -386,7 +386,7 @@ This concludes the Add Spatial Data portion of the Map Layout Tutorial. You can
git clone https://github.com/tethysplatform/tethysapp-map_layout_tutorial.git
cd tethysapp-map_layout_tutorial
git checkout -b add-spatial-data-solution add-spatial-data-solution
git checkout -b add-spatial-data-solution add-spatial-data-solution-|version|
You'll also need to do the following:

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/map_layout/additional_exercises.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you wish to use the previous solution as a starting point:
git clone https://github.com/tethysplatform/tethysapp-map_layout_tutorial.git
cd tethysapp-map_layout_tutorial
git checkout -b configure-data-plotting configure-data-plotting
git checkout -b configure-data-plotting configure-data-plotting-|version|
You'll also need to do the following:

Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/map_layout/configure_data_plotting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you wish to use the previous solution as a starting point:
git clone https://github.com/tethysplatform/tethysapp-map_layout_tutorial.git
cd tethysapp-map_layout_tutorial
git checkout -b add-spatial-data-solution add-spatial-data-solution
git checkout -b add-spatial-data-solution add-spatial-data-solution-|version|
You'll also need to do the following:

Expand Down Expand Up @@ -385,7 +385,7 @@ This concludes the Configure Data Plotting portion of the Map Layout Tutorial. Y
git clone https://github.com/tethysplatform/tethysapp-map_layout_tutorial.git
cd tethysapp-map_layout_tutorial
git checkout -b configure-data-plotting configure-data-plotting
git checkout -b configure-data-plotting configure-data-plotting-|version|
You'll also need to do the following:

Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/map_layout/configure_map_layout.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you wish to use the previous solution as a starting point, do the following:
git clone https://github.com/tethysplatform/tethysapp-map_layout_tutorial.git
cd tethysapp-map_layout_tutorial
git checkout -b new-app-project-solution new-app-project-solution
git checkout -b new-app-project-solution new-app-project-solution-|version|
1. Swap default home controller with Map Layout
===============================================
Expand Down Expand Up @@ -58,4 +58,4 @@ This concludes the Configure Map Layout portion of the Map Layout Tutorial. You
git clone https://github.com/tethysplatform/tethysapp-map_layout_tutorial.git
cd tethysapp-map_layout_tutorial
git checkout -b configure-map-layout-solution configure-map-layout-solution
git checkout -b configure-map-layout-solution configure-map-layout-solution-|version|
4 changes: 2 additions & 2 deletions docs/tutorials/map_layout/data_prep.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you wish to use the previous solution as a starting point:
git clone https://github.com/tethysplatform/tethysapp-map_layout_tutorial.git
cd tethysapp-map_layout_tutorial
git checkout -b configure-map-layout-solution configure-map-layout-solution
git checkout -b configure-map-layout-solution configure-map-layout-solution-|version|
1. Download the sample NextGen data
===================================
Expand Down Expand Up @@ -146,7 +146,7 @@ This concludes the Data Prep portion of the Map Layout Tutorial. You can view th
git clone https://github.com/tethysplatform/tethysapp-map_layout_tutorial.git
cd tethysapp-map_layout_tutorial
git checkout -b data-prep-solution data-prep-solution
git checkout -b data-prep-solution data-prep-solution-|version|
You'll also need to do the following:

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/map_layout/new_app_project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ This concludes the New App Project portion of the Map Layout Tutorial. You can v
git clone https://github.com/tethysplatform/tethysapp-map_layout_tutorial.git
cd tethysapp-map_layout_tutorial
git checkout -b new-app-project-solution new-app-project-solution
git checkout -b new-app-project-solution new-app-project-solution-|version|
10 changes: 9 additions & 1 deletion scripts/update_tutorial_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
from github.GithubException import BadCredentialsException

# Requirements: pip install PyGithub
# Github token with Contents read/write permissions on all of the tethysplatform tutorial repositories

# Tethys Version to Tag For
tethys_version = "4.1"
tethys_version = "4.2"

# Tutorial repos ({<repo_name>: {<branch>: <tag_prefix>}}
tutorial_repos = {
Expand Down Expand Up @@ -62,6 +63,13 @@
"tethysplatform/tethysapp-postgis_app": {
"main": "solution",
},
"tethysplatform/tethysapp-map_layout_tutorial": {
"new-app-project-solution": "new-app-project-solution",
"configure-map-layout-solution": "configure-map-layout-solution",
"data-prep-solution": "data-prep-solution",
"add-spatial-data-solution": "add-spatial-data-solution",
"configure-data-plotting-solution": "configure-data-plotting-solution",
},
}

if __name__ == "__main__":
Expand Down

0 comments on commit 81f1001

Please sign in to comment.