Skip to content

BUG: anchor links hidden by header navbar when this has a different height #258

@jorisvandenbossche

Description

@jorisvandenbossche

Reported by numpy at numpy/numpy#17207. Anchor links jump to a slight wrong place, so that the heading is a bit hidden by the navbar. Eg https://numpy.org/devdocs/user/building.html#accelerated-blas-lapack-libraries right now gives:

I suppose this happens for the numpy docs because they set their navbar (for having a larger logo) to be a bit bigger: 75px instead of the 45px in the default theme.
And then the margin added to headings to add an offset to the anchor link to appear just below the navbar doesn't match anymore.

Some related issues: #6, #147 (and linked PRs)

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