Skip to content

minor: fix external crate links #552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 13, 2022

Conversation

isabelatkinson
Copy link
Contributor

@isabelatkinson isabelatkinson commented Jan 10, 2022

Fixes the links to external crates on our docs.rs page that are currently broken.

@@ -1,8 +1,8 @@
//! This crate contains the officially supported MongoDB Rust driver, a
//! client side library that can be used to interact with MongoDB deployments
//! in Rust applications. It uses the [`bson`](docs.rs/bson) crate for BSON support.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Links aren't required for external crates specified in this format. docs.rs/bson was being treated as a relative link (i.e. https://docs.rs/mongodb/latest/mongodb/docs.rs/bson); omitting it fixes the issue and properly links to the bson crate.

//! or [`async-std`](docs.rs/async-std), depending on the feature flags set. The driver also has
//! in Rust applications. It uses the [`bson`] crate for BSON support.
//! The driver contains a fully async API that supports either [`tokio`] (default)
//! or [`async-std`](https://docs.rs/async_std), depending on the feature flags set. The driver also has
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using an absolute link here because async-std is an optional dependency, which causes docs tests to fail when the async-std feature is not enabled.

@isabelatkinson isabelatkinson merged commit cc7a1c3 into mongodb:master Jan 13, 2022
@isabelatkinson isabelatkinson deleted the fix-docs-link branch January 13, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants