sphinx-doc/sphinx

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

Open

#11,557 创建于 2023年8月7日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)Python (1,985 fork)batch import
help wantedhtml theme

仓库指标

Star
 (5,625 star)
PR 合并指标
 (平均合并 10天 11小时) (30 天内合并 11 个 PR)

描述

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

贡献者指南