Skip to content

sphinx: random_tree_embedding label undefined #11864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
amueller opened this issue Aug 20, 2018 · 1 comment · Fixed by #12996
Closed

sphinx: random_tree_embedding label undefined #11864

amueller opened this issue Aug 20, 2018 · 1 comment · Fixed by #12996

Comments

@amueller
Copy link
Member

I get

scikit-learn/doc/modules/manifold.rst:651: WARNING: undefined label: random_trees_embedding (if the link has no caption the label must precede a section header)

even though it's defined
in

modules/ensemble.rst:.. _random_trees_embedding:
@jnothman
Copy link
Member

The problem is that .. _random_trees_embedding doesn't have any text defined for it because it precedes a .. topic rather than a heading. So when you use :ref: to link to it, you need to give it text, like :ref:`Random trees embedding <random_trees_embedding>` . That's why the warning occurs.

But the right fix is to move the .. _random_trees_embedding link target down a few lines to precede the heading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants