Skip to content

[WIP] Documentation#29

Merged
kvark merged 5 commits intothree-rs:masterfrom
vitvakatu:documentation
Jun 16, 2017
Merged

[WIP] Documentation#29
kvark merged 5 commits intothree-rs:masterfrom
vitvakatu:documentation

Conversation

@vitvakatu
Copy link
Member

@vitvakatu vitvakatu commented Jun 16, 2017

  • Provide top-level documentation for every struct.
  • Provide documentation for every entity, field and method.
  • Provide in-documentation examples.

Copy link
Collaborator

@kvark kvark left a comment

Choose a reason for hiding this comment

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

Let's add #![warn(missing_docs)] and document the missing fields

}

/// The light source that illuminates all objects equally from a given direction,
/// like an area light of infinite size and infinite distance from the scene;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think "infinite size" needs to be here

Copy link
Member Author

Choose a reason for hiding this comment

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

So, only "The light source that illuminates all objects equally from a given direction"?

Copy link
Collaborator

Choose a reason for hiding this comment

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

that would be fine, yeah

@kvark
Copy link
Collaborator

kvark commented Jun 16, 2017

The in-documentation examples is something I'm not 100% sure about, since even if you make them CI-tested, they still add up the maintenance cost, especially now that the library is still evolving rapidly.

src/lib.rs Outdated
#![warn(missing_docs)]
//! # Motivation and Goals
//!
//! 1. Ergonomics is first priority. Being able to prototype quickly and code
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not keen on the idea of duplicating this both here and in the Readme...

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, yeah, I forgot to say that. I need help to write good module-level documentation :D

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think not having any is somewhat better than duplication, so it's fine to remove that.

Copy link
Member Author

Choose a reason for hiding this comment

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

But we have #![warn(missing_docs)]. Should I remove that? (I've documented everything)

Copy link
Collaborator

Choose a reason for hiding this comment

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

No, just have a one-liner for the module documentation

@kvark
Copy link
Collaborator

kvark commented Jun 16, 2017

See, now it's trying to test your in-doc tests. At this point, we need to either implement OsMesa support for headless rendering, or not have those in-doc examples at all.

@kvark kvark merged commit 3fce33d into three-rs:master Jun 16, 2017
@vitvakatu vitvakatu deleted the documentation branch June 16, 2017 21:42
@kvark kvark mentioned this pull request Jun 20, 2017
kvark pushed a commit that referenced this pull request Nov 10, 2017
* Add basic documentation

* Provide top-level documentation for every struct

* Document every public entity

* Replace crate-level documentation

* Remove in-doc example
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