sphinx-automodapi icon indicating copy to clipboard operation
sphinx-automodapi copied to clipboard

Sphinx class inheritance diagrams not linking classes correctly

Open hamogu opened this issue 6 years ago • 4 comments

E.g. at https://astropy.readthedocs.io/en/latest/visualization/index.html#module-astropy.visualization

click on any class in the graph-viz Diagram - None of them work, because there is a "/latest/" missing in the url. I'm reporting this here, but I'm not entirely sure if this is a sphinx-automodapi issue or related to some configuration in astropy itself.

hamogu avatar Sep 13 '18 20:09 hamogu

https://dias.readthedocs.io/en/rn-docs/dev/reference.html

The diagram links point to a different .rst than the class name links.

nritsche avatar Mar 18 '19 22:03 nritsche

I've run into the broken links again, today.

It's useful to link to these following issues as PRs and most of the relevant discussions happened on them:

https://github.com/astropy/astropy/issues/4935

and upstream fixes and more discussions on how it should be fixed instead here, in this extension: https://github.com/sphinx-doc/sphinx/pull/2484 https://github.com/sphinx-doc/sphinx/pull/6454

bsipocz avatar May 18 '22 00:05 bsipocz

This is actually a bug in Sphinx after all. See sphinx-doc/sphinx#10576

ayshih avatar Jun 18 '22 21:06 ayshih

Thanks for investigating and opening upstream fix!

pllim avatar Jun 20 '22 14:06 pllim

I think this is fixed by #172

pllim avatar Aug 10 '23 17:08 pllim