-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] switch to use stoplight/elements to render api doc, remove depe…
…ndency on npx & redoc-cli for build Closes: #9778
- Loading branch information
1 parent
535f43d
commit c529edb
Showing
6 changed files
with
18 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -342,8 +342,8 @@ jobs: | |
RUSTDOCFLAGS: "-Z unstable-options --enable-index-page" | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: -D warnings | ||
- name: Build API specification doc into target/doc/diem_api | ||
run : npx redoc-cli bundle api/doc/openapi.yaml -o target/doc/diem_api/spec.html | ||
- name: copy API specification doc into target/doc/diem_api | ||
run : cp api/doc/openapi.yaml target/doc/diem_api/openapi.yaml && cp api/doc/spec.html target/doc/diem_api/spec.html | ||
- name: Deploy Docs | ||
uses: peaceiris/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<title>Elements in HTML</title> | ||
<!-- Embed elements Elements via Web Component --> | ||
<script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css"> | ||
</head> | ||
<body> | ||
<elements-api apiDescriptionUrl="openapi.yaml" router="hash" layout="sidebar" hideInternal="true"/> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters