문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top