Question

I need to document my project using DITA and I'm wondering if I can use python's docstring conventions and reStructuredText to create DITA's XMLs.

Any pointers?

Was it helpful?

Solution

Sorry to be a bit late to this question, but I've done some work along these lines and put the resulting kit into this repository:

https://github.com/donrday/rst2dita

I hope there is something there that you or others can make use of.

OTHER TIPS

I think what you could do is that

  • You process your Python docstrings using Sphinx and its autodoc syntax

  • You write custom output formatter to Sphinx which will generate DITA XML instead of HTML

Some work, but doable.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top