[sphinx-users] Re: :doc: in a custom directive

2019-02-18 Thread Peter Burdine
Hmm, I don't use self.state.nested_parse, this is how I've done it: sphinx.util.nodes.nested_parse_with_titles(self.state, ViewList(new_content. splitlines(), source=docname), node)

[sphinx-users] Re: :doc: in a custom directive

2019-01-28 Thread Matthew Woehlke
On 23/01/2019 10.27, Maxime Adam wrote: > With that's said I'm willing to do this following directive > > class MarkAsDeprecated(Directive): > > def run(self): > > txt = "Blablabla moved to :doc:{0}".format(self.arguments[0]) > paragraph_node = nodes.paragraph(text=txt) > >