-
Notifications
You must be signed in to change notification settings - Fork 118
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
mixin member linked to wrong mixin in generated ACX API docs #1434
Comments
This suggests some sort of canonicalization problem. |
As part of fixing this, the links in index.json should be added to the link checker. |
This probably explains a bunch of 404s in the doc analytics. I was just thinking that we should have a complete list of all bad links. @chalin? |
I'm very interested in tracking that on my side too -- our built-in link checker covers most things now but clearly not everything. |
@kwalrath, well, in a way, we've encoded that here in the link checker skip list: https://github.com/dart-lang/site-webdev/blob/master/scripts/config/linkcheck-skip-list.txt#L23-L26 |
Those don't match the 404s I'm seeing: /angular/api/angular2.platform.browser/BrowserDomAdapter/getElementsByClassName (That said, I don't know where these URLs are coming from. Some might be dart:html APIs that something is treating as angular2 ones. Some might be TS APIs that don't exist in Dart.) |
As for the mixin that isn't linked, that is an indication that dartdoc (rightly or wrongly) believes that it is referred to by the public interface (in this case, referenced from a class in the public interface) but isn't actually exported itself. I'll verify that this determination is correct; if it is correct, the way to fix the missing link is to solve the warning. The broken links look like they are gone now with 0.12.0. |
Never mind on the broken links -- we still have them in 0.12.0, looking into that. |
Ok, thanks. |
Ah, I see what's going on here. dartdoc is treating mixins too similarly to other things in the inheritance chain. They aren't though, and so it isn't appropriate to redirect to other mixins if one can't be documented. |
Visit the ACX MaterialDropdownSelectComponent API page on webdev.
Search for, say,
handleHomeKey
:Click on the link, and you'll get a 404.
The
handleHomeKey
is linked to https://webdev.dartlang.org/components/api/angular_components/ActivateItemOnKeyPressMixin/handleHomeKey.html but the ActivateItemOnKeyPressMixin doesn't definehandleHomeKey
. It is defined in KeyboardHandlerMixin.Note that if you look at the "Mixes-in" list towards the top of the API entry for MaterialDropdownSelectComponent, the
KeyboardHandlerMixin
entry isn't hyperlinked:The API docs linked to above were generated using dartdoc 0.11.x.
cc @kwalrath @nshahan
The text was updated successfully, but these errors were encountered: