You can use rst_epilog or rst_prolog in your conf.py file. rst_epilog = """ .. |psf| replace:: Python Software Foundation .. |rst| replace:: ReStructuredText """
See this for more info: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-rst_epilog On Monday, April 22, 2019 at 12:28:52 AM UTC+5:30, Ярослав Ребенко wrote: > > Is there a way to create a cross-file substitute. Say declare > > .. |test| replace:: TesT > > in one file and then use > > |test| > > anywhere else. > -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
