Sphinx yaml to html

42 views
Skip to first unread message

ishan saxena

unread,
Dec 10, 2020, 7:44:23 AM12/10/20
to sphinx-users
Hi, 

Is it possible to read a yaml file and convert that into html

Luc Saffre

unread,
Dec 10, 2020, 9:03:58 AM12/10/20
to sphinx...@googlegroups.com, ishan saxena
Yes.


On 10.12.20 14:44, ishan saxena wrote:
Hi, 

Is it possible to read a yaml file and convert that into html
--
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 sphinx-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/f2e44afb-8849-4ec6-abc9-3bfd8f75b9ccn%40googlegroups.com.

Stephen Finucane

unread,
Dec 13, 2020, 1:43:33 PM12/13/20
to sphinx...@googlegroups.com
On Thu, 2020-12-10 at 04:44 -0800, ishan saxena wrote:
> Hi, 
>
> Is it possible to read a yaml file and convert that into html

Yes. You'll want a custom extension to do this. Eric Holscher has an old but
still good blog post on the subject here [1]. The datatemplates extension [2]
also provides support for transforming rather generic structured markup to
doctrees which Sphinx can render to HTML.

Hope this helps,
Stephen

[1] https://www.ericholscher.com/blog/2016/jul/25/integrating-jinja-rst-sphinx/
[2] https://pypi.org/project/sphinxcontrib.datatemplates/

ishan saxena

unread,
Dec 14, 2020, 4:50:09 AM12/14/20
to sphinx...@googlegroups.com
Hey Stephen

Thanks for the suggestions. I would try to implement it. 


Ishan Saxena
Phone # 7469313009
----------------------------------




--
You received this message because you are subscribed to a topic in the Google Groups "sphinx-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sphinx-users/jPccV-75ms0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sphinx-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/aef0b98c03cebcab8bdd46d71d2b78513f2993f7.camel%40that.guru.
Reply all
Reply to author
Forward
0 new messages