Lets say I have a JSON/YAML/XML etc of zoo animals and I want to make some documentation for all of the animals in the zoo. So I have a JSON like:
{
"zooName": "C town's Zoo",
"animals": [
"tiger": {
"species":"some_species_name_here",
"weight": 120
},
"bear":{
"species":"some_other_species_name",
"weight": 100
}
]
}
In another SSG, I could do something like
> Bring in a JSON file from /data/myfile.json
> Access some index of that file like [animals][tiger], etc...
> Show that data as a part of the HTML template that is made by, say, `tiger.rst`
How would I accomplish that in Sphinx? Let's say I have an animals.rst with a toc-tree for all my animals and then a file like this for each individual one.
Tiger
=======================================
Tiger info here.
Species:
[[ Access my json here and show content from jsonfile[animals][tiger][species] ]]
Weight:
[[ Access my json here and show content from jsonfile[animals][tiger][weight] ]]