Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: solve absolute path resolution on windows platform #12405

Closed
wants to merge 2 commits into from

Conversation

12rambau
Copy link

@12rambau 12rambau commented Jun 3, 2024

Subject: solve absolute path resolution on windows platform

Feature or Bugfix

Bugfix

Purpose

The method relfn2path of the class BuildEnvironment in the file sphinx/environment/__init__.py supposedly treats absolute paths as relative to the source dir. This is not the case in Windows. Absolute paths to page requisites provided by conf.py in the source dir remain absolute paths in Windows, but become relative paths in every other OS.

Detail

Simply change the detection of absolute path and rely more on platform agnostic functions.

Relates

#10910
#12399

@picnixz
Copy link
Member

picnixz commented Jun 5, 2024

Should I understand that this PR does not work for you or? (that's what you mentioned in the opened issue)

@12rambau
Copy link
Author

12rambau commented Jun 6, 2024

Yes It doesn't work, but it seemed very straight forward 😢
If you think it should be done anyway for the other issue I can publish it.

@AA-Turner
Copy link
Member

Closing for now, please re-open when fixed!

@AA-Turner AA-Turner closed this Jul 11, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants