Skip to content

Usage of dropdowns are breaking HTML anchor #27408

@glemaitre

Description

@glemaitre

While working on the release 1.3.1, I found the following warning:

- doc/modules/grid_search.rst:611: WARNING: Failed to create a cross reference. A title or caption not found: 'pipeline_nested_parameters'
- sklearn/feature_extraction/text.py:docstring of sklearn.feature_extraction.text.CountVectorizer:59: WARNING: Failed to create a cross reference. A title or caption not found: 'stop_words'
- sklearn/feature_extraction/text.py:docstring of sklearn.feature_extraction.text.HashingVectorizer:86: WARNING: Failed to create a cross reference. A title or caption not found: 'stop_words'
- sklearn/feature_extraction/text.py:docstring of sklearn.feature_extraction.text.TfidfVectorizer:71: WARNING: Failed to create a cross reference. A title or caption not found: 'stop_words' 

After investigation, those warnings a linked to the following pattern:

.. _anchor:

|details-start|
**Title**
|details-split|
Blabla
|details-end|

and when using

:ref:`anchor`

Sphinx failed to create the reference.

We need to investigate and to take into account this issue when reviewing the dropdown menu thingy.

ping @ArturoAmorQ

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