Skip to content

Commit

Permalink
Fix rust api docs (rapidsai#119)
Browse files Browse the repository at this point in the history
The rust api docs on docs.rapids.ai are deployed to https://docs.rapids.ai/api/cuvs/nightly/rust_api/index.html but the relative link in the iframe was assuming that these were at  https://docs.rapids.ai/api/cuvs/nightly/rust_api.html. (There seems to be some difference in the url structure depending on whether you build locally or not)

Fix by forcing the url structure to always be `rust_api/index.html`

Authors:
  - Ben Frederickson (https://github.com/benfred)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: rapidsai/cuvs#119
  • Loading branch information
benfred authored May 15, 2024
1 parent 9f02d70 commit 55e60ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/api_docs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ API Reference
c_api.rst
cpp_api.rst
python_api.rst
rust_api.rst
rust_api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Rust API Documentation

.. raw:: html

<iframe src="./_static/rust/cuvs/index.html" height="720px" width="100%"></iframe>
<iframe src="../_static/rust/cuvs/index.html" height="720px" width="100%"></iframe>

<!-- hide the 'view source' section here, since it doesn't work with the iframe
and we want the iframe to use the space -->
Expand Down

0 comments on commit 55e60ff

Please sign in to comment.