Skip to content

Commit

Permalink
[serve] Clean up API reference and various docstrings (ray-project#34711
Browse files Browse the repository at this point in the history
)

Cleans up the API reference page formatting, adds/updates docstrings where applicable (corrects typing + verbiage, adds inline examples).

Co-authored-by: Cindy Zhang <[email protected]>
Co-authored-by: angelinalg <[email protected]>
  • Loading branch information
3 people authored and architkulkarni committed May 16, 2023
1 parent 8064fea commit b2e4e0d
Show file tree
Hide file tree
Showing 13 changed files with 611 additions and 551 deletions.
6 changes: 6 additions & 0 deletions doc/source/_templates/autosummary/class_without_init_args.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{ fullname | escape | underline}}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}()
:members:
5 changes: 5 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,3 +432,8 @@ def setup(app):
]

redoc_uri = "https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"

autosummary_filename_map = {
"ray.serve.deployment": "ray.serve.deployment_decorator",
"ray.serve.Deployment": "ray.serve.Deployment",
}
Loading

0 comments on commit b2e4e0d

Please sign in to comment.