Current Behavior
The Academy theme is currently more lenient than Cloud on content structure, which can cause issues that only surface at merge time, Making the theme stricter would catch these earlier.
Desired Behavior
Build-time Validation: Adding a validation step at build time to verify that content IDs exist makes sense. The Academy APIs that return content for an org should be sufficient for this.
Stricter Theme Validation: Adding validation to not allow learning paths with no pages or courses.
Build-time Warnings: Add notifications during the build process for the following anti-patterns:
- Content defined above the organization directory
- Shortcodes, static files, or data files defined outside the org directory
NOTE: The validation shouldn't apply for draft pages.
Current Behavior
The Academy theme is currently more lenient than Cloud on content structure, which can cause issues that only surface at merge time, Making the theme stricter would catch these earlier.
Desired Behavior
Build-time Validation: Adding a validation step at build time to verify that content IDs exist makes sense. The Academy APIs that return content for an org should be sufficient for this.
Stricter Theme Validation: Adding validation to not allow learning paths with no pages or courses.
Build-time Warnings: Add notifications during the build process for the following anti-patterns:
NOTE: The validation shouldn't apply for draft pages.