Skip to content

bad looking "Contents:" from root document appears in navigation side bar with Alabaster theme  #3830

@jfbu

Description

@jfbu

Refs: 075a8cf#commitcomment-22329934

With this in conf.py,

html_theme = 'alabaster'

# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
html_sidebars = {
    '**': [
        'about.html',
        'navigation.html',
        # 'relations.html', # hidden by alabaster css anyway
        'searchbox.html',
        # 'donate.html',
    ]
}

and dummy project populated on top of one created by sphinx-quickstart,

Welcome to a's documentation!
=============================

.. toctree::
   :maxdepth: 2
   :caption: Contents:

   bar1
   bar2
   bar3

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

one gets bad looking "Contents:" in html sidebar (here with language set to French, but does not matter)

capture d ecran 2017-05-30 a 17 13 51

from the :caption: Contents: in index.rst.

capture d ecran 2017-05-30 a 17 17 30

Environment info

  • OS: Mac
  • Python version: 3.5.3
  • Sphinx version: 1.6.2
  • Alabaster theme: 0.7.10

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions