10000 Links in RST epilog show a warning · Issue #1202 · sphinx-gallery/sphinx-gallery · GitHub
[go: up one dir, main page]

Skip to content
Links in RST epilog show a warning #1202
Open
@germa89

Description

@germa89

If you are using references in the sphinx rst_epilog variable, when you use them in the python gallery file, you get this sort of warning:

[WARNING] Reference not found for 'elem_plane183' at line 8 column 43

Basic path to replicate

Not tested

Conf.py

# make rst_epilog a variable, so you can add other epilog parts to it
rst_epilog = ""

# Read link all targets from file
with open("links.rst") as f:
    rst_epilog += f.read()

links.rst

.. _mylink: www.url.com

Example.py

"""
My example
=========
My `url <mylink_>`_ is nice!
"""
print("end")

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

      0