Hi!
I’ve been struggling with creating an extension that would parse a Swagger file and produce a well-formatted HTTPDomain-based rst document.
I’m currently using the Jinja2 workaround suggested by Eric Holscher (my extension: https://pypi.org/project/sphinxcontrib-swagger2sphinx/, Eric’s post: http://ericholscher.com/blog/2016/jul/25/integrating-jinja-rst-sphinx/).
The problem is this approach works well only with HTML output. I need to produce PDF. Although it does work with LaTeX builder, it only does so after HTML is built. Also, it has some weird side-effects like I can’t use “howto” class anymore.
So anyway, I always felt the _right_ way to do it was with the extension that operates directly on nodes. Like the one explained in the official tutorial (http://www.sphinx-doc.org/en/master/extdev/tutorial.html).
It hurts me to say, but the tutorial was barely helpful. I do have an idea on how to add docutils nodes like paragraphs, titles, admonitions, etc., but no clue on how to add Sphinx’s nodes like py:function or, more importantly in my case, http:get.
Could anyone please help me?
---
Konstantin
--You received this message because you are subscribed to the Google Groups "sphinx-dev" group.To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+...@googlegroups.com.For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+unsubscribe@googlegroups.com.