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

Update project documentation for new state of the world #49

Merged
merged 5 commits into from
Jan 8, 2025
Merged

Conversation

Mordil
Copy link
Collaborator

@Mordil Mordil commented Jan 7, 2025

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:

  • Add: Unit tests of code samples used in documentation
  • Change: README to have updated links and information
  • Change: Symbol documentation and articles significantly to be more in-depth, professional, and up to date
  • Remove: No longer used typealias for 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.

@Mordil Mordil added documentation Improvements or additions to documentation enhancement New feature or request semver-patch Require SemVer Patch bump labels Jan 7, 2025
@@ -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)
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

Copy link
Collaborator

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"

@Mordil
Copy link
Collaborator Author

Mordil commented Jan 8, 2025

Latest push was a rebase for squashing fixes to the @_documentation(visibility:) attribute usage... it's only available on Swift 5.8+...

@Mordil Mordil merged commit 16a88d6 into 0.7.0 Jan 8, 2025
29 checks passed
@Mordil Mordil deleted the update-docs branch January 8, 2025 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request semver-patch Require SemVer Patch bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants