Skip to content

Support passing replacements to the "include" directive #121

@tzach

Description

@tzach

Thanks for a great extension.

In many cases, I combine include and replacement as follow

upgrade.4.0-to-4.1.rst

.. |SRC_VERSION| replace:: 4.0
.. |NEW_VERSION| replace:: 4.1
.. include:: /upgrade/_common/upgrade-guide-v2-rpm.rst

upgrade.4.1-to-4.2.rst

.. |SRC_VERSION| replace:: 4.1
.. |NEW_VERSION| replace:: 4.2
.. include:: /upgrade/_common/upgrade-guide-v2-rpm.rst

sphinx-substitution-extensions is great because it allows me to replace in code blocks, but having all the replacement rules in conf.py does not allow it to ve use in the above example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions