Skip to content

fix many documentation disambiguation warnings#333

Merged
davidkoski merged 1 commit intomainfrom
docs-links
Jan 14, 2026
Merged

fix many documentation disambiguation warnings#333
davidkoski merged 1 commit intomainfrom
docs-links

Conversation

@davidkoski
Copy link
Collaborator

-/// - MLXArray/asType(_:stream:)-6d44y
+/// - MLXArray/asType(_:stream:)-(DType,StreamOrDevice)

  • where possible!

  • I found that xcode and docc were not able to handle all of the links like this

  • added missing docs (primarily parameters) where found

  • this doesn't fix everything as some references are still ambiguous

Proposed changes

Please include a description of the problem or feature this PR is addressing. If there is a corresponding issue, include the issue #.

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

- fix #327 as much as possible
- changes from the opaque hash to the new typed style:

-/// - ``MLXArray/asType(_:stream:)-6d44y``
+/// - ``MLXArray/asType(_:stream:)-(DType,StreamOrDevice)``

- where possible!
- I found that xcode and docc were not able to handle all of the links like this

- added missing docs (primarily parameters) where found
- this doesn't fix _everything_ as some references are still ambiguous
@davidkoski davidkoski requested a review from awni January 13, 2026 21:03
/// - ``MLXArray/asType(_:stream:)-6d44y``
/// - ``MLXArray/asType(_:stream:)-4eqoc``
/// - ``MLXArray/asType(_:stream:)-(DType,StreamOrDevice)``
/// - ``MLXArray/asType(_:stream:)-(HasDType.Type,StreamOrDevice)``
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The new form is human readable, which is nice!

///
/// ### See Also
/// - ``norm(_:ord:axes:keepDims:stream:)-8zljj``
/// - ``norm(_:ord:axes:keepDims:stream:)``
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Some of these seem to just be broken. The old hash is incorrect. Using the new format doesn't work (maybe I will eventually figure out why -- this doesn't even have complex types like closures as parameters). For some reason the docc compiler seems happy without the hash.

/// Element-wise complex conjugate of the input.
///
/// - Parameters:
/// - stream: stream or device to evaluate on
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Where I saw warnings add missing params, etc.

Copy link
Member

@awni awni left a comment

Choose a reason for hiding this comment

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

That's a very nice change.. though looks like a tedious one 😅

@davidkoski davidkoski merged commit f73d334 into main Jan 14, 2026
7 checks passed
@davidkoski davidkoski deleted the docs-links branch January 14, 2026 17:30
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.

[DocC] prefer type signatures over short hashes for disambiguation

2 participants