From 0009e7a0cb3015056f64bb2bcb0aa9b0e4f52242 Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Fri, 25 Oct 2024 18:32:31 +0800 Subject: [PATCH] docs: fix typo Signed-off-by: Han Xiao --- docs/concepts/orchestration/deployment.md | 10 +++++----- docs/concepts/orchestration/flow.md | 2 +- docs/concepts/orchestration/readiness.md | 4 ++-- docs/concepts/serving/executor/add-endpoints.md | 2 +- docs/concepts/serving/executor/create.md | 4 ++-- docs/get-started/create-app.md | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/concepts/orchestration/deployment.md b/docs/concepts/orchestration/deployment.md index 8be2bcd2a9e84..025bc7e29f22b 100644 --- a/docs/concepts/orchestration/deployment.md +++ b/docs/concepts/orchestration/deployment.md @@ -270,7 +270,7 @@ In this case, the Deployment can be stopped by interrupting the thread or proces Alternatively, a `multiprocessing` or `threading` `Event` object can be passed to `.block()`, which stops the Deployment once set. ```python -from jina-serve import Deployment +from jina import Deployment import threading @@ -301,7 +301,7 @@ A Deployment YAML can be exported as a Docker Compose YAML or Kubernetes YAML bu ````{tab} Python ```python -from jina-serve import Deployment +from jina import Deployment dep = Deployment() dep.to_docker_compose_yaml() @@ -322,7 +322,7 @@ For advanced utilization of Docker Compose with Jina-serve, refer to {ref}`How t ````{tab} Python ```python -from jina-serve import Deployment +from jina import Deployment dep = Deployment dep.to_kubernetes_yaml('dep_k8s_configuration') @@ -381,7 +381,7 @@ The logging configuration can be used as follows: ````{tab} Python ```python -from jina-serve import Deployment +from jina import Deployment dep = Deployment(log_config='./logging.json.yml') ``` @@ -408,7 +408,7 @@ gRPC is the default protocol used by a Deployment to expose Executors to the out HTTP can be used for a stand-alone Deployment (without being part of a Flow), which allows external services to connect via REST. ```python -from jina-serve import Deployment, Executor, requests +from jina import Deployment, Executor, requests from docarray import DocList from docarray.documents import TextDoc diff --git a/docs/concepts/orchestration/flow.md b/docs/concepts/orchestration/flow.md index 1de1a3a5b2702..db40af2d48863 100644 --- a/docs/concepts/orchestration/flow.md +++ b/docs/concepts/orchestration/flow.md @@ -434,7 +434,7 @@ More Flow YAML specifications can be found in {ref}`Flow YAML Specification