python sphinx - Documentation for multi-programming-language API -
i'm part of team working on sdk exposed several programming languages - objc, c#, actionscript, java (android) , later we'll have more languages.
we want have documentation made of 2 parts:
- human readable documentation
- api reference
there links between 2 parts: human readable docs have links specific classes or methods , api reference may link document explain context in class or method used.
we use combination of sphinx human readable documentation , language specific tools api such doxygen or asdoc
i saw in leapmotion able generate complete documentation multiple programming-language (not human language) cross links between programming-languages.
the question
does know how accomplish such documentation system in way we'll not have duplicate each change in human readable docs every language , have cross links between languages?
i put leap motion documentation. use sphinx create package of docs , breathe, sphinx plug-in, import xml files generated doxygen sphinx project doxygenated api references (c++, c#, java, , objective-c). links so-called "human-readable" pages api references, generate rst substitutions .tag files doxygen generate you. links api reference "human-readable" pages normal, relative hyperlinks (which should add more of).
i use conditional content features of sphinx generate separate set of docs (both "human-readable" , api) each programming language. these articles can customized each programming language needed , have correct code examples current language. because each doc set has same structure, isn't hard switch 1 language another.
i did add custom javascript page templates switch between languages.
tl;dr: sphinx, breathe, doxygen , small amount of custom javascript.
if discuss further, can post question our (leap motion) developer forum. i'll see (stackoverflow isn't proper place ongoing discussion).
Comments
Post a Comment