-
Notifications
You must be signed in to change notification settings - Fork 202
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
Doc updates #403
Doc updates #403
Conversation
4a4e697
to
af06321
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
geo-types/src/lib.rs
Outdated
@@ -1,3 +1,11 @@ | |||
#![doc(html_logo_url = "https://avatars1.githubusercontent.com/u/10320338?s=1000&v=4")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it also work to use this url? https://raw.githubusercontent.com/georust/meta/master/logo/logo.png This might be better since we can swap it out at any point without breaking old docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
geo-types/src/line_string.rs
Outdated
#[derive(PartialEq, Clone, Debug, Hash)] | ||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] | ||
pub struct LineString<T>(pub Vec<Coordinate<T>>) | ||
where | ||
T: CoordinateType; | ||
|
||
#[doc(hidden)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for hiding this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, just couldn't figure out a good way to explain what it was in the presence of points_iter
, but got it now, I think.
//! structs using the standard [`TryFrom`](https://doc.rust-lang.org/stable/std/convert/trait.TryFrom.html) | ||
//! and [`TryInto`](https://doc.rust-lang.org/stable/std/convert/trait.TryInto.html) traits, | ||
//! and conversion **from** `geo-types` primitives to `geojson` | ||
//! `Value` structs using the [`From`](https://doc.rust-lang.org/stable/std/convert/trait.TryFrom.html) trait. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
Changes addressed, commit squashed! |
bors r+ |
403: Doc updates r=urschrei a=urschrei (To be merged after #402) This PR adds top-level docs (mostly the same as what's currently in the README), and the following changes: - Revised `LineString` docs - Revised `Point` docs - Revised module docs to better distinguish `closest_point` and `euclidean_distance` - Revised `chamberlain_duquette` docs - Revised `haversine_destination` module doc - Note existence of some non-euclidean distance algorithms - Detail optional features - Make GeoJSON interop more obvious. This is somewhat redundant, since the GeoJSON crate says the same thing, but we don't know what crate people will see first, so I think it's OK - Hidden the `PointsIter` struct from docs.rs Co-authored-by: Stephan Hügel <shugel@tcd.ie>
Build succeeded |
(To be merged after #402)
This PR adds top-level docs (mostly the same as what's currently in the README), and the following changes:
LineString
docsPoint
docsclosest_point
andeuclidean_distance
chamberlain_duquette
docshaversine_destination
module docPointsIter
struct from docs.rs