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

Documentation: Hidden subpages lose user's location in page tree #2274

Open
ryyst opened this issue Jul 17, 2024 · 2 comments
Open

Documentation: Hidden subpages lose user's location in page tree #2274

ryyst opened this issue Jul 17, 2024 · 2 comments

Comments

@ryyst
Copy link
Contributor

ryyst commented Jul 17, 2024

Documentation Bug Report

Actual behavior:

Certain pages in the documentation are in some sort of hidden state, where they are not included in the main navigation / TOC. This includes at least all example code pages and tutorial diff/code pages. For example:

This causes the new navigation headers to be suddenly closed after user arrives on such a page, somewhat disorienting on the path they took here. This is most noticeable on the flat example page, where one could expect to be just going deeper into the navigation tree via each link click.

Expected behavior:

There should be some indication on where the user arrived from.

But seeing as there are semantically multiple different layers, I'm not sure if the solution here is same for all cases. Rather this is a bigger task of reorganizing the old structure to match new layout in general.

@einarf
Copy link
Member

einarf commented Jul 19, 2024

The example pages are not connected to a toctree. I'm not sure how to fix this. There might be some way around it. Also using raw links is not optimal. sticking to labels makes the docs a lot more maintainable. However.. you can't put links using labels in figure for some reason.

@pushfoo
Copy link
Member

pushfoo commented Jul 19, 2024

TL;DR: We might have a shot at fixing this with hidden toctrees.

Certain pages in the documentation are in some sort of hidden state

I don't see a link to solitaire_01_diff.html, but:

The example pages are not connected to a toctree.

To elaborate on this, it's going to be due to one of two things:

  1. :orphan: status (the pages you've mentioned)
  2. They match exclude_patterns

This has me wondering if we should be using :orphan: so widely. Although it's clear and explicit, it seems to be causing problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants