-
Notifications
You must be signed in to change notification settings - Fork 413
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
Fixes to autolinking #856
Fixes to autolinking #856
Conversation
Thanks for doing this! Reviewing the changes to the specs, there's a somewhat-regression in Alamofire: Reviewing this also highlighting a pre-existing issue: how should we deal with nested types? For example, in Alamofire, This is especially odd with Extensions, since |
On the Before these, we were confused and the sidebar said Notification/Task which is wrong. Maybe it would be better to avoid the unflattening for extensions of external types so it would read:
...that way the top-level item is always a type that is being extended, even if that type is nested, and any items under it have been declared by the project. The current version mixes up stuff in the extension (Key) with stuff already in the type that is also being extended (Name). Well, I’ve convinced myself... |
Some inconclusive thoughts on nested types in general. From a reader’s point of view I prefer the nested types under their parents: authors create nested types because they are strongly related to the parent type -- I'd like to read about them all together. AF’s Agree it’s a bit odd to find a nested struct in the Classes category. We could simplify these default categories into New Types/Extended Types/Functions/Global vars (or some smaller/bigger set,) merging (say) classes/structs/protocols/typealiases/enums. As a reader, when coming in to read a project’s docs and find things from the left nav, I don’t think I initially care if a type is a struct or something else -- this is a detail of how I can use the type. I don’t have a use case for the default layout (“today I want to learn about all The merged category would be larger, for sure. Maybe keeping the category lengths down is better UI. You probably went through this at the start of Jazzy! I don’t know that anyone will be seriously confused by finding a nested struct in the classes category. I can see how the extensions category could seem worse that the others. I've been thinking of it as 'extended types [and their children]' category and so it has felt natural for nested types to show up there. It’s easy enough to imagine moving docs for a new struct from an extension to the Structs category. This would work nicely with Alamofire because it uses the extension solely for a namespace. But if the project declared a type in an extension along with members for working on it/relating it to the extended type, then we'd end up with the pure extension containing just members and the new nested type elsewhere in the docs tree. Maybe this is good - gives a bit more prominence to the new type. |
Also stop parameters without documentation from appearing in the table.
c69f90b
to
0f0afe4
Compare
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.
👍 sorry for the very long delay.
Thanks! Merged. |
Autolink to symbols from parameter documentation (#789) and from external markdown files, readme / documentation / custom abstract (#715).
Autolink correctly to symbols containing & < > (#805).
Fix something I broke earlier that caused undocumented parameters to appear in the parameter tables -- found while autolinking parameters.
Specs changes: