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

Sticky navigation !working #1565

Open
dylanh724 opened this issue Jun 3, 2024 · 3 comments
Open

Sticky navigation !working #1565

dylanh724 opened this issue Jun 3, 2024 · 3 comments
Labels
Bug A bug Needed: replication Bug replication is required

Comments

@dylanh724
Copy link

dylanh724 commented Jun 3, 2024

Problem

Trying to get sticky nav working with sphinx_rtd_theme, but experiencing inconsistencies.

From what I can tell, if I add any toctree to a child doc, the sticky tree completely wipes and just sticks to the new toctree.

If I exclude a toctree in a child doc, the sticky nav works as expected.

An example dir/file tree:

- conf.py
- index.rst
- content/
   - Foo1/
      - index.rst
   - Foo2/
      - index.rst
         - Bar/
            - index.rst

Where:

  • Foo1, for example, would work with no toctree (the navbar persists consistently as expected)
  • Foo2, for example, would contain a toctree to include Bar/index (the navbar ONLY shows Bar and nothing stickied)

Output Examples

I couldn't find much about sticky nav, so any additional tips would help. Eg, I have a vanilla toctree nav that would output:

- Foo1
- Foo2

Within Foo1, I have no toctree, so the "sticky" nav persists

Within Foo2, I have a toctree that would output:

- Bar

The output result is missing Foo1:

- Foo2
   - Bar

What I was really was expecting was Foo1 to port over:

- Foo1
- Foo2
   - Bar

Reproducible Project

content/Foo1/index.rst

========
Foo1 Service
========

This is a doc!

content/Foo2/index.rst

========
Foo2 Service
========

.. toctree::
   
   Bar <Bar/index>

This is a doc!

content/Foo1/Bar/index.rst

=======
Bar Service
=======

This is a doc!

Expected Results

Foo1 would persist throughout any child nav

Environment Info

  • Python Version: 3.10
  • Sphinx Version: 7.3.7
  • RTD Theme Version: 2.0.0
@dylanh724 dylanh724 added Bug A bug Needed: replication Bug replication is required labels Jun 3, 2024
@Conmemay200

This comment was marked as spam.

@Conmemay200
Copy link

con đĩ mẹ tụi m thích láo lồn k hả mấy chó

@Conmemay200
Copy link

đmm thích chơi ra chơi trc mặt vs t nè clm tụi m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug Needed: replication Bug replication is required
Projects
None yet
Development

No branches or pull requests

2 participants