-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (33 loc) · 1.63 KB
/
Makefile
File metadata and controls
41 lines (33 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.PHONY: gen-api-docs open-inference-grpc gen-oip-api-docs gen-crd-api-docs
PROTO_FILE_PATH := https://raw.githubusercontent.com/kserve/open-inference-protocol/refs/heads/main/specification/protocol/open_inference_grpc.proto
open-inference-grpc:
curl -s -L ${PROTO_FILE_PATH} > ./open_inference_grpc.proto
# Generate Open Inference Protocol gRPC API documentation.
gen-oip-grpc-api-docs: open-inference-grpc
@bash -c ' \
trap "rm -f ./open_inference_grpc.proto" EXIT; \
docker run -it --user $(id -u):$(id -g) \
-v $(PWD)/docs/reference/oip:/out \
-v $(PWD)/hack/oip-api-ref-docs:/templates \
-v $(PWD):/protos \
pseudomuto/protoc-gen-doc \
--doc_opt=/templates/template.md,grpc-api.mdx \
'
# Generate Open Inference Protocol REST API documentation.
gen-oip-rest-api-docs:
npm run docusaurus gen-api-docs oip
# Generate CRD API documentation for KServe master branch.
gen-crd-api-docs:
# Use RELEASE_VERSION environment variable to specify the release version for which CRD docs need to be generated.
# This variable is set in the release.sh script during the release process.
./hack/crd-ref-docs/gen-crd-api-ref-docs.sh --branch release-$(RELEASE_VERSION)
# Generate Python Runtime, Control Plane SDK API documentation.
gen-py-sdk-api-docs:
./hack/python-sdk-api/generate-api-docs.sh
# Generate all API documentation.
# This will generate OIP gRPC, REST, Python SDK and CRD API documentation.
gen-api-docs: gen-oip-grpc-api-docs gen-oip-rest-api-docs gen-crd-api-docs gen-py-sdk-api-docs
@echo "API documentation generated successfully."
# Bump the version and create a new release
bump-version:
./hack/release.sh