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

Option to skip an index.rst landing page and directly go to first subpage #60

Closed
jorisvandenbossche opened this issue Nov 25, 2019 · 3 comments
Labels
needs: discussion Needs discussion before an implementation can be made

Comments

@jorisvandenbossche
Copy link
Member

Currently, the index.rst pages that hold the toctree of a sub-part of the doc website, are often very bare pages with just that toctree and are not very useful otherwise.

Sometimes it might be nice to add more custom content on those pages (however, you then run into problems when wanting to add new titles, see #59). But sometimes it might also be nice to have the option to just skip that "landing page" with the toctree, and directly go to the first sub-page when clicking on it.

For example in the pandas demo docs, we have this section with comparisons to other languages:

image

It could be nice to have the option to say: "for this index.rst, only use me to get the toctree information, but for the rest don't show me as a page" (and eg directly select to first sub page)

@jpmckinney
Copy link
Contributor

jpmckinney commented May 14, 2021

As you describe in #192 (comment), one option is to just add content to the page.

If you want to remove the page entirely, when the page is not top-level, can't you just split the toctree into multiple toctrees in getting_started/index.rst, so that there is one toctree that lists the comparison/... pages, with a :caption: Comparison with other tools?

When the page is top-level (i.e. appears in navbar), a (janky) solution is for the top-level index.rst to list the first page of the section with Section title <first-page> in the toctree, and then that first page would have a toctree for all pages in its section, with self at the top, so that it still appears in the sidebar.

@12rambau
Copy link
Collaborator

In the current implementation, the index.rst page can be a very rich and complex page, with no sidebars. You can also specify the entry point of your documentation by setting the link of your brand in the header bar. In this context, is it still a wanted feature ?

@12rambau 12rambau added the needs: discussion Needs discussion before an implementation can be made label Aug 28, 2022
@12rambau
Copy link
Collaborator

I'll close this issue for now asd there is no activity since 2022. Please reopen if you still want to see it implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: discussion Needs discussion before an implementation can be made
Projects
None yet
Development

No branches or pull requests

3 participants