[Doc] Convert Sphinx directives ( {class}, {meth}, {attr}, ...) to MkDocs format for better documentation linking (#18663)
Signed-off-by: Zerohertz <ohg3417@gmail.com>
This commit is contained in:
+5
-5
@@ -68,22 +68,22 @@ class _VllmLogger(Logger):
|
||||
"""
|
||||
Note:
|
||||
This class is just to provide type information.
|
||||
We actually patch the methods directly on the {class}`logging.Logger`
|
||||
We actually patch the methods directly on the [`logging.Logger`][]
|
||||
instance to avoid conflicting with other libraries such as
|
||||
`intel_extension_for_pytorch.utils._logger`.
|
||||
"""
|
||||
|
||||
def info_once(self, msg: str, *args: Hashable) -> None:
|
||||
"""
|
||||
As {meth}`info`, but subsequent calls with the same message
|
||||
are silently dropped.
|
||||
As [`info`][logging.Logger.info], but subsequent calls with
|
||||
the same message are silently dropped.
|
||||
"""
|
||||
_print_info_once(self, msg, *args)
|
||||
|
||||
def warning_once(self, msg: str, *args: Hashable) -> None:
|
||||
"""
|
||||
As {meth}`warning`, but subsequent calls with the same message
|
||||
are silently dropped.
|
||||
As [`warning`][logging.Logger.warning], but subsequent calls with
|
||||
the same message are silently dropped.
|
||||
"""
|
||||
_print_warning_once(self, msg, *args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user