-
Notifications
You must be signed in to change notification settings - Fork 107
feat(astro): support lessons without parts or chapters #374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AriPerkkio
merged 7 commits into
stackblitz:main
from
AriPerkkio:feat/flat-tutorial-structure
Nov 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a5bf9d9
refactor: lessons in root of `Tutorial`
AriPerkkio 06bd4e7
test: lessons in root and part
AriPerkkio e65eee1
feat(astro): support lessons without parts or chapters
AriPerkkio 5630f6b
fix(astro): sorting of mixed hierarchy parts
AriPerkkio 0b2896a
Merge branch 'main' into feat/flat-tutorial-structure
AriPerkkio 523d749
fix: review
AriPerkkio dfd2547
Merge branch 'main' into feat/flat-tutorial-structure
AriPerkkio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(astro): support lessons without parts or chapters
- Loading branch information
commit e65eee1a28892cd157e245a0c980eeff6b9259c6
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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", | ||
| [] | ||
| ] | ||
| } | ||
| ] | ||
| } |
44 changes: 44 additions & 0 deletions
44
packages/astro/src/default/utils/__snapshots__/single-part-and-lesson-no-chapter.json
This file contains hidden or 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,44 @@ | ||
| { | ||
| "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" | ||
| } | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.