Skip to content

Commit

Permalink
chore: version in openapi URL only when not last
Browse files Browse the repository at this point in the history
Antora is configured with empty latest_version_segment then skip the
version number when the current component version is the latest to avoid
404 in this case.
  • Loading branch information
rezib committed Apr 15, 2024
1 parent 2ef1cef commit f9ef53b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/modules/usage/pages/rest.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ documentation of this API.
article.doc { max-width: 100% !important;}
</style>
<rapi-doc
ifeval::[{page-version} == {page-component-latest-version}]
spec-url = "/racksdb/usage/_attachments/openapi.yml"
endif::[]
ifeval::[{page-version} != {page-component-latest-version}]
spec-url = "/racksdb/{page-version}/usage/_attachments/openapi.yml"
endif::[]
show-header = "false"
show-info = "false"
allow-try = "false"
Expand Down

0 comments on commit f9ef53b

Please sign in to comment.