-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update project documentation for new state of the world #49
Conversation
@@ -61,6 +61,7 @@ extension String.StringInterpolation { | |||
/// - value: The value to localize. If the value is `nil`, then the `nilDescription` will be used. | |||
/// - locale: The Locale to localize the value for. The default is `.current`, ig. the runtime environment's Locale. | |||
/// - nilDescription: The optional description to use when the `value` is `nil`. | |||
@_documentation(visibility: private) |
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.
If we are exposing the function why are we hiding its documentation?
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.
Because of quirks with DocC and its generation.
We show this exists for people in documentation, and have symbol docs for code completion, but generally these methods aren’t able to be accessed directly - so there’s no point in listing it in the main side bar
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.
Makes sense. Personally do not think people will use the interpolation methods since they are hard to "discover"
Latest push was a rebase for squashing fixes to the |
Motivation:
A hallmark of a good library is its documentation, and much of the library was re-written. The documentation needs to be updated to avoid giving incorrect information to developers, but also can be made more robust by going in depth on certain topics.
In addition, the README needed to be updated for several broken links and new infrastructure in use such as for GitHub Actions and Swift Package Index documentation hosting.
Modifications:
CurrencyDescriptor
Result:
Developers looking to learn about the library and its concepts should have a more straight forward and clear understanding from within our code base itself.