Skip to content

Commit fd9de3e

Browse files
authored
Merge branch 'master' into copilot/prevent-negative-marks-validation
Signed-off-by: Lee Calcote <[email protected]>
2 parents d189688 + 3736423 commit fd9de3e

File tree

5 files changed

+67
-11
lines changed

5 files changed

+67
-11
lines changed

README.md

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,52 @@
1-
Reusable hugo theme module that powers the layer5 academy .
2-
this modules provides the layouts , shortcodes and partials to get academy up and running
1+
# Academy Theme
32

4-
The recommended approach to use this theme is through the academy starter template .
3+
Reusable Hugo theme module that powers the Layer5 Academy. This module provides
4+
the layouts, shortcodes, and partials to get academy up and running.
55

6-
## Getting started with this theme
6+
## Getting Started
77

8-
The recommended approach to use this theme is through the academy starter template .
8+
The recommended approach to use this theme is through the
9+
[academy starter template](https://github.com/layer5io/academy-example).
10+
11+
For comprehensive documentation, visit the
12+
[official Academy documentation](https://docs.layer5.io/cloud/academy/).
13+
14+
## Content Structure
15+
16+
The Academy uses the following content hierarchy:
17+
18+
### Learning Path → Course → Module
19+
20+
In addition to this core structure, the following content types are available:
21+
22+
- **Lab** - Hands-on practical exercises
23+
- **Challenge** - Skill assessment challenges
24+
- **Test** - Knowledge assessments (test, optional-test,
25+
final-test)
26+
- **Certification** - Certification programs
27+
28+
## Important Notes
29+
30+
⚠️ **Deprecated Features**
31+
32+
- The `usestatic` shortcode is deprecated and should not be used in new
33+
content.
34+
35+
## Contributor Guide and Resources
36+
37+
- 📚 [Instructions for contributing to academy-example][contrib]
38+
- Academy-template [documentation][docs], [example][example], and
39+
[theme][theme]
40+
- 🎨 Wireframes and [designs for Layer5 site][figma] in Figma
41+
([open invite][figma-invite])
42+
- 🙋🏾🙋🏼 Questions: [Layer5 Discussion Forum][forum] and
43+
[Layer5 Community Slack][slack]
44+
45+
[contrib]: https://github.com/layer5io/academy-example/blob/master/CONTRIBUTING.md
46+
[docs]: https://docs.layer5.io/cloud/academy/
47+
[example]: https://github.com/layer5io/academy-example/
48+
[theme]: https://github.com/layer5io/academy-theme/
49+
[figma]: https://www.figma.com/file/5ZwEkSJwUPitURD59YHMEN/Layer5-Designs
50+
[figma-invite]: https://www.figma.com/team_invite/redeem/qJy1c95qirjgWQODApilR9
51+
[forum]: https://discuss.layer5.io
52+
[slack]: http://slack.layer5.io

archetypes/final-test.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ questions:
5050
# Multiple Choice Question (Multiple Answers)
5151
- id: "q4"
5252
text: "What are the purposes of the 'defer' keyword in Go? (Select all that apply)"
53-
type: "mcq"
54-
multiple_answers: true
53+
type: "multiple_answers"
5554
marks: 2
5655
explanation: "The defer keyword is commonly used to delay function execution until the surrounding function returns, often used for cleanup tasks like closing files."
5756
options:

archetypes/optional-test.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ questions:
5050
# Multiple Choice Question (Multiple Answers)
5151
- id: "q4"
5252
text: "What are the purposes of the 'defer' keyword in Go? (Select all that apply)"
53-
type: "mcq"
54-
multiple_answers: true
53+
type: "multiple_answers"
5554
marks: 2
5655
explanation: "The defer keyword is commonly used to delay function execution until the surrounding function returns, often used for cleanup tasks like closing files."
5756
options:

archetypes/test.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ questions:
4949
# Multiple Choice Question (Multiple Answers)
5050
- id: "q4"
5151
text: "What are the purposes of the 'defer' keyword in Go? (Select all that apply)"
52-
type: "mcq"
53-
multiple_answers: true
52+
type: "multiple-answers"
5453
marks: 2
5554
explanation: "The defer keyword is commonly used to delay function execution until the surrounding function returns, often used for cleanup tasks like closing files."
5655
options:

layouts/partials/test/single.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,20 @@
4747
"type" .Parent.Type
4848
) nil) -}}
4949

50+
51+
{{- $nextPage := dict -}}
52+
{{- if .PrevInSection -}}
53+
{{- $next := .PrevInSection -}}
54+
{{- $nextPage = dict
55+
"id" (partial "id.html" $next)
56+
"title" $next.Title
57+
"relPermalink" $next.RelPermalink
58+
"type" $next.Type
59+
-}}
60+
{{- end -}}
61+
62+
63+
5064
{{- return (dict
5165
"id" (partial "id.html" .)
5266
"title" .Title
@@ -73,4 +87,5 @@
7387
"prerequisites" $prerequisites
7488
"total_marks" $total
7589
"parent" $parent
90+
"next_page" $nextPage
7691
) -}}

0 commit comments

Comments
 (0)