on-internet
← Community

Documenting CLI commands with Sphinx doc

Stack Overflow ·

I need to document many CLI commands using Sphinx doc. I have searched everywhere for an extension that could be used to produce an output similar to how github documents CLI commands: https://developer.github.com/v3/#parameters Is there any extension that I missed that could help with that? If not, can anyone point the direction to building one? I need to be able to document for example like this: .. sourcecode:: cli $ curl -i "https://api.github.com/repos/vmg/redcarpet/issues?state=closed" and have that output.

Comments

Sign in or sign up to comment and upvote.

No comments yet.