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

Self-referential links on dartdoc pages are not obvious, broken links for inherited methods #1239

Closed
ghost opened this issue Aug 31, 2016 · 9 comments
Assignees

Comments

@ghost
Copy link

ghost commented Aug 31, 2016

(1) Links provided in https://angular.io/docs/dart/latest/api/angular2.platform.browser/TemplateSecurityContext-class.html are redirecting to it self.Try clicking on TemplateSecurityContext .It is no point of redirecting to the page it self by providing a link.

(2) links provided on page such as toString and noSuchMethod ( https://angular.io/docs/dart/latest/api/angular2.platform.browser/TemplateSecurityContext-class.html ) giving 404 not found.

@devoncarew
Copy link
Member

@kwalrath - I'm not sure how those docs are generated, and if this is a dartdoc regression or not.

@kwalrath
Copy link
Contributor

@chalin, what's your take on this?

@chalin
Copy link
Contributor

chalin commented Aug 31, 2016

@kwalrath
Copy link
Contributor

kwalrath commented Aug 31, 2016

Re (1): It seems silly to have a page link to itself. In this case, couldn't dartdoc detect the self-link and do something smarter?

@chalin
Copy link
Contributor

chalin commented Aug 31, 2016

Well, that could be open to debate. It does offer visual uniformity for all references.

I'm more concerned about situations where I see a type and that it is not linked. That is the case, for example, with dart:core types -- i.e., they are not being linked. As a reader I'd want to follow a link to, e.g., the Map type sometimes.

@jcollins-g
Copy link
Contributor

This is related (and may be a duplicate depending on how you look at it) to #721.

@jcollins-g jcollins-g changed the title Documentation issue on angular2.platform.browser Self-referential links on dartdoc pages are not obvious, broken links for inherited methods Apr 8, 2017
@chalin
Copy link
Contributor

chalin commented Apr 9, 2017

I'd say that this issue is distinct enough from #721, in that it refers to in-page links rather than side-nav links to the current page.

@jcollins-g
Copy link
Contributor

Part one of ghost's comment is working as intended from dartdoc's perspective (if you don't want a self-referential link in your dartdoc, don't write one in the comment). Part two is a real problem with enums that is fixed in #1390.

@jcollins-g jcollins-g self-assigned this May 4, 2017
@jcollins-g
Copy link
Contributor

Since the first part is WAI and #1390 addressed the second part, closing.

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

No branches or pull requests

4 participants