项目文件夹

文件
wehub-resource-sync a6e8bcde90
Release / Semantic release (push) Has been skipped
Smoke test data / smoke (push) Failing after 0s
Check asset sync / cli/assets must match src/ui-ux-pro-max (push) Failing after 4s
chore: import upstream snapshot with attribution
2026-07-13 11:58:17 +08:00

36 行
973 B
Python

#!/usr/bin/env python3
"""
Slide Token Validator (Legacy Wrapper)
Now delegates to html-token-validator.py for unified HTML validation.
For new usage, prefer:
python html-token-validator.py --type slides
python html-token-validator.py --type infographics
python html-token-validator.py # All HTML assets
"""
import sys
import subprocess
from pathlib import Path
SCRIPT_DIR = Path(__file__).parent
UNIFIED_VALIDATOR = SCRIPT_DIR / 'html-token-validator.py'
def main():
"""Delegate to unified html-token-validator.py with --type slides."""
args = sys.argv[1:]
# If no files specified, default to slides type
if not args or all(arg.startswith('-') for arg in args):
cmd = [sys.executable, str(UNIFIED_VALIDATOR), '--type', 'slides'] + args
else:
cmd = [sys.executable, str(UNIFIED_VALIDATOR)] + args
result = subprocess.run(cmd)
sys.exit(result.returncode)
if __name__ == '__main__':
main()