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

Type links broken in documentation #3680

Closed
mapsam opened this issue Nov 22, 2016 · 9 comments
Closed

Type links broken in documentation #3680

mapsam opened this issue Nov 22, 2016 · 9 comments

Comments

@mapsam
Copy link
Member

mapsam commented Nov 22, 2016

It appears all of our type links (i.e. ([LngLatBoundsLike])) are broken in our documentation. For example types that are pointing to the #Map class currently point to

https://www.mapbox.com/mapbox-gl-js/api/#map

when they should be pointing to the uppercase version

https://www.mapbox.com/mapbox-gl-js/api/#Map

Since these are id strings, the capitals matter, so the fragments aren't working as expected. This may be related to an upstream documentation.js issue. I will do some digging.

cc @lucaswoj @lyzidiamond @tmcw

@mapsam
Copy link
Member Author

mapsam commented Nov 22, 2016

Looks like this is a known issue: documentationjs/documentation#525

@tmcw has started some work on a fix here: documentationjs/documentation#537

@jfirebaugh
Copy link
Contributor

#3445 is a special case of this.

@tmcw
Copy link
Contributor

tmcw commented Nov 22, 2016

Yep, if you can test out that branch, go for it... I'd like to finish out that work - it requires a solid chunk of time to think of All The Cases of All The Things That Might Happen.

@andrewharvey
Copy link
Collaborator

It looks like this is fixed now!

@lucaswoj
Copy link
Contributor

Unfortunately this is not fixed in all cases :-(

@lucaswoj lucaswoj self-assigned this Mar 14, 2017
lucaswoj pushed a commit that referenced this issue Mar 20, 2017
lucaswoj pushed a commit that referenced this issue Mar 21, 2017
@lucaswoj
Copy link
Contributor

Fixed by #4460 😄

@andrewharvey
Copy link
Collaborator

andrewharvey commented Apr 11, 2017

Unfortunately I don't think this is completely fixed. In the code some places use {@link foo} while others use [Foo](Foo), the latter remains unfixed.

For example at https://www.mapbox.com/mapbox-gl-js/api/#map#fitbounds under options.easing the AnimationOptions link is broken.

I think we can simply migrate occurrences of [Foo](Foo) to {@link foo} to fix this, the inconsistency in style here is confusing as they appear to do the same thing.

I don't think documentation.js supports all the link formatting options from JSDoc. This is an issue as some of the current markdown style links are monospaced and some aren't.

If we want to retain that monospaced formatting then I'm not sure if we can move to {@link foo}.

Related to but not the same issue as #4568

@kronick
Copy link

kronick commented May 1, 2017

This seems like a tough one to squash! I'm seeing it broken still on https://www.mapbox.com/mapbox-gl-js/api/#LngLatLike . Anybody familiar with the innards of how we generate docs able to pick this one up?

@mollymerp mollymerp mentioned this issue May 2, 2017
5 tasks
@mollymerp
Copy link
Contributor

fixed this in #4668 – still need to figure out #4568

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants