Skip to content
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

Merged
merged 1 commit into from
Dec 29, 2019
Merged

Doc updates #403

merged 1 commit into from
Dec 29, 2019

Conversation

urschrei
Copy link
Member

@urschrei urschrei commented Dec 21, 2019

(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

@urschrei urschrei force-pushed the doc_update branch 4 times, most recently from 4a4e697 to af06321 Compare December 28, 2019 00:12
@urschrei urschrei marked this pull request as ready for review December 28, 2019 15:21
@urschrei urschrei requested a review from frewsxcv December 28, 2019 15:21
Copy link
Member

@frewsxcv frewsxcv left a comment

Choose a reason for hiding this comment

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

loovveee thissss

geo-types/src/lib.rs Outdated Show resolved Hide resolved
geo-types/src/lib.rs Outdated Show resolved Hide resolved
@@ -1,3 +1,11 @@
#![doc(html_logo_url = "https://avatars1.githubusercontent.com/u/10320338?s=1000&v=4")]
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

#[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)]
Copy link
Member

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?

Copy link
Member Author

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.
Copy link
Member

Choose a reason for hiding this comment

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

👏

@urschrei
Copy link
Member Author

Changes addressed, commit squashed!

@urschrei
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Dec 29, 2019
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>
@bors
Copy link
Contributor

bors bot commented Dec 29, 2019

Build succeeded

@bors bors bot merged commit 3fde2ea into georust:master Dec 29, 2019
@urschrei urschrei deleted the doc_update branch December 29, 2019 16:02
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.

2 participants