-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Milestone
Description
- Document our goals (see
fruity's for inspiration). Done in Document our goals #79 - Document various design choices
- Especially our use of
Derefinobjc2-foundation, since it conflicts with most guidelines, see the entry in the API guidelines and the (anti-pattern) entry in "Rust Design Patterns" - How
objc2::foundationassumes that most things areNSObjectinstead of justObject, since that is what the rest of Cocoa does anyway
- Especially our use of
- Clean up
lib.rsvs.README.md(see README guidelines rust-lang/api-guidelines#254) - Give proper attribution (link to the original projects that this is a fork of)
- Make
docs.rsconfiguration -> Maybe somebuild.rsconfiguration needed forobjc-sys. Done in Fix docs.rs setup #89 and Setdocs.rstargets on all crates #160 - Add
doc(cfg)attributes to document platform-specific APIs? Done in Usedoc_auto_cfgon docs.rs #195 -
Use unstable documentation features where relevant.Only relevant wasnotable_traits, and I didn't really find that very useful. - Link to related projects Grab ideas from, and link to related projects #26
- Maybe add a
rustbookwith a helpful introduction on how to use the libraries?- I'll be adding a tutorial, see Add a tutorial to
icrate#494
- I'll be adding a tutorial, see Add a tutorial to
- Look through
rustdocdocumentation and get tips from that. - Clean up changelogs, see Add and/or update changelogs #75
- Add
#![warn(rustdoc::missing_doc_code_examples)]? - Make it clearer which invariants are safety invariants and which are validity invariants (see this for distinction)
- More introduction-level docs for people new to Objective-C / arriving from
objc - Clean up error messages according to https://doc.rust-lang.org/nightly/std/error/index.html#common-message-styles
- Great example of using diataxis:
- The docs in Firefox' developer guide do a pretty good job at a high-level overview of Objective-C
- Lots more!
Also a few missing from the API Guide checklist:
- Crate level docs are thorough and include examples (C-CRATE-DOC)
- All items have a rustdoc example (C-EXAMPLE)
- Examples use
?, nottry!, notunwrap(C-QUESTION-MARK) - Function docs include error, panic, and safety considerations (C-FAILURE)
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation