Skip to content

Commit 01adb52

Browse files
authored
Expose course data over a (static) API (#1841)
This allows other systems to accurately model our courses. There are currently no guarantees around stability of this API.
1 parent 6e2de5b commit 01adb52

20 files changed

Lines changed: 78 additions & 21 deletions

File tree

common-theme/layouts/_default/backlog.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{ define "main" }}
2+
{{ $page := .Page }}
23
{{ $currentPath := .Page.RelPermalink }}
34
{{ $backlog_filter := .Page.Params.backlog_filter }}
45
{{ $repos := .Page.Params.backlog }}
@@ -48,6 +49,7 @@
4849
{{ end }}
4950
{{ end }}
5051
{{ end }}
52+
{{ $page.Scratch.Set "backlog-tasks" (dict "setup" $setupTasks "recurring" $recurringTasks "mandatory" $mandatoryTasks "optional" $optionalTasks) }}
5153
{{ if lt 0 ($setupTasks | len) }}
5254
<h2>Start Here</h2>
5355
<p>These tasks should be completed before attempting anything else.</p>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
+++
2+
layout = "course_data"
3+
outputs = ["json"]
4+
+++

org-cyf/content/how-this-works/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
title = 'How this works'
33
description = 'How we learn; how we organise; how we check our progress'
44
layout = 'module'
5-
menu = ['ITP start here', "SDC start here"]
5+
menu = ['itp start here', "sdc start here"]
66
weight=1
77
+++

org-cyf/content/itp/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+++
22
title="Intro to Programming"
3-
menus_to_map=["ITP start here", "ITP course schedule", "ITP next steps"]
4-
menu_prefix_to_strip = "ITP "
3+
menus_to_map=["itp start here", "itp course schedule", "itp next steps"]
4+
menu_prefix_to_strip = "itp "
55
description="New? Lost? [Quickstart](how-this-works/prep/#overview)"
66
layout="map"
77
+++

org-cyf/content/itp/data-flows/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ title = 'Data flows'
33
description = 'Collaborate in code; Define and manage state; Use asynchronous programming to handle events and data; '
44
layout = 'module'
55
emoji= '🐥'
6-
menu = ['ITP course schedule']
6+
menu = ['itp course schedule']
77
weight='5'
88
+++

org-cyf/content/itp/data-groups/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ title = 'Data groups'
33
description = 'Organise and structure data; Build interactive user interfaces; Break problems down into sub-problems; Interpret acceptance criteria to form test cases'
44
layout = 'module'
55
emoji= '🐣'
6-
menu = ['ITP course schedule']
6+
menu = ['itp course schedule']
77
weight='4'
88
+++

org-cyf/content/itp/onboarding/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ title = 'Onboarding'
33
description = 'Evaluate and fix code with Lighthouse; use version control with Git and GitHub; Plan your study and set goals; Enroll as a Trainee'
44
layout = 'module'
55
emoji= '🫱🏾‍🫲🏿'
6-
menu = ['ITP course schedule']
6+
menu = ['itp course schedule']
77
weight='2'
88
+++

org-cyf/content/itp/overview/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
+++
22
title="Course overview"
33
layout="overview"
4-
overview_menu="ITP course schedule"
5-
menu=["ITP start here"]
4+
overview_menu="itp course schedule"
5+
menu=["itp start here"]
66
description="4 modules of 3 sprints delivered over 12-16 weeks"
77
weight=2
88
emoji="🦉"

org-cyf/content/itp/structuring-data/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ title = 'Structuring and testing data'
33
description = 'Find meaning behind syntax; Step through functions like a computer; Break problems down into sub-problems; Interpret acceptance criteria to form test cases; Recognise patterns'
44
layout = 'module'
55
emoji= '🥚'
6-
menu = ['ITP course schedule']
6+
menu = ['itp course schedule']
77
weight='3'
88
+++

org-cyf/content/itp/welcome/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title = 'Welcome to Code Your Future'
33
description = 'Our first day together '
44
layout = 'module'
55
emoji= '🫶🏽'
6-
menu = ['ITP course schedule']
6+
menu = ['itp course schedule']
77
weight='1'
88
parentsToTraverseToModule = 0
99
moduleForRegister = "Welcome"

0 commit comments

Comments
 (0)