Skip to content

Commit

Permalink
fix: open api doc page display (#1016)
Browse files Browse the repository at this point in the history
* fix: open api doc page display

* Delete catalyst-gateway/bin/src/service/docs/stoplight_elements/mod.rs

The mods file has been taken out as its not needed in in the voices opneapi doc rendering

* Restored the mod.rs file

* added the mod.rs file

---------

Co-authored-by: Steven Johnson <[email protected]>
  • Loading branch information
nathanbogale and stevenj authored Oct 22, 2024
1 parent f78f326 commit 8ce19a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docs/src/api/cat-gateway/openapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ icon: material/server
<!-- markdownlint-disable no-inline-html -->
<iframe src="../stoplight_template.html"
frameborder="0"
style="overflow: hidden; width: 100%; height: 100vh;"
></iframe>
style="position: absolute; top: 115px; left: 0; width: 100%; height: 100%;">
16 changes: 14 additions & 2 deletions docs/src/api/cat-gateway/stoplight_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,20 @@

<body>

<elements-api apiDescriptionUrl="./rust-docs/cat-gateway-api.json" router="memory" layout="sidebar"
hideInternal="true" />
<nav style="display: flex;
justify-content: space-around;
background-color: #f8f9fa;
padding: 10px;
position: relative;
z-index: 100000000;
top: 0px;">
<a href="../cat-gateway/index.html">Catalyst Gateway</a>
<a href="../cat-gateway/rust.html">Rust Docs</a>
</nav>
<elements-api apiDescriptionUrl="./rust-docs/cat-gateway-api.json" router="memory"
hideInternal="true" style="width: 100%; height: calc(100vh - 50px); position: absolute; top: 30px; left: 0; background: white;" >

</elements-api>

</body>

Expand Down

0 comments on commit 8ce19a9

Please sign in to comment.