From 81f10014314c10ef32a7df8c53abebc4211be0c2 Mon Sep 17 00:00:00 2001 From: Nathan Swain Date: Fri, 10 Nov 2023 14:23:37 -0700 Subject: [PATCH] versioned solutions for map layout update tutorial script --- docs/tutorials/map_layout/add_spatial_data.rst | 4 ++-- docs/tutorials/map_layout/additional_exercises.rst | 2 +- docs/tutorials/map_layout/configure_data_plotting.rst | 4 ++-- docs/tutorials/map_layout/configure_map_layout.rst | 4 ++-- docs/tutorials/map_layout/data_prep.rst | 4 ++-- docs/tutorials/map_layout/new_app_project.rst | 2 +- scripts/update_tutorial_tags.py | 10 +++++++++- 7 files changed, 19 insertions(+), 11 deletions(-) diff --git a/docs/tutorials/map_layout/add_spatial_data.rst b/docs/tutorials/map_layout/add_spatial_data.rst index 49e270ef2..a7472bcfa 100644 --- a/docs/tutorials/map_layout/add_spatial_data.rst +++ b/docs/tutorials/map_layout/add_spatial_data.rst @@ -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: @@ -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: diff --git a/docs/tutorials/map_layout/additional_exercises.rst b/docs/tutorials/map_layout/additional_exercises.rst index 991988bf1..a21ce2084 100644 --- a/docs/tutorials/map_layout/additional_exercises.rst +++ b/docs/tutorials/map_layout/additional_exercises.rst @@ -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: diff --git a/docs/tutorials/map_layout/configure_data_plotting.rst b/docs/tutorials/map_layout/configure_data_plotting.rst index 89ea53be0..45a79ac3c 100644 --- a/docs/tutorials/map_layout/configure_data_plotting.rst +++ b/docs/tutorials/map_layout/configure_data_plotting.rst @@ -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: @@ -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: diff --git a/docs/tutorials/map_layout/configure_map_layout.rst b/docs/tutorials/map_layout/configure_map_layout.rst index 29835a6e0..77315794d 100644 --- a/docs/tutorials/map_layout/configure_map_layout.rst +++ b/docs/tutorials/map_layout/configure_map_layout.rst @@ -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 =============================================== @@ -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 \ No newline at end of file + git checkout -b configure-map-layout-solution configure-map-layout-solution-|version| \ No newline at end of file diff --git a/docs/tutorials/map_layout/data_prep.rst b/docs/tutorials/map_layout/data_prep.rst index 3d0a9b1e8..4dcd01bba 100644 --- a/docs/tutorials/map_layout/data_prep.rst +++ b/docs/tutorials/map_layout/data_prep.rst @@ -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 =================================== @@ -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: diff --git a/docs/tutorials/map_layout/new_app_project.rst b/docs/tutorials/map_layout/new_app_project.rst index 9b1179758..772f31e5f 100644 --- a/docs/tutorials/map_layout/new_app_project.rst +++ b/docs/tutorials/map_layout/new_app_project.rst @@ -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 \ No newline at end of file + git checkout -b new-app-project-solution new-app-project-solution-|version| \ No newline at end of file diff --git a/scripts/update_tutorial_tags.py b/scripts/update_tutorial_tags.py index c84e81df8..9d8adf523 100644 --- a/scripts/update_tutorial_tags.py +++ b/scripts/update_tutorial_tags.py @@ -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 ({: {: }} tutorial_repos = { @@ -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__":