-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[Doc] Fix broken references in Ray Core documentation #45115
[Doc] Fix broken references in Ray Core documentation #45115
Conversation
feab4b8
to
d388810
Compare
53b9d45
to
d301a5e
Compare
9ef7c2f
to
7041316
Compare
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.
thanks for the clean up, a bunch of dump questions mostly for me to learn
7041316
to
9cb0368
Compare
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.
Signed-off-by: pdmurray <[email protected]>
9cb0368
to
b7ff3cd
Compare
python/ray/_private/worker.py
Outdated
@@ -2708,14 +2708,14 @@ def put( | |||
@PublicAPI | |||
@client_mode_hook | |||
def wait( | |||
ray_waitables: List[Union["ObjectRef[R]", "ObjectRefGenerator[R]"]], | |||
ray_waitables: Union[ObjectRef, ObjectRefGenerator], |
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.
This should be a list.
Why changing this? Seems unrelated to broken referneces
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.
Sorry, my mistake - I'll make this a list again.
Why changing this? Seems unrelated to broken referneces
sphinx.ext.autodoc
uses type annotations to document parameters and return types for functions.
@@ -1468,8 +1449,7 @@ def summarize_objects( | |||
Dictionarified :class:`~ray.util.state.common.ObjectSummaries` | |||
|
|||
Raises: | |||
Exceptions: :class:`RayStateApiException <ray.util.state.exception.RayStateApiException>` if the CLI | |||
failed to query the data. | |||
RayStateApiException: if the CLI failed to query the data. |
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.
Does this generate the link?
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.
Yes. sphinx.ext.autodoc
does this automatically if you have a valid docstring format - the previous format was not, so the link needed to be added manually.
*, | ||
num_returns: int = 1, | ||
timeout: Optional[float] = None, | ||
fetch_local: bool = True, | ||
) -> Tuple[ | ||
List[Union["ObjectRef[R]", "ObjectRefGenerator[R]"]], | ||
List[Union["ObjectRef[R]", "ObjectRefGenerator[R]"]], | ||
List[Union[ObjectRef, ObjectRefGenerator]], |
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.
Is R
removed so that we can generate link to ObjectRef?
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.
Yes, although if you'd prefer to keep R
, we can import it at the top and instead have these be ObjectRef[R]
. So depending on how you'd like to handle this, we can either keep it as is or add the TypeVar
.
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.
@rkooo567 what do you want here since you added R
I think
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.
Thanks for the fix.
) Signed-off-by: pdmurray <[email protected]> Signed-off-by: Richard Liu <[email protected]>
Why are these changes needed?
This PR fixes broken links in Ray Core documentation in preparation for turning on Sphinx's nitpicky mode.
Related issue number
Partially addresses #39658. Blocked until #45160 is merged.
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.