Skip to content

[codex] Fix export paths for active course docs#2

Merged
puppe1990 merged 1 commit into
mainfrom
codex/fix-export-paths-for-active-course-docs
May 19, 2026
Merged

[codex] Fix export paths for active course docs#2
puppe1990 merged 1 commit into
mainfrom
codex/fix-export-paths-for-active-course-docs

Conversation

@puppe1990

Copy link
Copy Markdown
Owner

What changed

  • switched export-site content discovery to resolve from the active course docs root instead of hard-coding docs/<locale>
  • updated README screenshot export to write into the active course public directory and mirror into the legacy docs/public/screenshots/readme path
  • added a regression test that asserts the active course docs tree resolves to real content

Why

VitePress now reads markdown from courses/<slug>/docs via ACTIVE_COURSE_CONTENT_DIR, but the export pipeline was still resolving source content from docs/. That broke PDF export after the per-course docs migration because docs/en no longer exists.

Impact

  • pdf:export follows the active course content tree
  • README screenshot generation stays compatible with the current README asset links
  • the regression is covered by tests

Validation

  • npm test
  • npm run docs:build

@puppe1990 puppe1990 marked this pull request as ready for review May 19, 2026 15:36
@puppe1990 puppe1990 merged commit 0a7dc72 into main May 19, 2026
1 check passed
@puppe1990 puppe1990 deleted the codex/fix-export-paths-for-active-course-docs branch May 19, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant