doctrine-website icon indicating copy to clipboard operation
doctrine-website copied to clipboard

Add next/previous chapter buttons to the docs

Open jwage opened this issue 6 years ago • 3 comments

jwage avatar Jun 09 '18 14:06 jwage

Hi @jwage

Can I have more details to implement this?

lex111 avatar Oct 02 '18 07:10 lex111

Hi @lex111, the only way I've thought to be able to do it is with javascript on the client side by looking at the open chapter in the sidebar and then get the next/prev one in the html dom to generate the next/prev links. Screenshot attached of what I am referring to.

screen shot 2018-10-02 at 12 33 13 am

The more "proper" way would be to figure out to do it in doctrine/rst-parser but I am not sure how we could do it there. I will think more about it. This one may not be a very good one to work on since I am not sure if it makes sense or is possible in a way that makes sense.

jwage avatar Oct 02 '18 07:10 jwage

This sounds like a nice-to-have, but it's convenient for documentations that are read from start to the end. Aren't the Doctrine docs more like a reference work?

SenseException avatar Sep 02 '23 20:09 SenseException