RST to DITA workflow


#1

Just stumbled onto this: https://github.com/donrday/rst2dita/

Seems like an interesting approach to using Sphinx & RST to render things into DITA. They wrote up a blog post about this as well: http://learningbywrote.com/blog/2011/04/creating-dita-topics-using-restructuredtext/

Someone on IRC mentioned this as an approach for using Sphinx:

curl -O https://raw.githubusercontent.com/donrday/rst2dita/master/xsl/docutils2map.xsl && make xml && for files in $(find _build/xml -name \*.xml); do java net.sf.saxon.Transform -s:${files} -xsl:docutils2map.xsl -o:${files%xml}dita; done;

I’ve never used DITA, but it might be an interesting way to generate docs for Sphinx & DITA together.


#2

Interesting, Eric! Thanks for posting.