-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support passing replacements to the "include" directive #121
Comments
This extension allows replacements to be defined in the |
How can I do that?
Thanks, please consider this a feature request |
@tzach I mean, with the
Done! I will say that I am a little overwhelmed right now with work and so this is not my top priority. I would be happy to review a PR or even pair a little. |
Another directive that could profit from a |
Sounds good @jhermann . I'm happy to look at that when I next have time for this project. |
@jhermann If you could provide a little sample for me to see what is not substituted, that might help this go faster. |
See https://github.com/Springerle/py-generic-project/blob/master/%7B%7Bcookiecutter.repo_name%7D%7D/docs/api-reference.rst and imagine the replacement not done by Jinja2 / Cookiecutter, but instead at runtime by the extension. |
I hadn't considered generated doc paths. It makes me think for the |
Well, I have no concrete example, but it is certainly thinkable. OK, I have a maybe contrived one, imagine you want OS-specific versions of a manual, and include dynamic texts per OS -- could use |
Thanks for a great extension.
In many cases, I combine include and replacement as follow
upgrade.4.0-to-4.1.rst
upgrade.4.1-to-4.2.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.
The text was updated successfully, but these errors were encountered: