Public Access
feat(cli): add theme_vars_check.php for client MokoOnyx themes #327
Reference in New Issue
Block a user
Delete Branch "feat/theme-vars-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
cli/theme_vars_check.php— validation for client MokoOnyx theme packages, the logic behind the new Template-ClientTheme Variables Checkworkflow.Checks:
light.custom.cssanddark.custom.css(33 tokens: accent + Bootstrap contextual colors,-rgb,-text-emphasis,-bg-subtle, body, links).templateDetails.xml, light/dark custom CSS,user.css).<version>set, update server is the dynamic MokoGitea feed (not a legacy/raw/branch/URL), and<dlid>present.Standalone script (plain PHP +
getopt, noCliFramework/SourceResolverdependency) so it runs even while the shared framework autoloader is broken. Tested green against a real client repo and red against a repo with missing vars / legacy URL / no dlid.Authored-by: Moko Consulting