From 573712afe6512fdf57f6f2158db090398c5a1683 Mon Sep 17 00:00:00 2001 From: Oliver Geer Date: Fri, 13 Mar 2026 23:43:57 +0000 Subject: [PATCH] Replace GitHub paths for URLs with relative paths --- README.md | 48 +++++++++++----------- old_materials/Dictionaries_OOP/README.md | 6 +-- old_materials/Lists_Dictionaries/README.md | 2 +- session0/Notes.md | 2 +- session1/Notes.md | 2 +- session2/Notes.md | 4 +- session3/Notes.md | 2 +- session4/Notes.md | 2 +- session5/Notes.md | 2 +- 9 files changed, 35 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 33f8ad6..f856304 100644 --- a/README.md +++ b/README.md @@ -32,37 +32,37 @@ and their solutions. | Session 6: Turtle Graphics | 7 | 30/11 | Work in progress | Work in progress | -[s0notes]: https://github.com/oxcompsoc/learntocode/tree/master/session0/README.md -[s0pdf]: https://github.com/oxcompsoc/learntocode/tree/master/session0/Notes.pdf +[s0notes]: session0/README.md +[s0pdf]: session0/Notes.pdf -[s1notes]: https://github.com/oxcompsoc/learntocode/tree/master/session1/README.md -[s1pdf]: https://github.com/oxcompsoc/learntocode/tree/master/session1/Notes.pdf -[s1slides]: https://github.com/oxcompsoc/learntocode/blob/master/session1/Slides.pdf +[s1notes]: session1/README.md +[s1pdf]: session1/Notes.pdf +[s1slides]: session1/Slides.pdf [s1video]: https://youtu.be/yAzp_pRXVPg -[s2notes]: https://github.com/oxcompsoc/learntocode/tree/master/session2/README.md -[s2pdf]: https://github.com/oxcompsoc/learntocode/tree/master/session2/Notes.pdf -[s2slides]: https://github.com/oxcompsoc/learntocode/blob/master/session2/slides.pdf +[s2notes]: session2/README.md +[s2pdf]: session2/Notes.pdf +[s2slides]: session2/slides.pdf [s2video]: https://youtu.be/orWvOaR0p8E -[s3notes]: https://github.com/oxcompsoc/learntocode/tree/master/session3/README.md -[s3pdf]: https://github.com/oxcompsoc/learntocode/tree/master/session3/Notes.pdf -[s3slides]: https://github.com/oxcompsoc/learntocode/blob/master/session3/slides.pdf +[s3notes]: session3/README.md +[s3pdf]: session3/Notes.pdf +[s3slides]: session3/slides.pdf [s3video]: https://www.youtube.com/watch?v=TU1aisio7IU -[s4notes]: https://github.com/oxcompsoc/learntocode/tree/master/session4/README.md -[s4pdf]: https://github.com/oxcompsoc/learntocode/tree/master/session4/Notes.pdf -[s4slides]: https://github.com/oxcompsoc/learntocode/blob/master/session4/slides.pdf +[s4notes]: session4/README.md +[s4pdf]: session4/Notes.pdf +[s4slides]: session4/slides.pdf [s4video]: https://youtu.be/E-QXg8Gc-nU -[s5notes]: https://github.com/oxcompsoc/learntocode/tree/master/session5/README.md -[s5pdf]: https://github.com/oxcompsoc/learntocode/tree/master/session5/Notes.pdf -[s5slides]: https://github.com/oxcompsoc/learntocode/blob/master/session5/slides.pdf +[s5notes]: session5/README.md +[s5pdf]: session5/Notes.pdf +[s5slides]: session5/slides.pdf [s5video]: https://youtu.be/uDT3xMpaCKY -[s6notes]: https://github.com/oxcompsoc/learntocode/tree/master/session6/README.md -[s6pdf]: https://github.com/oxcompsoc/learntocode/tree/master/session6/Notes.pdf -[s6slides]: https://github.com/oxcompsoc/learntocode/blob/master/session6/slides.pdf +[s6notes]: session6/README.md +[s6pdf]: session6/Notes.pdf +[s6slides]: session6/slides.pdf ## Next steps @@ -70,15 +70,15 @@ Now that you have learnt the basics of Python, there are quite a lot you can do 1. [Here][guessnotes] is a tutorial for building a number guessing game in Python. (Difficulty: 2/5) -[guessnotes]: https://github.com/oxcompsoc/learntocode/tree/master/guessthenumber +[guessnotes]: guessthenumber 2. [Here][guessnotes] is a tutorial for building a snake game in Python using PyGame. (Difficulty: 4/5) -[snakenotes]: https://github.com/oxcompsoc/learntocode/tree/master/snake_game +[snakenotes]: snake_game 3. [Here][mlnotes] is a tutorial for basic machine learning in Python. (with thanks to previous committee members in 2020) (Difficulty: 4/5) -[mlnotes]: https://github.com/oxcompsoc/learntocode/tree/master/machine_learning +[mlnotes]: machine_learning ## Running your own Learn to Code @@ -86,4 +86,4 @@ You are more than welcome to use these materials to run your own version of Lear Please refer to [COPYING][copying] for more details on the license. -[copying]: https://github.com/oxcompsoc/learntocode/tree/master/COPYING +[copying]: COPYING diff --git a/old_materials/Dictionaries_OOP/README.md b/old_materials/Dictionaries_OOP/README.md index c611500..646954c 100644 --- a/old_materials/Dictionaries_OOP/README.md +++ b/old_materials/Dictionaries_OOP/README.md @@ -4,7 +4,7 @@ You can find the resources for last week's session [here][s4notes]. In this week's session we are going to continue looking at dictionaries, a common Python data structure introduced at the end of last week's session. Once we've spent a little more time working through an exercise with dictionaries we'll move on to talking about *Object-Oriented Programming* or *OOP* - a way to structure data which is very useful when dealing with various when dealing with Python modules, i.e. the tools that you would use to do more practical things like data analysis and machine learning. -[s4notes]: https://github.com/oxcompsoc/learntocode/tree/master/session4/README.md +[s4notes]: ../../session4/README.md ## Dictionaries @@ -80,7 +80,7 @@ Last week we introduced an [exercise][s4exercise] for counting which words appear in a piece of text. You can find the [solution here][s4solution]. [dictS4]: https://github.com/oxcompsoc/learntocode/blob/master/session4/README.md#dictionaries -[s4exercise]: https://github.com/oxcompsoc/learntocode/tree/master/session4#dictionary-exercise +[s4exercise]: ../../session4#dictionary-exercise [s4solution]: https://github.com/oxcompsoc/learntocode/blob/master/session4/wc.py ## Object-Oriented Programming @@ -244,4 +244,4 @@ class Person: This is an example of polymorphism - what this basically means is that a fruit can be of either type Apple or Orange and we can have a single definition for eat that is capable of handling both of them. -The reason we covered classes today is because they are used everywhere when dealing with modules - the things that most people rely on to do their daily work with Python. Next time we'll cover a few of those with a focus on the ones that are useful for data science. \ No newline at end of file +The reason we covered classes today is because they are used everywhere when dealing with modules - the things that most people rely on to do their daily work with Python. Next time we'll cover a few of those with a focus on the ones that are useful for data science. diff --git a/old_materials/Lists_Dictionaries/README.md b/old_materials/Lists_Dictionaries/README.md index c0cedac..c3cdaa8 100644 --- a/old_materials/Lists_Dictionaries/README.md +++ b/old_materials/Lists_Dictionaries/README.md @@ -99,7 +99,7 @@ if getShapeArea("rectangle", 5, 10) > getShapeArea("tringle", 5, 10): # typo int ``` -[s3notes]: https://github.com/oxcompsoc/learntocode/tree/master/session3 +[s3notes]: ../../session3 ## Exercises diff --git a/session0/Notes.md b/session0/Notes.md index ae643b4..2144964 100644 --- a/session0/Notes.md +++ b/session0/Notes.md @@ -4,7 +4,7 @@ In the [first session][session1] we'll be studying the basics of **Python**, so it would be great if you could find a setup that works for you before the session starts. Learn to Code sessions are all interactive, so please bring your laptop! -[session1]: https://github.com/oxcompsoc/learntocode/tree/master/session1 +[session1]: ../session1 ## What is Python? diff --git a/session1/Notes.md b/session1/Notes.md index 781e565..c57b0cf 100644 --- a/session1/Notes.md +++ b/session1/Notes.md @@ -6,7 +6,7 @@ The first thing that you’ll need to do is make sure you have Python installed computer. You can find information on how to do that [here][install]. [bucky]: https://www.youtube.com/watch?v=HBxCHonP6Ro&list=PL6gx4Cwl9DGAcbMi1sH6oAMk4JHw91mC_&index=1 -[install]: https://github.com/oxcompsoc/learntocode/tree/master/session0 +[install]: ../session0 Throughout these documents note that text in a `monospaced font` is Python code. diff --git a/session2/Notes.md b/session2/Notes.md index 69bd1b7..1196093 100644 --- a/session2/Notes.md +++ b/session2/Notes.md @@ -5,7 +5,7 @@ [bucky]: https://www.youtube.com/watch?v=HBxCHonP6Ro&list=PL6gx4Cwl9DGAcbMi1sH6oAMk4JHw91mC_&index=7 See [here][week1] for last week's content. -[week1]: https://github.com/oxcompsoc/learntocode/tree/master/session1 +[week1]: ../session1 ## If statements @@ -505,4 +505,4 @@ For highest marks, your program should output 1 star when n is 1, and no stars w **You can find all the [solutions here][solutions].** -[solutions]: https://github.com/oxcompsoc/learntocode/tree/master/session2/src \ No newline at end of file +[solutions]: ../session2/src diff --git a/session3/Notes.md b/session3/Notes.md index d39a898..ab53e11 100644 --- a/session3/Notes.md +++ b/session3/Notes.md @@ -474,4 +474,4 @@ You will want to use what you learned in session 2, exercise 9. **You can find all the [solutions here][solutions].** -[solutions]: https://github.com/oxcompsoc/learntocode/tree/master/session3/src/ +[solutions]: ../session3/src/ diff --git a/session4/Notes.md b/session4/Notes.md index 4101d44..db5d476 100644 --- a/session4/Notes.md +++ b/session4/Notes.md @@ -387,7 +387,7 @@ This exercise is quite similar to Exercise 4. **You can find all the [solutions here][solutions].** -[solutions]: https://github.com/oxcompsoc/learntocode/tree/master/session4/src +[solutions]: ../session4/src ### Extension A. Completing the shopping list Return to your code from Session 3 Exercise 4 (the shopping list). diff --git a/session5/Notes.md b/session5/Notes.md index fcef602..61ba0aa 100644 --- a/session5/Notes.md +++ b/session5/Notes.md @@ -255,7 +255,7 @@ This exercise requires you to adapt the [binary search algorithm][binsearch] seen last week. Given a sorted list of strings, find the least index of an element with that value. One way we could do this is: -[binsearch]: https://github.com/oxcompsoc/learntocode/tree/master/session2#binary-search-algorithm +[binsearch]: ../session2#binary-search-algorithm ```python def search(xs, x):