docs: enhance learning materials and workspace documentation with new tutorials and improved structure

This commit is contained in:
Gavin
2026-11-25 12:35:07 +08:00
parent 2524de09ac
commit c9e6133377
38 changed files with 1022 additions and 263 deletions

View File

@@ -69,7 +69,8 @@ def check_screenshots() -> list[str]:
for path in CONTENT.rglob("*"):
if path.suffix not in {".md", ".mdx"}:
continue
referenced.update(re.findall(r"/screenshots/dev/([A-Za-z0-9_.-]+)", path.read_text()))
text = re.sub(r"<!--.*?-->", "", path.read_text(), flags=re.DOTALL)
referenced.update(re.findall(r"/screenshots/dev/([A-Za-z0-9_.-]+)", text))
for name in sorted(referenced):
if not (PUBLIC / name).exists():
errors.append(f"missing screenshot {name}")