Skip to content

Make sidebar TOC sticky and visible through out the document #11

@pllim

Description

@pllim

Original post from @smoh at astropy/astropy#8941:

Hi, I was looking at various documentations of astropy-related projects which uses astropy sphinx theme and have a suggestion. I thought it might have come up already but couldn't find any. It is related to #8922 but not exactly the same issue.

Is it possible to make the sidebar sticky and have its own scroll as in here in python 2.7 docs? Right now, when we scroll down, the sidebar scrolls down with the content quickly becomes invisible letting its navigation utility not so useful except at the beginning.

Oddly, python 3 docs sidebar also scrolls down with content and there is a relevant thread here: python/python-docs-theme#20

I don't know enough css/javascript to gauge how easy/hard it is but it would be so nice.
(I thought this issue belongs here than astropy-sphinx repo but please feel free to move it if appropriate).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions