Skip to content

Enabling This Incorrectly Applies a Substitution to All Types in API Docs #719

Closed
@alexdlaird

Description

@alexdlaird

I enabled this extension for a single variable on my project, pyngrok_version. All I changed was adding the extension, adding this to conf.py:

rst_prolog = """
.. |pyngrok_version| replace:: {pyngrok_version}
""".format(pyngrok_version=version)

And then in my troubleshooting.rst file, I have this line now where the substitution should occur:

.. code-block:: shell
    :substitutions:

    ...

    PYNGROK VERSION:
       |pyngrok_version|

And that works great, the version 7.1.5 now appears there and will auto-update! Unfortunately, with no other configuration change (here is the commit), my API docs all look like this now:

Screenshot 2024-03-10 at 7 53 33 AM Screenshot 2024-03-10 at 7 53 44 AM

All types now appear to also have this substitution applied. They used to look like like:

Screenshot 2024-03-10 at 7 53 55 AM

I disabled this on my main branch so latest would be stable again, so you can see how the API docs are supposed to look here. Then I enabled a hidden branch on ReadTheDocs so you can see them broken here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions