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

Links to the sections of the reference manual #525

Closed
jlstevens opened this issue Feb 28, 2016 · 5 comments
Closed

Links to the sections of the reference manual #525

jlstevens opened this issue Feb 28, 2016 · 5 comments
Labels
type: docs Related to the documentation and examples

Comments

@jlstevens
Copy link
Contributor

One issue with writing developer documentation is that links to the reference manual don't work properly.

For instance, getting the link for Cycle (these links are available by clicking on the little icon when you hover over entries) will jump to that entry but not expand it:

http://holoviews.org/Reference_Manual/holoviews.plotting.html#holoviews.plotting.Cycle

Linking to methods is worse because you don't jump anywhere at all. For instance:

http://holoviews.org/Reference_Manual/holoviews.plotting.html#holoviews.plotting.renderer.Renderer.export_widgets

Note that these links work fine if you stay on the page and manually expand the relevant sections. It would be really helpful if it could also work with external links!

@jlstevens jlstevens added the type: docs Related to the documentation and examples label Feb 28, 2016
@philippjfr
Copy link
Member

Isn't the correct thing to use a proper sphinxdoc referencing mechanism. Something like :class:holoviews.core.options.Cycle? Note sure if that works now but it should.

@jlstevens
Copy link
Contributor Author

That is exactly what I used to discover this issue. Such a sphinx directive translates into the sort of link example I gave above.

Edit: Here is a concrete example of what I tried: :meth:holoviews.core.HoloMap.clone``

@philippjfr
Copy link
Member

I've implemented some javascript to ensure that the section gets expanded when you link to it. Both the class:

http://dev.holoviews.org/Reference_Manual/holoviews.core.html#holoviews.core.HoloMap

and the method:

http://dev.holoviews.org/Reference_Manual/holoviews.core.html#holoviews.core.HoloMap.clone

now work. Closing.

@philippjfr
Copy link
Member

Functions still don't work. Will look at that later.

@philippjfr philippjfr reopened this Feb 28, 2016
@philippjfr
Copy link
Member

Nevermind, just realized functions aren't collapsed anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: docs Related to the documentation and examples
Projects
None yet
Development

No branches or pull requests

2 participants