Skip to content

Commit

Permalink
fix up API generation script & regenerate API docs (#280)
Browse files Browse the repository at this point in the history
* fix GOPATH in script

Signed-off-by: Tessa Pham <[email protected]>

* regenerate API docs using KSERVE_COMMIT

Signed-off-by: Tessa Pham <[email protected]>

---------

Signed-off-by: Tessa Pham <[email protected]>
  • Loading branch information
tessapham authored Aug 19, 2023
1 parent eadf13d commit fa61d4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/hack/gen-api-reference-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ main() {
# install bin
gopath="$(mktemp -d)"
cleanup_gopath_root="${gopath}"
env GOPATH="${gopath}"
export GOPATH="${gopath}"
install_go_bin "${REFDOCS_PKG}@${REFDOCS_VER}"
# move bin to final location
refdocs_bin="${refdocs_dir}/refdocs"
Expand All @@ -133,6 +133,7 @@ main() {
"${out_dir}/${KSERVE_OUT_FILE}" "${kserve_root}" "./pkg/apis/serving/v1beta1"

cp "${out_dir}/${KSERVE_OUT_FILE}" "$SCRIPTDIR/../reference/${KSERVE_OUT_FILE}"
go clean -modcache

# echo "Applying patches..."
# git apply $SCRIPTDIR/patches/*.patch
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ It generally has the form http[s]://{route-name}.{route-namespace}.{cluster-leve
<code>components</code><br/>
<em>
<a href="#serving.kserve.io/v1beta1.ComponentStatusSpec">
map[./pkg/apis/serving/v1beta1.ComponentType]./pkg/apis/serving/v1beta1.ComponentStatusSpec
map[kserve.io/v1beta1/pkg/apis/serving/v1beta1.ComponentType]kserve.io/v1beta1/pkg/apis/serving/v1beta1.ComponentStatusSpec
</a>
</em>
</td>
Expand Down Expand Up @@ -3200,5 +3200,5 @@ PredictorExtensionSpec
<hr/>
<p><em>
Generated with <code>gen-crd-api-reference-docs</code>
on git commit <code>d42daddd</code>.
on git commit <code>d7bfd224</code>.
</em></p>

0 comments on commit fa61d4f

Please sign in to comment.