Skip to content
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

List all lessons in the input API #43

Open
encukou opened this issue Dec 28, 2020 · 1 comment
Open

List all lessons in the input API #43

encukou opened this issue Dec 28, 2020 · 1 comment
Labels

Comments

@encukou
Copy link
Member

encukou commented Dec 28, 2020

Currently, naucse loads lesson content on demand when a lesson is included or linked from a course. To get a list of all sessions in a course, all sessions need to be rendered. This complicates the logic (and caching).
The course API should get an extra_lessons key with lessons not appearing in any materials. For older API versions, this can be configured in link.yml files.

@encukou
Copy link
Member Author

encukou commented Feb 1, 2022

This is now half-done: extra_lessons is required for compiled courses, but the error message comes too late -- when the course is used, rather than when it's compiled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant