From eddbce03e8d087373e20c8f91dd9f57241226b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Signe=20Kirk=20Br=C3=B8db=C3=A6k?= Date: Wed, 26 Feb 2025 17:02:35 +0100 Subject: [PATCH 1/5] docs: :memo: add edit file content to cookie recipe exercise --- sessions/working-with-files.qmd | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sessions/working-with-files.qmd b/sessions/working-with-files.qmd index dd83036..4e4b580 100644 --- a/sessions/working-with-files.qmd +++ b/sessions/working-with-files.qmd @@ -137,7 +137,7 @@ repository! :tada: {{< text_snippet sticky_up >}} -## :technologist: Exercise: Rename and move the `cookie-recipe.md` file +## :technologist: Exercise: Rename, edit, and move the `cookie-recipe.md` file **Time: \~10 minutes** @@ -158,6 +158,15 @@ file first before moving it to the new folder: Start by renaming the 3. Commit the changes as we have done it previously, by clicking the green "Commit changes" button and fill in the commit message. +Similarly to the soup recipe, change the first line of the +`chocolate-chip-cookies.md` file: + +1. Click the pencil icon on top-right side of the page ("Edit this + file") to edit the file. +2. Edit the first line of the file by adding "chocolate chip", so it becomes "Ingredients for chocolate chip + cookies". +3. Commit the changes. + Next, move the file to a new `baked-goods/` folder: 1. Click the pencil icon on the right side of the screen ("Edit this From 0e8bce1fcb4b90c6bad6f0df519550d733beff4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Signe=20Kirk=20Br=C3=B8db=C3=A6k?= Date: Wed, 26 Feb 2025 17:03:06 +0100 Subject: [PATCH 2/5] docs: :memo: remove "chocolate cookie" from example cookie recipe So we can add it later in the exercise --- sessions/working-with-files.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sessions/working-with-files.qmd b/sessions/working-with-files.qmd index 4e4b580..b468612 100644 --- a/sessions/working-with-files.qmd +++ b/sessions/working-with-files.qmd @@ -107,7 +107,7 @@ Let's add the first recipe to your repository: A cookie recipe! :cookie: **Example cookie recipe:** ``` markdown -Ingredients for chocolate chip cookies +Ingredients for cookies - 240 grams flour - 3/4 tsp salt From 4d73a926bf022449fcc2c0cb939e757a7d4662ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Signe=20Kirk=20Br=C3=B8db=C3=A6k?= Date: Wed, 26 Feb 2025 17:03:59 +0100 Subject: [PATCH 3/5] docs: :pencil2: add `` and `/` to mention of `baked-goods/` folder --- sessions/working-with-files.qmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sessions/working-with-files.qmd b/sessions/working-with-files.qmd index b468612..247ffc6 100644 --- a/sessions/working-with-files.qmd +++ b/sessions/working-with-files.qmd @@ -143,8 +143,8 @@ repository! :tada: Just like we did with the soup recipe above, let's rename the `cookie-recipe.md` file so the name is more specific. Let's also move it -to a new baked goods folder. That way, if you want to add other recipes -for baked goods, you can put it in that folder. +to a new `baked-goods/` folder. That way, if you want to add other +recipes for baked goods, you can put it in that folder. While you can move and rename in the same step, for practice, rename the file first before moving it to the new folder: Start by renaming the From bee811ddbb6d2640826dd848a30da1b668553111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Signe=20Kirk=20Br=C3=B8db=C3=A6k?= Date: Wed, 26 Feb 2025 17:06:33 +0100 Subject: [PATCH 4/5] docs: :memo: specify where on the page, the mentioned buttons can be found --- sessions/working-with-files.qmd | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sessions/working-with-files.qmd b/sessions/working-with-files.qmd index 247ffc6..816bdcf 100644 --- a/sessions/working-with-files.qmd +++ b/sessions/working-with-files.qmd @@ -150,11 +150,11 @@ While you can move and rename in the same step, for practice, rename the file first before moving it to the new folder: Start by renaming the `cookie-recipe.md` file: -1. Click the pencil icon on the right side of the screen ("Edit this +1. Click the pencil icon on the top-right side of the page ("Edit this file") to edit the `cookie-recipe.md` file. -2. Click the name of the file at the top of the screen and rename the - file to `chocolate-chip-cookies.md`. Remember to not use spaces in - the file name and keep the file extension (`.md`). +2. Click the name of the file at the top-left of the page and rename + the file to `chocolate-chip-cookies.md`. Remember to not use spaces + in the file name and keep the file extension (`.md`). 3. Commit the changes as we have done it previously, by clicking the green "Commit changes" button and fill in the commit message. @@ -163,16 +163,16 @@ Similarly to the soup recipe, change the first line of the 1. Click the pencil icon on top-right side of the page ("Edit this file") to edit the file. -2. Edit the first line of the file by adding "chocolate chip", so it becomes "Ingredients for chocolate chip - cookies". +2. Edit the first line of the file by adding "chocolate chip", so it + becomes "Ingredients for chocolate chip cookies". 3. Commit the changes. Next, move the file to a new `baked-goods/` folder: -1. Click the pencil icon on the right side of the screen ("Edit this +1. Click the pencil icon on the top-right side of the page ("Edit this file") as we did before on the `chocolate-chip-cookies.md` file. -2. Click the name of the file at the top of the screen and change the - path of the file to a new folder to your repository. The current +2. Click the name of the file at the top-left of the page and change + the path of the file to a new folder to your repository. The current file path is `chocolate-chip-cookies.md`. To create a new folder, change the file path by typing `baked-goods/` at the start of the file name, so the whole file path From 433bfc50c4fdf9005a6125bf4d568f5f0f671a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Signe=20Kirk=20Br=C3=B8db=C3=A6k?= Date: Wed, 26 Feb 2025 17:08:09 +0100 Subject: [PATCH 5/5] docs: :pencil2: change order to rename, edit, then move So it fits the order they'll do it in the exercise. --- sessions/working-with-files.qmd | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sessions/working-with-files.qmd b/sessions/working-with-files.qmd index 816bdcf..58275c7 100644 --- a/sessions/working-with-files.qmd +++ b/sessions/working-with-files.qmd @@ -146,9 +146,11 @@ Just like we did with the soup recipe above, let's rename the to a new `baked-goods/` folder. That way, if you want to add other recipes for baked goods, you can put it in that folder. -While you can move and rename in the same step, for practice, rename the -file first before moving it to the new folder: Start by renaming the -`cookie-recipe.md` file: +While you can rename, edit, and move in the same step, for practice, +rename the file first, then edit the content, and last move it to the +new folder. + +Start by renaming the `cookie-recipe.md` file: 1. Click the pencil icon on the top-right side of the page ("Edit this file") to edit the `cookie-recipe.md` file.