-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(astro): support lessons without parts or chapters
- Loading branch information
1 parent
ad6ad6b
commit 1c0694e
Showing
16 changed files
with
754 additions
and
464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
packages/astro/src/default/utils/__snapshots__/single-lesson-no-part.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"parts": {}, | ||
"lessons": [ | ||
{ | ||
"data": { | ||
"type": "lesson", | ||
"title": "Welcome to TutorialKit", | ||
"template": "default", | ||
"i18n": { | ||
"mocked": "default localization" | ||
}, | ||
"openInStackBlitz": true | ||
}, | ||
"id": "1-lesson", | ||
"filepath": "1-lesson/content.md", | ||
"order": 0, | ||
"Markdown": "Markdown for tutorial", | ||
"slug": "lesson-slug", | ||
"files": [ | ||
"1-lesson-files.json", | ||
[] | ||
], | ||
"solution": [ | ||
"1-lesson-solution.json", | ||
[] | ||
] | ||
} | ||
] | ||
} |
45 changes: 45 additions & 0 deletions
45
packages/astro/src/default/utils/__snapshots__/single-part-and-lesson-no-chapter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"parts": { | ||
"1-part": { | ||
"id": "1-part", | ||
"order": 0, | ||
"data": { | ||
"type": "part", | ||
"title": "Basics" | ||
}, | ||
"slug": "part-slug", | ||
"chapters": {} | ||
} | ||
}, | ||
"lessons": [ | ||
{ | ||
"data": { | ||
"type": "lesson", | ||
"title": "Welcome to TutorialKit", | ||
"template": "default", | ||
"i18n": { | ||
"mocked": "default localization" | ||
}, | ||
"openInStackBlitz": true | ||
}, | ||
"id": "1-lesson", | ||
"filepath": "1-part/1-lesson/content.md", | ||
"order": 0, | ||
"Markdown": "Markdown for tutorial", | ||
"slug": "lesson-slug", | ||
"files": [ | ||
"1-part-1-lesson-files.json", | ||
[] | ||
], | ||
"solution": [ | ||
"1-part-1-lesson-solution.json", | ||
[] | ||
], | ||
"part": { | ||
"id": "1-part", | ||
"title": "Basics" | ||
} | ||
} | ||
], | ||
"firstPartId": "1-part" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.