Add HTTP resources to TOC#80
Conversation
|
@sevdog does this generate the right-hand "On this page" navigation, such as this in Furo?
If so, how is that different from the current implementation at https://sphinxcontrib-httpdomain.readthedocs.io/en/stable/index.html? To merge this PR, it needs the following:
Please let me know. Thank you! |
Documentation build overview
Show files changed (1 files in total): 📝 1 modified | ➕ 0 added | ➖ 0 deleted
|
|
Hi @stevepiercy, you are right that is what I am achieving to get, to show also endpoints in the TOC. Because without implementing those methods sphinx will not put them in the TOC (and by default the returns empty elements). I have updated the PR and the code by also adding a specific flag to turn on this change. |
stevepiercy
left a comment
There was a problem hiding this comment.
This is a very nice and useful improvement. Thank you! I expanded the wording in the documentation and change log. Would you please take a look and let me know or just accept the suggestions?
|
I just putted the changes with a single commit. I'm fine with the wording, thank you. |
stevepiercy
left a comment
There was a problem hiding this comment.
Thank you! Will merge after CI passes. This will go into the a2 release. I'll try to get that out later today or tomorrow.

This PR adds the methods to handle TOC (table of content) generation which can be used by themes like furo to build a page-level-toc.
This can simplify nagivation in pages when there are many HTTP endpoints.