Hi, I think option 1 is good solution for your case. But you need to resolve cross references by 2 phase. The first one is "full" resolve; which expands the xref to full description. The 2nd is "simple" resolve. It only resolves a xref to hyperlink.
So adding custom transform will help you. Thanks, Takeshi KOMIYA 2019年2月28日(木) 19:47 Gert van Dijk <[email protected]>: > > So far, I've been successful with going for option 1 and just adding one > line; adding the ReferencesResolver again as post transform! > > def setup(app): > app.add_domain(MyDomain) > # Recursively resolve pending_xref nodes, including those with references > to other domains. > > app.add_post_transform(sphinx.transforms.post_transforms.ReferencesResolver) > > > However, option 1 still feels hackish to me in its base. Suggestions still > welcome. > > I'm building a Protobuf/gRPC domain for Sphinx, with plans to open source it > some time 'soon'. Also I might pick up working on another more general > "risks-mitigations" domain again, with all that I learned along the way with > this. > > -- > 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. -- 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.
