-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Proxito: always use subdomain for serving docs #10799
Conversation
or "localhost" in request.get_host() | ||
or "testserver" in request.get_host() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two checks are not really that useful, and they cause problems if your project has localhost
in its name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm, I feel like it might cause some issues in tests, but if everythings looks OK, I agree this is a better approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad to see this getting removed 🎉
@@ -122,11 +113,6 @@ def resolve_path( | |||
filename = self._fix_filename(filename) | |||
|
|||
parent_project, project_relationship = self._get_canonical_project_data(project) | |||
cname = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we not still need this logic to determine cname usage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not when resolving the path, only when resolving the domain
or "localhost" in request.get_host() | ||
or "testserver" in request.get_host() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm, I feel like it might cause some issues in tests, but if everythings looks OK, I agree this is a better approach.
Co-authored-by: Eric Holscher <25510+ericholscher@users.noreply.github.com>
Closes #10767
📚 Documentation previews 📚
docs
): https://docs--10799.org.readthedocs.build/en/10799/dev
): https://dev--10799.org.readthedocs.build/en/10799/