Open dylanh724 opened 5 months ago
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
Foo2
Bar/index
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
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!
Foo1 would persist throughout any child nav
giao con mẹ tụi m
con đĩ mẹ tụi m thích láo lồn k hả mấy chó
đmm thích chơi ra chơi trc mặt vs t nè clm tụi m
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:
Where:
Foo1
, for example, would work with no toctree (the navbar persists consistently as expected)Foo2
, for example, would contain a toctree to includeBar/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:
Within Foo1, I have no toctree, so the "sticky" nav persists
Within Foo2, I have a toctree that would output:
The output result is missing Foo1:
What I was really was expecting was Foo1 to port over:
Reproducible Project
content/Foo1/index.rst
content/Foo2/index.rst
content/Foo1/Bar/index.rst
Expected Results
Foo1
would persist throughout any child navEnvironment Info