sphinx-doc/sphinx

Table of contents and footer can overlap when using `stickysidebar`

Open

#11 557 ouverte le 7 août 2023

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)Python (1 985 forks)batch import
help wantedhtml theme

Métriques du dépôt

Stars
 (5 625 stars)
Métriques de merge PR
 (Merge moyen 10j 11h) (11 PRs mergées en 30 j)

Description

Describe the bug

The problem occurs when the content of a page is "shorter" than the table of contents.

Here is a real example (that occurs in combination with fulltoc):

image

And this is my minimal example (without fulltoc):

image

How to Reproduce

conf.py

project = 'test'
copyright = '2023, me'
author = 'me'
release = '0.0'

extensions = []

templates_path = ['_templates']
exclude_patterns = []

html_theme = 'classic'
html_static_path = ['_static']
html_theme_options = {"stickysidebar": True}

index.rst

page 1
======

.. toctree::
   :hidden:

   page2

page2

page 2
======

Environment Information

Platform:              win32; (Windows-10-10.0.19045-SP0)
Python version:        3.11.2 (tags/v3.11.2:878ead1, Feb  7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)])
Python implementation: CPython
Sphinx version:        7.1.2
Docutils version:      0.20.1
Jinja2 version:        3.1.2
Pygments version:      2.14.0

Sphinx extensions

No response

Additional context

No response

Guide contributeur