Hi, I’m trying to use bokeh’s sphinx and HTML rendering in kind of a weird way and looking for help on what others think might be the best solution. I have some objects of my library that can be represented as a geoviews map (simple CRS + coastlines/borders features). As part of my library’s sphinx documentation I’d like to make a list of these objects in restructuredtext to have a section + HTML text description + HTML bokeh map representation for each object. So something like:
object name 1
-------------------
.. raw:: html
<div>
<div>... text description of object ...</div>
<div>... bokeh map ... </div>
</div>
object name 2
-------------------
... and so on ...
And I’d like to generate this dynamically from a dictionary mapping object name to object. I thought about use the sphinx extension, but can’t find a way to let it use the HTML that I want as a “template”. I’m also not sure if performance will suffer with a long list of .. bokeh-plot::
directives. I’ve also used:
script, divs_dict = components(my_object_bokeh_models_dict)
And throwing that into the restructuredtext, but I had to configure docutils not to be made at the line length of the huge JSON blob in the script
and the whole thing still felt very hacky.
I realize this is a lot of generic information, but I’m hoping someone familiar with these concepts has a more obvious path forward with what I’m trying to do. Thanks for any help you can provide.