Hi All,

Relative newbie to configuring/tweaking Sphinx, but have been using 
RST/Sphinx heavily for a few years.  Spent a good while trying to search 
for this, but as you may expect "yaml" and "json" are busy keywords...  

We document our API and platform operations with lots of example.  Our 
system flexibly uses both YAML and JSON format.  So we often use codeblocks 
like:

.. code-block:: json

  { "stuff": true }

.. code-block:: yaml

  stuff: true

Which is a pain in the behind to generate the example twice, and makes for 
a maintenance headache on updates, etc.  

Is there any way (plugin, etc) to create a codeblock in Sphinx that is 
either expressed in YAML or JSON, but can "switch" output views by 
re-rendering it to the other format?

If I have missed a similar post or information - I'm happy to be pointed at 
the right example/documentation for reference.

Thanks!
~~shane


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/2146ed41-7ac0-49b3-b823-9eead6afaad1n%40googlegroups.com.

Reply via email to