Closed eric-burel closed 2 weeks ago
Thanks for opening this issue!
I agree with the general idea proposed here, although I would instead allow the tutorial meta to have lessons or chapters which would achieve the same thing but keep the existing logic for parts and chapters.
If we don't allow mixed hierarchies where a tutorial has both parts and chapters / lessons, then it should be pretty easy to add.
Is your feature request related to a problem?
I'd like to write intro/outro parts that may not need a 3-level subdivision between part, chapter and lesson.
Currently, I need multiple levels so my introduction page maybe
/getting-started/intro/about", instead of just
/getting-started`. The UX is not as smooth as it could when it comes to writing proper course introductions or conclusions.Describe the solution you'd like.
Allow having 2-levels or 1-level hierarchy.
Describe alternatives you've considered.
This seems a little change but I understand how this can affect UX.
Additional context
The file
packages/astro/src/default/utils/routes.ts
seems to be responsible to route creation and could be tweaked quite easily. However such a change may have consequences on the mental model around parts/chapters/lessons in other places.