Skip to content

Add validation on academy-theme #182

@CodexRaunak

Description

@CodexRaunak

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:

  1. Content defined above the organization directory
  2. Shortcodes, static files, or data files defined outside the org directory

NOTE: The validation shouldn't apply for draft pages.


Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions