Skip to content

fix(docs): skip reference pages on Windows - #4761

Open
sylvesterkaczmarek wants to merge 1 commit into
openai:mainfrom
sylvesterkaczmarek:fix/docs-translate-ref-windows
Open

fix(docs): skip reference pages on Windows#4761
sylvesterkaczmarek wants to merge 1 commit into
openai:mainfrom
sylvesterkaczmarek:fix/docs-translate-ref-windows

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor

Summary

This pull request fixes the documentation translation script's ref/ exclusion on Windows.

translate_single_source_file() filters generated API-reference pages by checking for "ref/" in the path returned by os.path.relpath(). On Windows that relative path uses backslashes, so docs\ref\... does not match and reference pages can be sent through translation even though they are intended to be excluded.

The check now normalizes path separators before applying the existing ref/ filter. Behaviour on POSIX paths is unchanged, and generated translation files are not modified.

This is the Windows-specific follow-up explicitly noted as out of scope in #4580.

Test plan

  • Added a regression that makes os.path.relpath() return a Windows-style ref\voice\model.md path.
  • Verifies translate_single_source_file() returns without invoking translate_file().

Issue number

Follow-up to #4580.

Checks

  • I've added new tests, if relevant
  • I've run .agents/skills/code-change-verification/scripts/run.sh
  • I've confirmed all verification steps pass
  • If using Codex, I've run /review before submitting this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T17:22:39.319607Z bb3ccf4 PR opened
🔒 Security Review Completed 2026-08-29T17:25:35.579417Z bb3ccf4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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