Readthedocs.org: Flyout links incorrect on Mkdocs projects

Created on 12 Jan 2016  路  21Comments  路  Source: readthedocs/readthedocs.org

All 21 comments

1480 was closed even though the root cause seems to be the same. Yet, the flyout links are still incorrect.

I was trying to fix this and believe I found the cause, I was able to get a working version for a MkDocs based project.

More info here: https://github.com/rtfd/readthedocs.org/commit/98b5d34316917e0bdb26404c6f3816108ce7f42e

@agjohnson any thoughts on my comment in https://github.com/rtfd/readthedocs.org/commit/98b5d34316917e0bdb26404c6f3816108ce7f42e

I have tested the change locally using the directions here: https://docs.readthedocs.org/en/latest/install.html#installing-read-the-docs and it works for a MkDocs and Sphinx based projects.

@ericholscher do you have any thoughts on this? If I have a fix that is tested, so I can create the PR. Want to get this fixed as we just went live with our ReadTheDocs integration.

@sahilTakiar Definitely send the PR over!

The same here.

Steps to reproduce:

  1. Go to this page.
  2. Click _Read the Docs_ in the bottom, then View or Edit.

The links are like:

https://github.com/geerlingguy/drupal-vm/blob/master/home/docs/checkouts/readthedocs.org/user_builds/drupal-vm/checkouts/latest/docs/index.md
https://github.com/geerlingguy/drupal-vm/edit/master/home/docs/checkouts/readthedocs.org/user_builds/drupal-vm/checkouts/latest/docs/index.md

which aren't valid.

2066 was merged hours ago and thus this should now be closed I guess.

Thanks @marcelstoer. I just rebuilt and the issue persists so I don't believe this should be closed until the change is deployed.

Just deployed this, so it should hopefully be fixed.

It appears to be. Thanks @sahilTakiar and @ericholscher!

It works for the OP's project at http://tracks.readthedocs.org but it doesn't work for any other project listed here in the comments: http://docs.drupalvm.com, http://mathquill.readthedocs.io and http://nodemcu.readthedocs.io (mine) still have this odd ".../docs/checkouts/readthedocs.org/..." URLs. What's the difference between them? I just built mine again to be sure.

same for me. The view and edit URLs have the same '.../docs/checkouts/readthedocs.org/...' in them

I thought maybe it was related to having edit_uri set in mckdocs.yml, but removing it and rebuilding seems to make no difference. @marcelstoer doesn't even have the set in their mkdcos.yml.

edit_uri is a feature that appeared in mkdocs 0.16 and that would help in solving that I think. But it seems RTFD is still using mkdocs 0.15 according to my build logs.

Is an upgrade to mkdocs 0.16 planed ? Or is it something that could be contributed by someone relatively easily ?

I didn't know that this issue was already reported, I'm fixing this in https://github.com/rtfd/readthedocs.org/pull/3525

Sorry to ping in a closed issue, but I'm seeing the same broken "View/Edit on GitHub" links in this project, which is using Mkdocs for the build: http://fieldguide.opennews.org/en/latest/. Both URLs have the ".../docs/checkouts/readthedocs.org/..." path stuff appended.

I just triggered a fresh build to see if that would clear things up (it had been a while), but no luck. Is there a setting I need to update?

Links are correct for me

Hmmm. I hoped maybe it was just a caching thing so I cleared that out, but the links are still broken for me. (See URL at bottom of screenshot)

screen shot 2019-01-04 at 5 34 06 pm

Links are correct for me too. Might be CDN related cache?

Yeah, I think so, CDN or ISP caching

Hey! Sure enough, those links are correct for me now too. (I promise I tried clearing caches, multiple browsers, etc etc.) Thanks for the response!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

goerz picture goerz  路  4Comments

humitos picture humitos  路  4Comments

davidfischer picture davidfischer  路  4Comments

humitos picture humitos  路  3Comments

humitos picture humitos  路  4Comments